Thanks for your prompt reply. I will switch to JAXP.

Warner

-----Original Message-----
From: Mukul Gandhi (JIRA) [mailto:[email protected]] 
Sent: Tuesday, January 01, 2013 1:38 AM
To: Warren, Warner
Subject: [jira] [Commented] (XERCESJ-1600) I am having a problem using 
assertions in the Java version Xerces 2.11.0 with DOM3.


    [ 
https://issues.apache.org/jira/browse/XERCESJ-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13541594#comment-13541594
 ] 

Mukul Gandhi commented on XERCESJ-1600:
---------------------------------------

I think, Xerces XSD 1.1 validation is not exposed via DOM. It is only available 
via JAXP API.
                
> I am having a problem using assertions in  the Java version  Xerces 2.11.0 
> with DOM3. 
> --------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1600
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1600
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Load & Save)
>    Affects Versions: 2.11.0
>         Environment: Windows 7 64-bit platform
>            Reporter: Warner Warren
>              Labels: newbie
>             Fix For: 2.11.0
>
>
> I am having a problem using the Java version of Xerces 2.11.0 with DOM3. I 
> have linked the following jar files:
> org.eclipse.wst.xml.xpath2.processor_1.1.0.jar
> resolver.jar
> serializer.jar
>  xercesImpl.jar
>  xercesSamples.jar
>  xml-apis.jar
> cupv10k-runtime.jar
> icu4j.jar
> My invocation of DOM level 3, using the registry, is shown below:
> System.setProperty(DOMImplementationRegistry.PROPERTY,
>               "org.apache.xerces.dom.DOMXSImplementationSourceImpl");
> DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();
>             //Creating a DOMImplementation object
>  DOMImplementation domImpl = registry.getDOMImplementation("LS 3.0");
>  DOMImplementationLS implLS = (DOMImplementationLS) domImpl;
>             //
>             //Create an LSParser object
>  parser = implLS.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS,         
> "http://www.w3.org/2001/XMLSchema";);    
> When this program executes, I get the following error message:
> DDS_AnalyzerPayloadError  - [Error_DAP_DSP]--s4s-elt-invalid-content.1: The 
> content of 'itemType' is invalid.  Element 'assert' is invalid, misplaced, or 
> occurs too often.
> It appears that I am not getting the schema 1.1 functionality.  
> However, Version.getVersion() yields Xerces-J 2.11.0-xml-schema-1.1-beta
> If I remove the assertions, everything is fine. Do I need to configure 
> something else? I cannot attach the source code, xml or schemas because they 
> contain sensitive information. 

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

Reply via email to