OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] How to embed xml in an html file, and parse the file using

[ Lists Home | Date Index | Thread Index ]

On 7/27/06, Anil Philip <goodnewsforyou@yahoo.com> wrote:
>  ---------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> However I get parse errors
> eg.
> java.net.UnknownHostException: www.w3.org
> at java.net.PlainSocketImpl.connect(Unknown Source)

You are getting this error because the XML parser is trying to fetch
the file xhtml1-transitional.dtd from the above URL.

I think there are two solutions to this:

1) If the PC on which you are running your program, is connected to
internet, the parser will be able to reach this URL, and you will not
get this error.

2) You can write a custom EntityResolver to handle this.




News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS