[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] [Updated] (XMLBEANS-378) Add system property to allow override of default piccolo parser
From:       "Rodrigo Setti (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2013-02-26 18:40:13
Message-ID: JIRA.12401204.1217292128027.343734.1361904013935 () arcas
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Rodrigo Setti updated XMLBEANS-378:
-----------------------------------

    Attachment: xmlbeans-system-default-xml-reader.diff

Hi,

I have some cases in my application that piccolo parser enter's a infinite loop and \
eventually I get into a heap exception.

Therefore I replaced it with the platform's default parser, and it worked great. The \
time performance difference is unnoticeable.

I'm providing a patch that allow xmlbeans to select the platform's default Sax \
Parser, instead of relying in a another configuration option.

                
> Add system property to allow override of default piccolo parser
> ---------------------------------------------------------------
> 
> Key: XMLBEANS-378
> URL: https://issues.apache.org/jira/browse/XMLBEANS-378
> Project: XMLBeans
> Issue Type: Wish
> Components: XmlObject
> Affects Versions:  Version 2.3
> Reporter: Kevin Jones
> Priority: Minor
> Attachments: patch_alt_parser, xmlbeans-system-default-xml-reader.diff
> 
> 
> It would be useful to allow the default piccolo parser to be replaced by other SAX2 \
> conformant parsers that may other more features/performance without having to make \
> application code changes.  This can be done by some minor changes to the Store \
> Locale.java mechanism that caches piccolo parsers per thread. In a trial \
> implementation (see attached patch) an xmlbeans specific system property is added \
> which has the same meaning as the 'org.xml.sax.driver' property, i.e. it specifies \
> the name of a org.xml.sax.XMLReader class. If the property is set this parser is \
> instantiated instead of a piccolo parser.  The patch passes checkintest when  the \
> property "org.apache.xmlbeans.xmlreader" is set to \
> "com.sun.org.apache.xerces.internal.parsers.SAXParser" on a jdk1.5.0_15 on WIN32.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic