We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have some xml which is broken down like this
<rootNode> <header>...</header> <payload> <item>...</item> <item>...</item> ... </payload> </rootNode>
What I'd like to do is get the header elements and then also all the items... however, it isn't clear to me that the module will even support that.
I ended up reading the header elements from the first few lines with a manual process, then attempting to read the <item> elements with xml-stream:
<item>
xmlStream.preserve('item'); xmlStream.on('endElement: item', function (d) { ...
But this won't work.
I've successfully used xml-stream to pull data from XML which is merely a repetition of items inside a root item with no problem whatsoever.
Does anyone know how I can simply / elegantly get my data?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have some xml which is broken down like this
What I'd like to do is get the header elements and then also all the items... however, it isn't clear to me that the module will even support that.
I ended up reading the header elements from the first few lines with a manual process, then attempting to read the
<item>
elements with xml-stream:But this won't work.
I've successfully used xml-stream to pull data from XML which is merely a repetition of items inside a root item with no problem whatsoever.
Does anyone know how I can simply / elegantly get my data?
The text was updated successfully, but these errors were encountered: