This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: IE6:clientside - XML to string?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] IE6:clientside - XML to string?
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Sat, 23 Jun 2001 06:28:50 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Rob,
source.documentElement.xml will give you the xml from an XML data island but
it doesn't include the xml declaration or any PIs. This works for 4, 5 and 6
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Robert Koberg
>Sent: 23 June 2001 03:22
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] IE6:clientside - XML to string?
>
>
>Sorry for the OT post, but it seems like this is the best place to ask the
>question...
>
>Is it possible given the following in on an html page:
>
><XML id="source" src="abc.xml"></XML>
>
>to get the a string representation of the xml from some DOM method using
>javascript? (I am having troubles finding documentation at MS for
>IE6 which
>is in beta)
>----------------------------
>If abc.xml was:
>
><article>
> <para> blah blah</para>
></article>
>---------------------------
>then is there something like?
>
>var theXMLasString= source.toString()
>
>which make this true:
>
>theXMLasString=='<article>\n%20%20<para> blah blah</para>\n</article>';
>// or whatever the proper string notation is...
>
>thanks for any help or pointers,
>Rob
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list