Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: DTD validation error

From: Peter Flynn <peter.nosp@-.--------.-->
To: NULL
Date: 8/13/2006 5:28:00 PM

Dima.Breydo@g... wrote:
> Hello , i'm new to XML so maybe my question is stupid ...
> 
> I need to define ENTITY in xml .  As i understand in order to do it , I
> must add a DTD to xml and then add entity. XMLSPY reports the following
> validation validation problem
> 
> "Element <Config> has not been declared"

It's trying to validate the document because it thinks that the presence
of a DocType Declaration means the document is supposed to be valid. As
you presumably don't want validation, just well-formedness, ignore the
warning.

> What should i declare and how ?

Your XML is correct as given, for a well-formed document (except that
having declared the entity, you then don't appear to use it :-)

///Peter
-- 
XML FAQ: http://xml.silmaril.ie/

> This is the xml :
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE Config [
> <!ENTITY empty "&#x2400;" >]>
> 
> <Config xmlns:md="aaa.com" version="1.0">
>   <root>
>     <md:display>/</md:display>
>     <fff ID="506e738eb3772986" />
>     <good ID="e903473c054bf906">
>       <reg ID="f45ab70984dbf5b2">
>         <md:type>date</md:type>
>         20060811120100
>       </reg>
>     </good>
>   </root>
>   <md:ccc>root</md:ccc>
> </Config>
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent