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/04/16 11:52:15 UTC

[jira] Created: (XERCESC-1865) IGXMLScanner does not recognize XML Schema

IGXMLScanner does not recognize XML Schema
------------------------------------------

                 Key: XERCESC-1865
                 URL: https://issues.apache.org/jira/browse/XERCESC-1865
             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


This might be a documentation-defect (as well)

Setup:
...
DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgDOMValidate, true ); 
DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgIGXMLScanner );
...

Parse an XML that referes to an XMLSchema and the parser reports error. By using the SGXMLScanner it works fine and it validates the document correctly but not with IGXMLScanner despite that the documentation says "both XMLSchema and DTD validation".

In some business-patterns you may just wanna perform "automatic" validation depending on referred/supplied validation-technique in any incoming XML where you do not know what kind of technique the XML refers to i.e. you just wanna validate the XML and therefore you wanna use the something like the IGXMLScanner that, according to the documentation, seems to provide that service ... but it doesn't or something (supplementary) is missing in the documentation 



-- 
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


[jira] Updated: (XERCESC-1865) IGXMLScanner does not recognize XML Schema

Posted by "Kristian Ivarsson (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Ivarsson updated XERCESC-1865:
---------------------------------------

    Issue Type: Improvement  (was: Bug)

After studying various documentation I discovered that this was not a DOM-defect and that the desired behaviour kicked in after doin' DOMLSParser::getDomConfig::setParameter( XMLUni::fgXercesSchema, true ); and this can be found in the documentation as well though I belive the behaviour is kind of unlogical and contradictive and therefore I changed this issue from a Bug to an Improvement

If the default scanner is IGXMLScanner then I think that the parameter XMLUni::fgXercesSchema default should be set to true since the XMLUni::fgXercesDTD (if such parameter existed) is default set to true




> IGXMLScanner does not recognize XML Schema
> ------------------------------------------
>
>                 Key: XERCESC-1865
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1865
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: DOM
>    Affects Versions: 3.0.1
>         Environment: xerces-c-3.0.1-x86-windows-vc-8.0
>            Reporter: Kristian Ivarsson
>
> This might be a documentation-defect (as well)
> Setup:
> ...
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgDOMValidate, true ); 
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgIGXMLScanner );
> ...
> Parse an XML that referes to an XMLSchema and the parser reports error. By using the SGXMLScanner it works fine and it validates the document correctly but not with IGXMLScanner despite that the documentation says "both XMLSchema and DTD validation".
> In some business-patterns you may just wanna perform "automatic" validation depending on referred/supplied validation-technique in any incoming XML where you do not know what kind of technique the XML refers to i.e. you just wanna validate the XML and therefore you wanna use the something like the IGXMLScanner that, according to the documentation, seems to provide that service ... but it doesn't or something (supplementary) is missing in the documentation 

-- 
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


[jira] Updated: (XERCESC-1865) IGXMLScanner does not recognize XML Schema

Posted by "Kristian Ivarsson (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristian Ivarsson updated XERCESC-1865:
---------------------------------------


... or skip the XMLUni::fgXercesSchema-parameter since there is no XMLUni::fgXercesDTD 'cause there are too many parameters anyway :-)

> IGXMLScanner does not recognize XML Schema
> ------------------------------------------
>
>                 Key: XERCESC-1865
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1865
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: DOM
>    Affects Versions: 3.0.1
>         Environment: xerces-c-3.0.1-x86-windows-vc-8.0
>            Reporter: Kristian Ivarsson
>
> This might be a documentation-defect (as well)
> Setup:
> ...
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgDOMValidate, true ); 
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgIGXMLScanner );
> ...
> Parse an XML that referes to an XMLSchema and the parser reports error. By using the SGXMLScanner it works fine and it validates the document correctly but not with IGXMLScanner despite that the documentation says "both XMLSchema and DTD validation".
> In some business-patterns you may just wanna perform "automatic" validation depending on referred/supplied validation-technique in any incoming XML where you do not know what kind of technique the XML refers to i.e. you just wanna validate the XML and therefore you wanna use the something like the IGXMLScanner that, according to the documentation, seems to provide that service ... but it doesn't or something (supplementary) is missing in the documentation 

-- 
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


[jira] Updated: (XERCESC-1865) IGXMLScanner does not recognize XML Schema

Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov updated XERCESC-1865:
-------------------------------------

    Component/s:     (was: DOM)
                 Documentation

> IGXMLScanner does not recognize XML Schema
> ------------------------------------------
>
>                 Key: XERCESC-1865
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1865
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 3.0.1
>         Environment: xerces-c-3.0.1-x86-windows-vc-8.0
>            Reporter: Kristian Ivarsson
>
> This might be a documentation-defect (as well)
> Setup:
> ...
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgDOMValidate, true ); 
> DOMLSParser::getDomConfig::setParameter( xercesc::XMLUni::fgXercesScannerName, xercesc::XMLUni::fgIGXMLScanner );
> ...
> Parse an XML that referes to an XMLSchema and the parser reports error. By using the SGXMLScanner it works fine and it validates the document correctly but not with IGXMLScanner despite that the documentation says "both XMLSchema and DTD validation".
> In some business-patterns you may just wanna perform "automatic" validation depending on referred/supplied validation-technique in any incoming XML where you do not know what kind of technique the XML refers to i.e. you just wanna validate the XML and therefore you wanna use the something like the IGXMLScanner that, according to the documentation, seems to provide that service ... but it doesn't or something (supplementary) is missing in the documentation 

-- 
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