-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
How to filter XML nodes and see result as XML #13
Comments
When XPath Notebook was first published, when clicking on the XPath location like If you want to see the source and not the XPath of the node, you can use the
In future, I hope to introduce a built-in 'print()' function that should do a better job than serialize(), with features like truncation for long strings, formatting and disabling the use of character references like '<' instead of '<'. |
Thanks for adding to feature request. So far I have not figured out any method short of manually mapping every node to get a readable output. If I use serialize I am getting something that looks like this:
Instead of something like this:
It does not have to be XML. Json would be ok too, if I can see the nodes and values. I am working with large XML files that are just hard to filter and navigate. XPath notebook would be a fabulous tool for ad-hoc filtering and summarizing such documents. Maybe it would be easy to add literal text presentation method without escaping any '<' '>' characters??? Then serialize() would work as expected and I would see normal XML. |
I fear the problem with the escaping of '<' to '<' is probably down to my XPath Notebook output rather than SaxonJS. I will look into this. With the following XPath I still get the unwanted escaping and no indentation:
In the meantime there isn't really a good workaround I can think of. |
I would like to filter a node set to see the filtered nodes not just something like /root/node[100] but actual nodes in the result in xml, just like in the source. How can I do this?
The text was updated successfully, but these errors were encountered: