[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Validation Problems
From:       "Eric Ye" <ericye () locus ! apache ! org>
Date:       2000-11-30 23:17:55
[Download RAW message or body]

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: <brent.johnson@homepoint.com>
To: <xerces-j-dev@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
>
>


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic