0

My XML structure looks like this.

<soap-env:Envolope xmlns:soap-env=.............>
   <soap-env:Header></<soap-env:Header>
   <soap-env:Body>
      <n0:_-qte_-rfcReadStrucNodesResponse xmlns:n0=.................>
         <EsSysMessage>...</EsSysMessage>
         <EtNodes>
           <item>...</item>
           <item>...</item>
           <item>...</item>
           <item>...</item>
           <item>...</item>
           <item>...</item>
...

I'd like to get list of item under EtNodes. I tried getElementsByName("EtNodes") but it doesn't work.

Please help...

1 Answer 1

1

You want to use getElementsByTagName(), so something like this:

var items = xmlDoc.getElementsByTagName("EtNodes")[0].childNodes;

Check out this example from w3schools.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.