You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Eric Ye <er...@locus.apache.org> on 2000/12/01 00:17:55 UTC

Re: Validation Problems

There are 2 typos  in your schema file:
>         <xsd:complexType name="blahType" content="textOnly">

^^^^
>         <xsd:element name="testdoc" type="testdocType"/> <!-- used to be
"textdocType" -->
                                                                      ^

____


Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org

----- Original Message -----
From: <br...@homepoint.com>
To: <xe...@xml.apache.org>
Sent: Thursday, November 30, 2000 11:38 AM
Subject: Validation Problems


> OK - due to all the problems I've been having with NullPointerExceptions I
> got the latest version from CVS (which by the way - everytime I do an
> update checkout it updates about 50 files .. if I immediately do a
checkout
> again it updates the same 50 files.. and again.. and again..).  I then
> tried just using the SAXCount to validate the files (which would not
> validate).  I've now gone to a very simple example and tried to parse it
> and it still wont parse...
>
> >From what I can tell nothing related to our schemas has changed in the
past
> week (yet this latest validation problem popped up yesterday morning)..
> but just to make sure the xml is correct, could someone take a look and
> attempt to validate this with the newest version of Xerces in CVS please?
>
> Any help would be appreciated, thanks...
>
> - Brent
>
> * Here is the temp.xsd file:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns="tempNS"
> targetNamespace="tempNS">
>
>         <xsd:complexType name="testdocType" content="elementOnly">
>                 <xsd:element name="name" type="xsd:string"/>
>                 <xsd:element name="blah" type="blahType"/>
>         </xsd:complexType>
>
>         <xsd:complexType name="blahType" content="text">
>                 <xsd:attribute name="val" type="xsd:string"/>
>         </xsd:complexType>
>
>         <xsd:element name="testdoc" type="textdocType"/>
>
> </xsd:schema>
>
> * And here is the temp.xml instance document:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <temp:testdoc xmlns:temp="tempNS" xmlns:xsi
> ="http://www.w3.org/1999/XMLSchema-instance" xsi:schemaLocation="tempNS
> http://ssdv01:8001/schemas/temp.xsd">
>
>   <name>Brent Johnson</name>
>   <blah val="woah">Testing</blah>
>
> </temp:testdoc>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>