You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Eric SCHAEFFER <es...@posterconseil.com> on 2000/03/15 18:55:57 UTC
DOM validation
Hi,
I use Xerces J 1.0.2 and try to validate a document with a DTD :
DTD :
<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT territoire EMPTY>
<!ATTLIST territoire
name CDATA #REQUIRED
>
XML document :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE territoire-posterscan SYSTEM
"http://localhost/dtd/territoire_posterscan.dtd">
<territoire/>
The document seems to be valid (???).
I tried the DOMparser and RevalidatingDOMParser....
Eric.
_______________________________________
Eric SCHAEFFER
eschaeffer@posterconseil.com
POSTER CONSEIL
118 rue de Tocqueville
75017 PARIS
FRANCE
Tel. : 33-140541058
Fax : 33-140541059
_______________________________________
----------------------------------------------------------------------------
-----------------------------
Come to the first official Apache Software Foundation Conference!
-----------------------------------
http://ApacheCon.Com ------------------------------------
Re: DOM validation
Posted by Chris Gokey <cg...@hydrogen.stx.com>.
I believe I saw something in recent archives about the RevalidatingDOMParser
is broken and will stay broken until the XML Schema is implemented.
Chris
Eric SCHAEFFER wrote:
>
> Hi,
>
> I use Xerces J 1.0.2 and try to validate a document with a DTD :
>
> DTD :
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!ELEMENT territoire EMPTY>
> <!ATTLIST territoire
> name CDATA #REQUIRED
> >
>
> XML document :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE territoire-posterscan SYSTEM
> "http://localhost/dtd/territoire_posterscan.dtd">
> <territoire/>
>
> The document seems to be valid (???).
>
> I tried the DOMparser and RevalidatingDOMParser....
>
> Eric.
>
> _______________________________________
>
> Eric SCHAEFFER
> eschaeffer@posterconseil.com
>
> POSTER CONSEIL
> 118 rue de Tocqueville
> 75017 PARIS
> FRANCE
> Tel. : 33-140541058
> Fax : 33-140541059
> _______________________________________
>
> ----------------------------------------------------------------------------
> -----------------------------
> Come to the first official Apache Software Foundation Conference!
> -----------------------------------
> http://ApacheCon.Com ------------------------------------
>
>
--
Christopher D. Gokey, Raytheon ITSS, NASA/GCMD
18 Martin Road, Shelburne Falls, MA 01370
Phone: Voice (413) 625-8129 / FAX 208-248-9055
cgokey@gcmd.nasa.gov / http://gcmd.nasa.gov