I have a silly question:
how can I convert a xml file to java bean? are there some examples? or tutorial?
I'll appreciate your help :)
Printable View
I have a silly question:
how can I convert a xml file to java bean? are there some examples? or tutorial?
I'll appreciate your help :)
you need to use xml parser.java provide xml parser class. you can use those class for parsing your xml file and get the value of tag and contain of the tag as well as subtag of xml file.
Handling the XML once it has been received is pretty straight forward. You can use for instance JAXB to create Java objects based on the XML data. JAXB is part of the JWSDP. This will work for amounts of data that are small enough to fit in memory. If you want to process larger data sets, using a SAX parser is probably best.