Skip to content

How get a node whose title is separated by a colon? #119

Answered by renggli
thechinkysight asked this question in Q&A
Discussion options

You must be logged in to vote

I guess parsedXml is the XmlDocument? If so, the elements of this node are the <?xml ... and <feed xmlns ... nodes, which obviously do not match the element name you are searching for. Use parsedXml.rootElement to get the root element of your DOM tree (<feed xmlns ...); then you can ask that one for the values you're after:

XmlElement totalResult = parsedXml.rootElement.getElement('opensearch:totalResults');

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by renggli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #100 on December 29, 2021 11:10.