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 memrory 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