Unmarshalling XML using JAXB

everyday_

New Member
I went through almost all questions related to this topic here. But was not able to get a proper solution.My issue is as follows:I created a simple program to unmarshall an xml file for which i had a xsd. I was able to do that successfully. But if i am getting an xml without xsd, how can I get my attributes from that, if the xml looks something like this : \[code\]<items> <item> <code>12000</code> <name>Samsung 620</name> <price>9999</price> </item> <item> <code>15000</code> <name>NOKIA</name> <price>19999</price> </item> <item> <code>18000</code> <name>HTC 620</name> <price>29999</price> </item></items> \[/code\]Here I don't have an xsd to generate my classes. How can i proceed? Kindly help me.Thank You
 
Back
Top