[ 
https://issues.apache.org/jira/browse/JCR-1312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559007#action_12559007
 ] 

Felix Meschberger commented on JCR-1312:
----------------------------------------

> SAX instead of DOM

The main issue is parsing. If the parser is slow, it does not help using SAX 
instead of DOM.

Of course, if we can handle the XML as a stream of events (or something similar 
using a pull parser or even StAX) the better. But not sure, whether this is 
achievable this easy.

> StAX instead of kXML

Now, this could be an option. On the other hand, using a JSR-based API is not 
always the best of all options - and having it included with a JDK might even 
prove to be a problem IMHO (and experience) ;-)

> Get rid of DOM for XML support
> ------------------------------
>
>                 Key: JCR-1312
>                 URL: https://issues.apache.org/jira/browse/JCR-1312
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-webdav
>            Reporter: Felix Meschberger
>
> Currently the web dav library uses Xerces and DOM to parse and create XML 
> data. This mechanism is well-known but has two major issues: It is slow and 
> it has a big memory footprint. In order to solve these two issues, I suggest 
> to drop the use of the W3C DOM in webdav in favor of something easier and 
> more straight forward to use.
> One candidate could be (out of my head and based on my bias towards KXml) 
> KDOM. See also http://www.kxml.org.ww
> See also JCR-1261 for more discussions on this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to