[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to embed xml in an html file, and parse the file using

  • To: "Anil Philip" <goodnewsforyou@y...>
  • Subject: Re: How to embed xml in an html file, and parse the file using Sax?
  • From: "Mukul Gandhi" <gandhi.mukul@g...>
  • Date: Sun, 30 Jul 2006 10:48:17 +0530
  • Cc: "xml dev" <xml-dev@l...>
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L7JogApURlt6HW+ZKflhKlHS8zQgRI9zE/zu6vK0+ZCZLs6zEjxzu14eEHYKApZSHD21W7VXEyNJAm7hhLkPiaP+NmfzjlBjBKJIACxCTWZdStoGnp22mKfPMRgbfKLtBsZ9IZIavKtxhBqUIRkqhXnPfQLsnBHL+BTzeKOhGRQ=
  • In-reply-to: <20060727181948.98896.qmail@w...>
  • References: <20060727181948.98896.qmail@w...>

embed xml html
On 7/27/06, Anil Philip <goodnewsforyou@y...> 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.

Regards,
Mukul

http://gandhimukul.tripod.com

Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.