• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML parsing in java  RSS feed

 
Subhajit Pal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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>
 
Tim Cooke
Marshal
Posts: 4048
239
Clojure IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a tutorial on the Oracle site that covers this very topic: Java API for XML Processing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!