O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Processing XML Documents in Memory

As mentioned earlier, it is not always convenient to process information in one pass. For some types of applications, it will be more convenient to keep an in-memory copy of the data being processed. To process an XML document in this way, you could use single-pass processing, converting the document’s contents into internal, application-specific objects. You could manipulate these objects and then serialize them out as XML again once they’ve been processed. However, you might find it easier just to keep the data in an XML format in memory so you can manipulate it in situ and write it out again quite easily.

In-Memory Processing

The DOM defined by the W3C provides a model of an XML document from a programmer’s ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required