Tag Archives: xml

Different XML parser Comparison

Oracle Java
Well, this post is about different java XML parser comparative study. When you get opportunity to parse any XML , first of all you should know few things: how much size of xml? how frequently you want to parse XML? whether you want to write or read? how complex structure of your xml? how much memory do you have in application server? You can better judge the and choose the parser if you know the basic things about your xml structure and all.
Continue reading Different XML parser Comparison

JAXB: Date Format Example in Java

Oracle Java
You know , java.util.Date is the complex object, and parsing from string to Date is little bit complex. but don’t worry, it can be simple once you know the basic things.

JAXB supports to customize marshaling and de-marshaling of java.util.Date object, meaning that , you can customize your own format of data in xml and and java object. You have to defined XmlAdapter which control the customization of your data format.
Continue reading JAXB: Date Format Example in Java

DOM: How to read XML File in Java

Oracle Java
In this post, I tried to demonstrate, how to read XML for either getting its content of element or name of element or comment in the XML or attribute value of any element by using DOM (Document Object Model) parser in java. In your professional life, while developing, you must encountererd most of the time to read of XML either configuration file or any other XML.

Continue reading DOM: How to read XML File in Java