[jboss-dev-forums] [JBoss XML Binding Development] - first stax performance test

Alexey Loubyansky do-not-reply at jboss.com
Fri May 14 01:53:18 EDT 2010


Alexey Loubyansky [http://community.jboss.org/people/alex.loubyansky%40jboss.com] replied to the discussion

"first stax performance test"

To view the discussion, visit: http://community.jboss.org/message/542998#542998

--------------------------------------------------------------
I originally used stream readers. And the test results above are for stream readers. But then I needed to get the DTD publicId/systemId and with stream readers I couldn't. Although I haven't tried getPIData(), I assumed it's for processing instructions. In the the standard StAX API there is general getText() and in case of JDK impl it returns something like "couldn't get the DTD info" and in case of Woodstox - just an empty string.
The only way I've found to get publicId/systemId so far is by using event readers and Woodstox-specific API.

I haven't run the performance comparison tests for streams vs events yet as I wanted to make it work for the metadata and the AS first.

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/542998#542998]

Start a new discussion in JBoss XML Binding Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2065]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100514/186f0047/attachment.html 


More information about the jboss-dev-forums mailing list