You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Kristian Ivarsson (JIRA)" <xe...@xml.apache.org> on 2009/08/10 11:00:15 UTC

[jira] Updated: (XERCESC-1863) Using WFXMLScanner in certain circumstances make the application to abort

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

Kristian Ivarsson updated XERCESC-1863:
---------------------------------------


Here's some updates and complements

Using xerces-c-3.0.1-x86-windows-vc-8.0

[code]
const XMLCh features[] = { 'C', 'o', 'r', 'e', '\0' };
xercesc::DOMImplementation * implementation = xercesc::DOMImplementationRegistry::getDOMImplementation( features);
xercesc::DOMLSParser * parser = implementation->createLSParser( xercesc::DOMImplementationLS::MODE_SYNCHRONOUS, 0);
parser->getDomConfig()->setParameter( xercesc::XMLUni::fgDOMValidate, true); // turning this to false makes it work
parser->getDomConfig()->setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgWFXMLScanner );
xercesc::DOMDocument * const document = parser->parse( input ); // crasch

[DTD]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ELEMENT root (alpha, beta)>
<!ELEMENT alpha (#PCDATA)>
<!ELEMENT beta (#PCDATA)>

[XML]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE root SYSTEM "root.dtd">
<root>
   <alpha>text</alpha>
   <beta>text</beta>
</root>


> Using WFXMLScanner in certain circumstances make the application to abort
> -------------------------------------------------------------------------
>
>                 Key: XERCESC-1863
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1863
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 3.0.1
>         Environment: xerces-c-3.0.1-x86-windows-vc-8.0
>            Reporter: Kristian Ivarsson
>            Priority: Minor
>
> Setup:
> ...
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgDOMValidate, true );
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgWFXMLScanner );
> ...
> Parse an XML with a DOCTYPE and the application aborts ("Access violation")

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


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