[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML parsing performance
LUCIO PICOLLI wrote: > My question is what can i do to ensure that the XML parsing is as fast as > possible? I guess that some of the areas to be addressed are: > 1) Using SAX You mean, as opposed to using the DOM? This will depend on the structure of the incoming documents and the way you intend to use it. Generally speaking, if you can process the data as it arrives then SAX is probably the more efficient choice; if, on the other hand, you need to be able to perform queries on the data you may get more mileage out of the DOM. You may not need all of the capabilities and checking of the DOM though, so you might be able to get more efficiency out of a custom data representation. > 2) Using attribute's instead of nodes. This is probably a bit of a red herring, although it may have some (fairly negligible) impact depending on the parser you use. > What other areas should i investigate? Any help is appreciated. - Which XML parser to use, on what platform. - Whether you need to validate documents that you receive. I'm sure there's plenty of other things I'm forgetting, too. Hope that helps, Vil. -- Vilya Harvey <vilya@n...> Wilkinson House Mob: +44 961 106 505 Computational Mathematics Group Jordan Hill Road Wk: +44 1865 511 245 NAG Limited Oxford UK OX2 8DR Fax: +44 1865 311 205 xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1 To unsubscribe, mailto:majordomo@i... the following message; unsubscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|