3.7 Summary
In this chapter, we covered how to build a DOM tree structure using a DOM-compliant XML processor. We also discussed the importance of making sure that the DOM tree being built is valid, and we showed a simple program to validate the generated DOM tree. The DOM tree was serialized as an XML document using methods provided by Xerces. Finally, we explained the treatment of whitespace when generating an XML document from a generated DOM tree.
This chapter concludes the coverage of the basic programming skills for parsing and generating XML documents using the standard APIs. The next chapter shows advanced topics about DOM tree manipulation and gives more complex examples.
|