Java – Stax parsing – resolves child nodes based on the selected parent node

I need to parse a huge XML file on the server and send it to the client

Solution

>No, you can't skip the subtree of an XML document without parsing it first This is true for every parser, not just Stax (knowing which point to skip means that you have resolved the elements between the two.)

All in all, your use case doesn't look right for Stax Have you tried VTD-XML? Depending on the size of the file, it may be exactly what you want

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>