Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Newbie problems . . . >Thread Next - Re: Newbie problems . . . Re: Newbie problems . . .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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
