473,378 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

DTD validation error

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 <Confighas not been declared"

What should i declare and how ?

Thanks a lot,

Dima

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>

Aug 3 '06 #1
2 1155
* Di*********@gmail.com wrote in comp.text.xml:
>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 <Confighas not been declared"

What should i declare and how ?
You could read a tutorial on XML DTDs or perhaps get a DTD from whoever
specified the XML format you are using, but more likely you don't mean
to actually use DTD validation for your document, in which case you can
just ignore the error report.
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Aug 3 '06 #2
Di*********@gmail.com 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 <Confighas 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>
Aug 13 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Shone | last post by:
I would like to perform a 2-pass XML reading from a stream. Once using the Validating reader, just to confirm the validity against the schema, and next time to do a reading to extract the data....
2
by: Doslil | last post by:
I am trying to validate the fields in my database.I have already validated the fields to check for not null.Here is what I have written for Numeric and text field. Private Function EENUM() On...
3
by: Rob Meade | last post by:
Hi all, I have a login page which has username and password fields, a login button, and 2 validation controls (one for each field) - currently I have controls to display to the summary if the...
14
by: Matt | last post by:
I want to know if ASP.NET Web Forms Validation Controls are Server-Side or Client-Side form validation? Since I think each validator control can select either 1) JavaScript based error dialog or 2)...
2
by: Martyn Fewtrell | last post by:
Dear All I have a Windows 2003 Server with IIS6 where the validation controls on ASP.Net pages no longer work. I believe it to be specific to the server as if I create an ASP.Net page on the...
12
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
11
by: Rik | last post by:
Hello guys, now that I'm that I'm working on my first major 'open' forms (with uncontrolled users I mean, not a secure backend-interface), I'd like to add a lot of possibilities to check wether...
3
by: teo | last post by:
Mozilla error on postback and validation ----------- A Button causes a Listbox to desappear. If no item has been selected on the Listbox, all is OK. If one or more items are selected,
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.