1 / 5

XML and Object Serialization

XML and Object Serialization. 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

delano
Download Presentation

XML and Object Serialization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML and Object Serialization

  2. 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

  3. Parsing / Searching XML Documents • StAX Parser • XMLStreamReader • Example • DOM Parser • Document Object Model (DOM) • Example • Searching DOM with XPath • Example

  4. Creating XML Documents • StAX • Example • DOM • Example

  5. Object Serialization • Java binary serialization • Example • XML • XStreamExample • JSON • XStreamExample

More Related