The limit of an XML file is not measured in lines. The size limit depends on the file system. An XML file is just like a plain text file and can be quite large. Having said that, there are 2 ways to read an XML file: DOM and SAX. In DOM, the entire XML file is loaded into memory and usually requires 10 times more RAM than the size of the file. This is great for smaller files say 1 MB or less because DOM is easier to use and provides more functionality. SAX is designed for large files. It's very fast compared to DOM for large files and requires a lot less memory. The downside is that you have to do more programming to use it and it provides sequential access (you always start reading at the beginning of the file).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.