Iterate through an xml #22
Unanswered
patrickdorival
asked this question in
Questions
Replies: 2 comments
-
|
One possible solution of the many allowed by XPath. Learning more about XPath will help you in this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hmm I don't think the issue is knowing more about XPath but okay. I've switched back to SimpleXML and its sorted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm finding it difficult to iterate through an xml that has an unknown contents.
Accessing it via nodeName => nodeValue is not producing the correct results.
Where in the documentation does it state how to do this, for example in a foreach loop over a queried element that has many child elements that I need to retrieve the name and value as well as any attributes?
Beta Was this translation helpful? Give feedback.
All reactions