473,598 Members | 3,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 23 '05 #1
3 2043
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 23 '05 #2
* Andy Dingley wrote in comp.infosystem s.www.authoring.html:
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) ?


If the document does not refer to a document type definition this would
be a fatal error for the processor, see the entity declared constraints
in the XML 1.0 Third Edition Recommendation.
Jul 23 '05 #3
In article <po************ *************** *****@4ax.com>,
Andy Dingley <di*****@codesm iths.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 23 '05 #4

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

Similar topics

9
8143
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 like Microsoft's 'smartquotes'), and outputs the file. The problem is these files will be on disk, so the program won't have the character encoding information from the server. Questions:
5
2815
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 the page and a screen shot a friend took for me because I use Windows. Shot: http://www.bikesummer.org/2003/local/rentals.jpg Page: http://www.bikesummer.org/2003/local/rentals.php
3
16282
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 of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
37
2107
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 mission. However, My perspective I believe is a little different and more pro-active. And, the way I view... worst case scenario, we recover a few additional missing children.... Anyhow, this perspective would be a little more involved and will...
102
5640
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 can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
2
742
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 symbol AlphaBlend(). I'm calling dozens of other Microsoft bitmap and imagery functions without error. The MS documentation says that AlphaBlend is in msimg32.dll. I have this file, in folder C:\Windows\System32.
12
2031
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 was reparsed and compiled again. Here's an example: Create table t1 (f1 integer);
8
2116
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 7 1 3 1 1 8 8 2 3 1 1 9 9 3 3 1 1 10 10 1 1 2 1
3
2816
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 breaks the schema. There are missing tags everywhere, on purpose I'm told, because we don't need them. I'm getting a "System.Data: There is no row at position <row number>" error. Hopefully I can workaround this issue. I need to find a way to...
2
2171
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 QueryStrings? Somehow the page itself should stop rendering any controls and just display an error message. How would I achieve this? Where should that be done? What are other possible solutions? Thanks
0
7991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7902
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8395
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8265
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6719
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3898
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.