Hi,
    I have just started using the xerces-1_4_3 API to handle XML files. We
have been using the old XML schema format. Now, with the new XML schema, i
think Cdata datatype is no longer supported. Because, my sample program to
validate XML Schema is giving the following error:

Schema error: type not found : http://www.w3.org/2001/XMLSchema:Cdata.

My schema file looks like this:

<?xml version="1.0"?>
<xsd:schema xmlns:xsd=http://www.w3.org/2001/XMLSchema
        targetNamespace="ui"
        xmlns="ui"
        elemFormDefault="qualified">

<xsd:element name="ebpui">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:elem name="elem" type="elemType" maxOccurs="unbounded"/>
          </xsd:sequence>
    </xsd:complexType>
</xsd:element>

<xsd:complexType name="elemType">
    <xsd:sequence>
        <xsd:element name="dispString"  type="xsd:Cdata"/>
   </xsd:sequence>
</xsd:complexType>

</xsd:schema>

My XML file is like this:

<?xml version="1.0"?>
<ebpui xmlns="ui"
        xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
        xsi:schemaLocation="ui ui.xsd">

    <elem>
        <dispString>Hello World</dispString>
    </elem>
</ebpui>

Could some one please tell me if there is any error in my schema and XML
files. Also, what is the replacement for Cdata in the new XML data types?

thanks in advance
-- Venkatesh


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to