Get XML tag in Java

ANTAFRORP

New Member
I have the following XML schema (actually it is an XSD of a webservice):\[code\]<xs:element name='serviceMethod'> <xs:complexType> <xs:sequence><xs:element name='valueIWantToKnow'/></xs:sequence> </xs:complexType></xs:element>\[/code\]In Java, I do know the 'serviceMethod', but I want to know the value of the name attribute of the element nested in the servicemethod element.What is the easiest way to do this?
 
Back
Top