logo       

[jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some : msg#00017

Subject: [jira] Commented: (XERCESJ-1169) With XMLGrammarCachingConfiguration, some Text nodes are completely missing from the DOM.
    [ 
http://issues.apache.org/jira/browse/XERCESJ-1169?page=comments#action_12417407 
] 

Michael Glavassevich commented on XERCESJ-1169:
-----------------------------------------------

Xerces' caching of DTD grammars has its limitations (particuarly with respect 
to internal subsets [1]) but this definitely a bug.  The endDTD() event isn't 
being fired at the DOM builder.  This causes it to drop *all* of the text in 
the document.  I'll see if I can fix it.

[1] http://xerces.apache.org/xerces2-j/faq-grammars.html#faq-2

> With XMLGrammarCachingConfiguration, some Text nodes are completely missing 
> from the DOM.
> -----------------------------------------------------------------------------------------
>
>          Key: XERCESJ-1169
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1169
>      Project: Xerces2-J
>         Type: Bug

>     Versions: 2.8.0
>  Environment: Java-1.4.2_09, Eclipse_3.2RC7, JUnit, tests parsing complex 
> document with embedded XML DSIG using namespaces.
>     Reporter: Tom Oehser
>  Attachments: reproduceXercesGrammarCachingBug.zip
>
> I am parsing a document which has an XML DSIG signature, when I turn on 
> System.setProperty( "org.apache.xerces.xni.parser.XMLParserConfiguration",    
>          "org.apache.xerces.parsers.XMLGrammarCachingConfiguration"); 
> sometimes (I think the first time is fine, the second time and higher it 
> fails) the "SignatureValue" Element node has child Text node.  Parsing 
> without the Caching configuration is find, there is always a Text node under 
> the SignatureValue Element node.  Parsing with the CachingConfiguration, the 
> first time it has a Text child node, the next time and thereafter, there is 
> no child of the SignatureValue node at all.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe