Some Observations

In reviewing the pseudocode and the implementations, it should be apparent that creating an XML instance document using the DOM is fairly simple. It requires a series of create operations on the appropriate Node type, followed by an appendChild method call to attach the Node to the appropriate parent. Other types of XML applications might require more complex processing, but a fairly serial conversion of one document format to another requires only these simple operations. There are some minor complexities involved in setting up the XML environment and dealing with the different save operations. However, even with error handling these still take less than 50 or so lines of code. The main complexity comes in keeping track of ...

Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.