Using SAX Parser


XML & Web services: Using SAX Parser

  1. Using SAX Parser (1 messages)

       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: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">

    Can any one pls explai me how to do it or send me sample code in this regards


    Threaded Messages (1)

  2. Using SAX Parser[ Go to top ]

    Take a look at and just use XPath expressions to get the data out - this is the easiest approach.