60 likes | 154 Vues
Explore the structure of an XML document, parsing methods, DOM parsing with XPath, creating XML documents, Java binary serialization, XML to JSON conversion, and examples using StAX, DOM, and XStream.
E N D
Structure of an XML Document • Header • Root Element • Start Tags / End Tags • Element Contents • Child Elements • Text • Both (mixed contents) • Element Attributes • Comments • Entity References
Parsing / Searching XML Documents • StAX Parser • XMLStreamReader • Example • DOM Parser • Document Object Model (DOM) • Example • Searching DOM with XPath • Example
Creating XML Documents • StAX • Example • DOM • Example
Object Serialization • Java binary serialization • Example • XML • XStreamExample • JSON • XStreamExample