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 Umesh Chandak <um...@gslab.com> on 2007/07/20 11:31:30 UTC

wildcard::getProcessContents() not working properly

Hi All,
I am using the SCMPrint sample program to get the schema information of
the following schema.
I am using xsParticle->getWildcardTerm()->getProcessContents() to get
the process content of the 'any' element in xsd. processContents on
line #12 is lax but it is returning me strict. 

Please let me know why this is happening?
I have pasted my schema below    
*********Schema***********
    
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting"
elementFormDefault="qualified">
        <xsd:element name="doc">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element name="elem" type="x:any"
minOccurs="0"
maxOccurs="100"/>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
        <xsd:complexType name="any">
                <xsd:choice>
                        <xsd:any processContents="lax" namespace="foo
bar ##targetNamespace"
minOccurs="0" maxOccurs="100"/>
                </xsd:choice>
        </xsd:complexType>
        <xsd:element name="foo"/>
</xsd:schema> 
*********Schema End ***********

Thanks.
Regards,
Umesh


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