473,405 Members | 2,185 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,405 software developers and data experts.

Missing entitites - Invalid or not well-formed ?

Suppose I have a XML document, in a format such as RSS.
I then use a reference to a well-known HTML entity, such as é

Clearly this isn't "correct" (the entity is unknown) - but is this
an error of well-formedness (i.e. at the XML level) or an error of
validity (incompatible with the referenced schema) ?

Jul 20 '05 #1
2 1314
Andy Dingley wrote:
Suppose I have a XML document, in a format such as RSS.
I then use a reference to a well-known HTML entity, such as é

Clearly this isn't "correct" (the entity is unknown) - but is this
an error of well-formedness (i.e. at the XML level) or an error of
validity (incompatible with the referenced schema) ?

It is not well-formed: it is a syntax error, an unknown entity.
Validation is more of a lexical (meaning) test.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 20 '05 #2
In article <po********************************@4ax.com>,
Andy Dingley <di*****@codesmiths.com> wrote:
Suppose I have a XML document, in a format such as RSS.
I then use a reference to a well-known HTML entity, such as &eacute;

Clearly this isn't "correct" (the entity is unknown) - but is this
an error of well-formedness (i.e. at the XML level) or an error of
validity (incompatible with the referenced schema) ?


That depends.

If there is no external DTD, and standalone="yes" is not specified,
then it is only a validity error. The reason for this is that a
parser that doesn't read the external DTD can't be sure that there
isn't a declaration there.

If there is no external DTD, or standalone="yes" is specified, then
any processor can be sure that there isn't a declaration, and the
error is a well-formedness error.

Bear in mind that even if it's "only" a validity error, many programs
will not be able to process such a document because they require fully
expanded documents. XSLT is a typical example of this.

Also bear in mind that DTD validation is the only kind of validation
related to entity declarations. Other schema mechanisms (XML Schemas,
RelaxNG, Schematron etc) do not address this issue because they are
not tied in to parsing in the way that DTD validation is.

-- Richard
Jul 20 '05 #3

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

Similar topics

9
by: Safalra | last post by:
The idea here is relatively simple: a java program (I'm using JDK1.4 if that makes a difference) that loads an HTML file, removes invalid characters (or replaces them in the case of common ones...
5
by: Analysis&Solutions | last post by:
Hi Folks: I've got a weird phenomenon going on with Internet Explorer on the Macintosh... The vertical cell borders are missing between the cells but appear above and below the cells! Here's...
3
by: Samem N via DotNetMonster.com | last post by:
Does anyone know how to solve this error? I dont know where it went wrong. Any help would be appreciated .Thanks ERROR ______ Description: An unhandled exception occurred during the execution...
37
by: Art | last post by:
Hello everyone, I am interested in starting an all volunteer website which will be directed at recovering missing children. I am aware that there are few other sites out there with the same...
102
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler...
2
by: noleander | last post by:
I'm trying to call the Microsoft image-processing function AlphaBlend() in my Visual C++ application. My software compiles okay, but gets a link error (details below) that says it cannot find the...
12
by: John Sidney-Woollett | last post by:
<rant> Please can someone explain why Postgres cannot recognize that objects (referenced by pl/pgsql functions) whose OID no longer exists could in fact be found (as new objects) if the function...
8
by: Elijah Cardon | last post by:
1 1 1 1 1 1 2 2 2 1 1 1 3 3 3 1 1 1 4 4 1 2 1 1 5 5 2 2 1 1 6 6 3 2 1 1 7...
3
by: Fred Chateau | last post by:
Still working on my XML DataSet... Having moved on past difficult and complex problems, resolved with the assistance of everyone here, I find myself facing yet another problem. My XML document...
2
by: Joe Kovac | last post by:
Hi! I have many pages that expect query strings. One of the first things to do, should be to check if the values of the QueryString are valid. But how should I react on invalid/missing...
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.