Parsing and Transforming

XML documents are processed in two ways: parsing and transforming. Parsing involves reading the XML document and interpreting document nodes in a way that is useful for the application. What this may mean is that if the application contains a number of nodes which are not of interest to the application, they will be passed over or ignored. Only the content that is meaningful to the application will be used. An application may use this document content either by placing values into specific member variables, or by creating objects which encapsulate the information from the XML document.

Alternatively, an application may not need to place any of the information in an XML document in the application's state. Instead, the ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.