java - I need to analyse the xml string below -
the service @ address http://www.cs12333.com:8001/service/personsearchservice returns following xml:
<?xml version='1.0' encoding='utf-8'?> <s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:body><ns2:findpersonlistresponse xmlns:ns2="http://service.person.search/"> <return> <result>true</result> <resultlist xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:type="ns2:grxxbean"> <aab001>cooperation</aab001> <aac001>34305742</aac001> <aac002>430423198906237024</aac002> <aac003>licong</aac003> <aac004>2</aac004> <aac031>2</aac031>` <pwd>1</pwd> </resultlist> </return> </ns2:findpersonlistresponse> </s:body> </s:envelope> i'm reading values this:
dom = documenthelper.parsetext(result); element root=dom.getrootelement(); the root's value "org.dom4j.tree.defaultelement@db23f1 [element: <s:envelope schemas.xmlsoap.org/soap/envelope/attributes: []/>]".
how value of tag <aac003>?
try expath <aac003> value
/*:envelope/*:body/*:findpersonlistresponse/*:return/*:resultlist/*:aac003
Comments
Post a Comment