What is the difference between XML Parsing and XML Processing?

Alessandro A. Garbagnati

When you talk about "parsing" you are just talking of an operation that, for example, breaks down a text into recognized strings of characters for further analysis. With the previous version of JAXP 1.0.x (Java API for XML Parsing), in fact, you were only able to open and parse an XML document.
When you talk about "processing", you are talking of operations that will allow you not just to parse, but to apply some kind of transformation to the text. Sun's has changed the name of their API to Java Api for XML Processing, maintaining the same acronym JAXP. The reason of this change is because the new API contains not only the javax.xml.parser, but also the javax.xml.transform package, that are used for, by Sun definition, "[...]processing transformation instructions, and performing a transformation from source to result.[...]".
If you need further information, take a look at the Section 4 of JAXP 1.1 Specification

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact