Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - DTD validation error [Thread Next] Re: DTD validation errorTo: 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 "␀" >]> > > <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> > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
