This app will give you real applications in the use Java XML
This app will give you real applications in the use Java XML
You will see the full source code of the demo. You will see how use:
A. SAX:
1. Display Product List from XML File in SAX
2. Parse XML File to List of Object in SAX
3. Pass Parameter in SAX Parsing
4. Sum in SAX Parsing
5. Validate XML File with SAX
6. Read RSS Feed with Java SAX
B. DOM:
1. Display Product List from XML File in DOM
2. Parse XML File to List of Object in DOM
3. Iterate Over XML Nodes with Node Iterator in DOM 2
4. Iterate Over XML Nodes with Tree Walker in DOM 2
5. Read RSS Feed with DOM
6. Validate XML File with DOM
7. Sum in DOM
8. Create Nodes and Attributes with DOM
9. Save Object to XML File with DOM
10. Update Nodes and Attributes with DOM
11. Delete Node with DOM
C. XPath:
1. Display Product List from XML File in XPath
2. Use And Condition in XPath
3. Use Or Condition in XPath
4. Use Attributes in Conditions in XPath
5. Use StartsWith in Conditions in XPath
6. Use Contains in Conditions in XPath
7. Sum in XPath
D. JAXB:
1. Serialize and DeSerialize Object in JAXB
2. Serialize and DeSerialize Object List in JAXB
3. Serialize and DeSerialize Attributes of Object in JAXB
4. Serialize and DeSerialize Nested Objects in JAXB
E. StAX:
1. Display Product List from XML File in StAX
2. Parse XML File to List of Object in StAX
3. Write Object to XML File in StAX
You also see the results after the demo with the illustrations.
You can also copy the code in this app and use it on your project.