Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] "&#x" vs. "&0x"

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: "Sebastien Brissaud" <seb AT inovo.be>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] "&#x" vs. "&0x"
  • Date: Mon, 24 Feb 2003 11:36:39 -0500

Hi all,

In TextWriter.java, the method writeAttributeValue(char) escape characters with the "&0x" prefix instead of "&#x" in the writePCDATA(char) method.
After reading the XML Recommendation (http://www.w3.org/TR/REC-xml#wf-Legalchar), I think than character in attributes values should be escaped with the "&#x" prefix.
Is it something I have missed who justify the use of the "&0x" prefix?


If that's accurate, it's a bug. I'll look into it.
--

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
From arupsarkar AT vzavenue.net Mon Feb 24 23:14:11 2003
Return-Path: <arupsarkar AT vzavenue.net>
Delivered-To: xom-interest AT lists.ibiblio.org
Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140])
by happyhouse.metalab.unc.edu (Postfix) with ESMTP id 0FCBA20020
for <xom-interest AT lists.ibiblio.org>;
Mon, 24 Feb 2003 23:14:10 -0500 (EST)
Received: from arupsarkar (32.75.171.66.subscriber.vzavenue.net [66.171.75.32]
(may be forged))
by smtp.vzavenue.net (Mirapoint Messaging Server MOS 2.9.3.5)
with ESMTP id AKM69164; Mon, 24 Feb 2003 23:15:26 -0500 (EST)
Content-Type: text/plain;
charset="iso-8859-1"
From: Arup Sarkar <arupsarkar AT vzavenue.net>
Date: Mon, 24 Feb 2003 23:17:04 -0500
User-Agent: KMail/1.4.3
To: xom-interest AT lists.ibiblio.org
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Message-Id: <200302242317.04560.arupsarkar AT vzavenue.net>
Subject: [XOM-interest] Fwd: SAX2 Error
X-BeenThere: xom-interest AT lists.ibiblio.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: <xom-interest.lists.ibiblio.org>
List-Unsubscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=unsubscribe>
List-Archive: <https://lists.ibiblio.org/sympa/arc/xom-interest>
List-Post: <mailto:xom-interest AT lists.ibiblio.org>
List-Help: <mailto:sympa AT lists.ibiblio.org?subject=HELP>
List-Subscribe: <http://lists.ibiblio.org/mailman/listinfo/xom-interest>,
<mailto:xom-interest-request AT lists.ibiblio.org?subject=subscribe>
X-List-Received-Date: Tue, 25 Feb 2003 04:14:11 -0000


I am Java XML newbie, I was trying out the Java programs mentioned in the
linux magazine, I downloaded the programs from
www.linux-mag.com/downloads/2003-03/Java, the first program Domains.java
worked fine, the second program ChangeDomains.java compiled Ok but when I=
am
executing it I am getting the following error.

I would appreciate any feedback.

Regards
Arup

Exception in thread "main" nu.xom.XMLException: Could not find a SAX2 par=
ser
at nu.xom.Builder.findParser(Builder.java:146)
at nu.xom.Builder.<init>(Builder.java:110)
at nu.xom.Builder.<init>(Builder.java:90)
at ChangeDomains.main(ChangeDomains.java:8)
Caused by: org.xml.sax.SAXException: System property org.xml.sax.driver n=
ot
specified
at
org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.jav=
a:90
) at nu.xom.Builder.findParser(Builder.java:142)
... 3 more

-------------------------------------------------------




Archive powered by MHonArc 2.6.24.

Top of Page