[jdom-interest] Bug in JDOM or not ????????
Rolf Lear
rlear at algorithmics.com
Wed Aug 20 09:47:40 PDT 2003
An XHTML document must always look like:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
....
</html>
Without the doctype, the references are not included (you may want the
transitional doctype though).
Rolf
-----Original Message-----
From: Chris [mailto:chris at bitmead.com]
Sent: Wednesday, August 20, 2003 12:42 PM
To: Sanjeev Verma [CONTRACTOR]
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Bug in JDOM or not ????????
So, assuming I want to do xhtml, can you tell me what I need to do? :-)
Sanjeev Verma [CONTRACTOR] wrote:
>Hi Chris:
>
>The reason for the exception you are seeing is not because your xml is
invalid,
>because as you rightly said, it is! The error message says: "Reference to
>undefined entity "®"". What it means is that the DTD of this XML does
not
>define this entity.
>
>This is XML parser behavior. Everytime it comes accross a entity, it will
try to
>resolve it as defined by the DTD. So, if the XML does not have a DOCTYPE
>declaration at the beginning, or the DTD declared in the DOCTYTPE does not
>define this entity, then this problem will occur. Check to see which is the
>reason for failure in your case.
>
>Regards
>
>Sanjeev
>
>
>
>>Delivered-To: jdom-interest at dorothy.denveronline.net
>>From: Chris <chris at bitmead.com>
>>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4)
>>
>>
>Gecko/20030624
>
>
>>X-Accept-Language: en-us, en
>>MIME-Version: 1.0
>>To: jdom-interest at jdom.org
>>Content-Transfer-Encoding: 8bit
>>Subject: [jdom-interest] Bug in JDOM or not ????????
>>X-BeenThere: jdom-interest at jdom.org
>>X-Mailman-Version: 2.0.1
>>List-Help: <mailto:jdom-interest-request at jdom.org?subject=help>
>>List-Post: <mailto:jdom-interest at jdom.org>
>>List-Subscribe:
<http://lists.denveronline.net/mailman/listinfo/jdom-interest>,
>>
>>
><mailto:jdom-interest-request at jdom.org?subject=subscribe>
>
>
>>List-Id: JDOM Mailing List for General Issues and Updates
>>
>>
><jdom-interest.jdom.org>
>
>
>>List-Unsubscribe:
>>
>>
><http://lists.denveronline.net/mailman/listinfo/jdom-interest>,
><mailto:jdom-interest-request at jdom.org?subject=unsubscribe>
>
>
>>List-Archive: <http://lists.denveronline.net/pipermail/jdom-interest/>
>>Date: Wed, 20 Aug 2003 23:26:24 +1000
>>
>>Hi,
>>
>>I'm parsing a file that looks like this....
>><element>
>> ®
>></element>
>>
>>But JDOM dies with this error....
>>
>>org.jdom.input.JDOMParseException: Error on line 2: Reference to
>>undefined entity "®".
>>
>>My understanding is that ® is valid XML. Certainly it is part of
XHTML.
>>
>>The spec I read here.....
>>
>>http://www.w3.org/TR/xhtml1/Overview.html#issues
>>
>>Seems to indicate it is ok....
>>
>>"In both SGML and XML, the ampersand character ("&") declares the
>>beginning of an entity reference (e.g., ® for the registered
>>trademark symbol "®")."
>>
>>Is this a bug or is there something I don't understand???
>>
>>
>>
>>
>>_______________________________________________
>>To control your jdom-interest membership:
>>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourh
ost.c
>>
>>
>om
>
>Best Regards
>
>Sanjeev Verma
>Sun ONE App Server Migration Consultant
>Web Services, Tools and Migration Tools
>Market Development Engineering
>
>
>
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030820/8d5d19c1/attachment.htm
More information about the jdom-interest
mailing list