Covert XML into Java Eclipse

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mezalinda
    New Member
    • Aug 2008
    • 1

    Covert XML into Java Eclipse

    Hello. I have a question . How can I convert the following xml text into java because i have to make and object with those parameters: lat lng and nr_phone and I have seen a lots of exemples but I didn't see anywere this kind of format for the xml file:


    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <DATABASE>
    <MARKER lat="1.2" lng="2.4" nr_phone="1224& lt;br&gt;" />
    </DATABASE>

    Please help me if you can.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    one possibility (especially if you need objects) is to convert it to WDDX (also a xml format, see http://www.openwddx.org or http://en.wikipedia.org/wiki/WDDX) and unserialize it in java resulting in an object (or other desired variable/structue type).

    regards

    Comment

    Working...