elimitator
New Member
I have a an xml document that I have saved in String. And the xml document is something like this:\[code\]<?xml version="1.0" encoding="http://schemas.xmlsoap.org/soap/envelope/" standalone="no"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing"><wsa:ReplyTo><wsa:Address>http://www.w3.org/2005/08/addressing/none</wsa:Address><wsa:ReferenceParameters><axis2:ServiceGroupId xmlns:axis2="http://ws.apache.org/namespaces/axis2">urn:uuid:2BC5F552AF3179755C1348038695049</axis2:ServiceGroupId></wsa:ReferenceParameters></wsa:ReplyTo><wsa:MessageID>urn:uuid:2BC5F552AF3179755C1348038695050</wsa:MessageID><wsa:Action>some action to perform</wsa:Action><wsa:RelatesTo>urn:uuid:599362E68F35A38AFA1348038694466</wsa:RelatesTo></soapenv:Header><soapenv:Body><ns1:TCAQSR_BAS_ServerGetOsVariableOutput xmlns:ns1="http://www.example-plm.com/TCAQSRBase/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns1:TCAQSR_BAS_ServerGetOsVariableOutputType"><ns1:TCAQSR_BAS_BaseOutputServiceReturnCode>0</ns1:TCAQSR_BAS_BaseOutputServiceReturnCode><ns1:TCAQSR_BAS_BaseOutputServiceTxtMessage>TCAQSRBaseService 2.2.1</ns1:TCAQSR_BAS_BaseOutputServiceTxtMessage><ns1:TCAQSR_BAS_BaseServerGetOutputVal>PCSW13</ns1:TCAQSR_BAS_BaseServerGetOutputVal></ns1:TCAQSR_BAS_ServerGetOsVariableOutput></soapenv:Body></soapenv:Envelope>\[/code\]I dont know how it would represent in the string.But I would want to extract the term between \[code\]<axis2:ServiceGroupId xmlns:axis2="http://ws.apache.org/namespaces/axis2">\[/code\] and \[code\]</axis2:ServiceGroupId>\[/code\]Which is a urn:uuid: and would like to save the result in a String. I know of xpath, but in my case, i cannot use xpath.And would really appreciate any help.Thanks a lot in advance.