According to your dtd, 'territoire' is '#REQUIRED' to have an attribute 'name'...
-----Original Message----- From: Eric SCHAEFFER [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2000 10:56 AM To: [EMAIL PROTECTED] Subject: 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 [EMAIL PROTECTED] 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 ------------------------------------