Click to See Complete Forum and Search --> : How to convert XML as it is in HTML format


prajaktk
08-08-2006, 01:25 AM
i want to convert following XML into HTML as..
Input XML

<response>
<order_number></order_number>
<error_code></error_code>
<error_message></error_message>
</response>

Output in HTML as

<response>
<order_number>TEXTBOX</order_number>
<error_code>TEXTBOX</error_code>
<error_message>TEXTBOX</error_message>
</response>

Kor
08-08-2006, 04:12 AM
treat it as a string.

If using a server-side method, make a server-side aplication which will grab the XML file, and write it in a page as string

If using AJAX, handle the request as responseText (not responseXML) and insert it as a string with a DOM method as textNode (data or nodeValue methods)

Charles
08-08-2006, 05:51 AM
AJAX is too iffy, I'd use XSLT.

smde
09-06-2006, 09:01 PM
You can also easily access the XML data using data binding in javascript - building a data island . using DSO is simple ... and functional - allows for dynamic access to the data ...
:)