Note that there are some explanatory texts on larger screens.

plurals
  1. POfinding and extracting a string from an array of strings
    primarykey
    data
    text
    <p>I have a an xml document that I have saved in String. And the String is something like this:</p> <pre><code>&lt;?xml version=\"1.0\" encoding=\"http://schemas.xmlsoap.org/soap/envelope/\" standalone=\"no\"?&gt;&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"&gt;&lt;soapenv:Header xmlns:wsa=\"http://www.w3.org/2005/08/addressing\"&gt;&lt;axis2:ServiceGroupId xmlns:axis2=\"http://ws.apache.org/namespaces/axis2\" wsa:IsReferenceParameter=\"true\"&gt;urn:uuid:2BC5F552AF3179755C1348038695049&lt;/axis2:ServiceGroupId&gt;&lt;wsa:To&gt;http://localhost:8081/axis2/services/TCAQSRBase&lt;/wsa:To&gt;&lt;wsa:MessageID&gt;urn:uuid:599362E68F35A38AFA1348038695733&lt;/wsa:MessageID&gt;&lt;wsa:Action&gt;http://www.transcat-plm.com/TCAQSRBase/TCAQSR_BAS_ServerGetOsVariable&lt;/wsa:Action&gt;&lt;/soapenv:Header&gt;&lt;soapenv:Body&gt;&lt;ns1:TCAQSR_BAS_ServerGetOsVariableInput xmlns:ns1=\"http://www.transcat-plm.com/TCAQSRBase/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:type=\"ns1:TCAQSR_BAS_ServerGetOsVariableInputType\"&gt;&lt;ns1:TCAQSR_BAS_BaseServerGetInputKey&gt;USERNAME&lt;/ns1:TCAQSR_BAS_BaseServerGetInputKey&gt;&lt;/ns1:TCAQSR_BAS_ServerGetOsVariableInput&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; </code></pre> <p>I dont know how it would represent in the string.</p> <p>But I would want to extract the term between <code>&lt;axis2:ServiceGroupId xmlns:axis2="http://ws.apache.org/namespaces/axis2"&gt;</code> and <code>&lt;/axis2:ServiceGroupId&gt;</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.</p> <p>And would really appreciate any help.</p> <p>Thanks a lot in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload