• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML parsing in java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi can you guys please suggest how to parse this xml in java-

<?xml version="1.0" encoding="utf-8"?>
<Message version="010" release="006">
<Header>
<To Qualifier="P">12345</To>
<Software>
<Sender>Gters</Sender>
<Product>!</Product>
<Price>125.36</Price>
</Software>
</Header>
<Body>
<Classic>
<Company>
<A>
<PDI>12345</PDI>
</A>
<PetName>Adrerre</PetName>
<CommunicationNumbers>
<Communication>
<Number>75545</Number>
<Qualifier>AC</Qualifier>
</Communication>
</CommunicationNumbers>
</Company>

<Student>
<Identification>
<ID>456789312345</ID>
<ID>2345678931234Z</ID>
</Identification>
<Name>
<LastName>Harry</LastName>
<FirstName>Potter</FirstName>
</Name>
<Gender>M</Gender>
<DateOfBirth>
<Date>1458-25-02</Date>
</DateOfBirth>
</Student>
</Classic>
</Body>
</Message>
 
Sheriff
Posts: 5555
326
IntelliJ IDE Python Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's a tutorial on the Oracle site that covers this very topic: Java API for XML Processing
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic