External DTD with XDOM3.2



Hello,

I try to validate my xml file with a external dtd file.

My dtd file starts like this:
<!ELEMENT import (version, customer)>
<!ELEMENT version (#PCDATA)>
<!ELEMENT customer (cuspayment?, cusbranch*, cuscomm+, cusaddress+,
rep?, prditems?)>
<!ATTLIST customer
no CDATA #REQUIRED
sex (5|6) #REQUIRED
name CDATA #REQUIRED
addname CDATA #IMPLIED
block (204|205|206|207|208|209|210|211) #REQUIRED
iscommercial CDATA "0"
comment CDATA #IMPLIED
>

And my xml file has the reference to this dtd file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE import SYSTEM "import.dtd">
<import>

Both files are in the same folder but some how I cannot validate the
xml file using the dtd. I get lots of ELEMENT_NOT_DEFINED messages.
Where if I put the dtd into the xml file it works fine.

Does somebody have a idea what it could be.
Maybe a missing setting in the xdom3.2 component that I need to do?

Thank you very much
Hasan Tuncay

.



Relevant Pages

  • Re: XML-QL
    ... 1) I understand that data goes in the *.xml file; 2) I understand there is a *.dtd file; BUT 3) WHERE does the QUERY itself live? ... naming convention other than.xql filetypes. ...
    (microsoft.public.data.xmlanalysis)
  • Re: XML in a unit test
    ... I'm using NetBeans and I've written a unit test that just reads in an XML ... The problem is that I don't know what to do with the DTD file so that it ... doesn't know where the xml file came from so the current directory doesn't ...
    (comp.lang.java.programmer)
  • about xml parser
    ... How to validate a XML file using a external dtd file? ...
    (comp.text.xml)
  • Re: DTD validation without DOCTYPE in xml
    ... Is there any way to tell XmlValidatingReader to specifically use that DTD file even when DOCTYPE is not in the xml file? ...
    (microsoft.public.dotnet.xml)
  • Re: help with reading xml file
    ... You have too many levels in your XML file. ... Columnnames then are simply names of the columns, ... This is the case without a schema. ...
    (microsoft.public.dotnet.languages.csharp)