Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Newbie problems . . .

From: "Buzby" <gb@---------.--->
To: NULL
Date: 10/15/2008 9:58:00 AM
Joe Fawcett wibbled:

> The first thing I would check is that the XML has loaded correctly.
> The load method returns a Boolean, if false check the
> xml.parseError.reason.  Another thing is to try include adding the
> version number to the template ProgID.  Is the output XML or just
> HTML?

Hi Joe

Thanks for your prompt reply - much appreciated

Ok set up xml.parseError & it's showing the following now:

Error parsing XML file:No data is available for the requested resource.
[http://www.hotelresb2b.com/xml/dtd/res_paises.dtd: line 0, col 0]

However I'm getting the following in the response if I write out the
xmlhttp.responseText  which I assume was being loaded with the line
"xml.loadxml(xmlhttp.responseText)"



<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE respuesta SYSTEM
"http://www.hotelresb2b.com/xml/dtd/res_paises.dtd">

<respuesta>
        <tipo><![CDATA[5]]></tipo>
        <nombre><![CDATA[Paises]]></nombre>
        <agencia><![CDATA[BOOK THIS ROOM]]></agencia>
        <parametros>
	<paises>
		<pais>
	<codigo_pais><![CDATA[AI]]></codigo_pais>
	<nombre_pais><![CDATA[ALBANIA]]></nombre_pais>
</pais><pais>
	<codigo_pais><![CDATA[AL]]></codigo_pais>
	<nombre_pais><![CDATA[ALEMANIA]]></nombre_pais>
</pais><pais>
	<codigo_pais><![CDATA[AN]]></codigo_pais>
	<nombre_pais><![CDATA[ANDORRA]]></nombre_pais>
</pais><pais>
	<codigo_pais><![CDATA[GL]]></codigo_pais>
	<nombre_pais><![CDATA[ANGUILLA]]></nombre_pais>
</pais><pais>
	<codigo_pais><![CDATA[AT]]></codigo_pais>
	<nombre_pais><![CDATA[ANTIGUA Y BARBUDA]]></nombre_pais>
</pais><pais>
	<codigo_pais><![CDATA[AH]]></codigo_pais>
	<nombre_pais><![CDATA[ANTILLAS HOLANDESAS]]></nombre_pais>
</pais>	
</paises>
</parametros>

</respuesta>

Basically I'm aiming to produce an html page at the end of it.

Thanks!

Grant

-- 
Buzby
There's nothing more dangerous than a resourceful idiot


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent