Hi,
Iam new to XML..I need to get the the value of userId,userName from the xml in my java programme.The Sample XML is given below..
xs:element name="Session">
<xs:complexType>
<xs:sequence>
<xs:element name="UserId" type="xs:string"/>
<xs:element name="BasketId" type="guid"/>
<xs:element name="CatalogueId" type="xs:string"/>
<xs:element name="UserName" type="xs:string"/>
<xs:element name="UserSurname" type="xs:string"/>
<xs:element name="UserGender">
<xs:simpleType>
Can any one pls explai me how to do it or send me sample code in this regards
Regards
SamyMohan
-
Using SAX Parser (1 messages)
- Posted by: samy mohan
- Posted on: April 26 2005 06:27 EDT
Threaded Messages (1)
- Using SAX Parser by Richard Rodger on April 26 2005 08:15 EDT
-
Using SAX Parser[ Go to top ]
- Posted by: Richard Rodger
- Posted on: April 26 2005 08:15 EDT
- in response to samy mohan
Take a look at dom4j.org and just use XPath expressions to get the data out - this is the easiest approach.