a small question on xml

Frank Boumphrey bckman at ix.netcom.com
Mon Aug 17 20:14:28 BST 1998

Li wrote:

> I used IBM Parser for XML, but it shows some error. It seems that
>" and < are not properly represented.

>From section 2.4 of the XML spec obtainable at

The ampersand character (&) and the left angle bracket (<) may appear in
their literal form only when used as markup delimiters, or within a comment,
a processing instruction, or a CDATA section. They are also legal within the
literal entity value of an internal entity declaration; see "4.3.2
Well-Formed Parsed Entities". If they are needed elsewhere, they must be
escaped using either numeric character references or the strings "&amp;" and
"&lt;" respectively. The right angle bracket (>) may be represented using
the string "&gt;", and must, for compatibility, be escaped using "&gt;" or a
character reference when it appears in the string "]]>" in content, when
that string is not marking the end of a CDATA section. "


Frank Boumphrey

XML and style sheet info at Http://www.hypermedic.com/style/index.htm
Author: - Professional Style Sheets for HTML and XML http://www.wrox.com
-----Original Message-----
From: Li Jiefeng <jieli at cs.umbc.edu>
To: <xml-dev at ic.ac.uk>
Date: Monday, August 17, 1998 12:07 PM
Subject: a small question on xml

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)

More information about the Xml-dev mailing list