1 Reply Latest reply: Apr 30, 2013 1:08 AM by EJP RSS

    Read XML file in JAVA

    user11394485
      Hi ,

      I have an Xml file in the below format.

      Could you please provide the java code to read the attributes from the xml
      <messages>
        <class id="1" name="Test1" fromClass="Class1" toClass="Class2">
        <attribute fromAttribiteName="attr1" fromId="200" toAttribiteName="attr2" toId="201"/>
        <attribute fromAttribiteName="attr3" fromId="202" toAttribiteName="attr4" toId="203"/>
        </class>
        <class id="2" name="Test2" fromClass="Class3" toClass="Class4">
        <attribute fromAttribiteName="attr1" fromId="204" toAttribiteName="attr2" toId="205"/>
        <attribute fromAttribiteName="attr1" fromId="206" toAttribiteName="attr2" toId="207"/>
        </class>
      </messages>
      Thanks in advance.

      Regards,
      Lak