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

Re: IE6:clientside - XML to string?

Subject: Re: IE6:clientside - XML to string?
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Fri, 22 Jun 2001 22:44:36 -0700
javascript xml to string
 Hi,

 Thanks, but the XML tag is the way to identify xml and xsl for IE
client-side inside an html document (which is transformed server-side,
fwiw).

The code I gave would be enough to operate on a W3C DOM (1?) representation
of the XML document. It is not the DHTML dom.  I was asking for a way to
take the DOM representation of the XML document and convert it to a string.

IE6, I believe, has fully implemented DOM1 and you can access a downloaded
XML client-side with it through JavaScript.

thanks,
Rob

p.s. I would have asked Chris B. directly, but thought his answer could
benefit everyone :)


> ----- Original Message -----
> From: "Joshua Allen" <joshuaa@xxxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Cc: <rob@xxxxxxxxxx>
> Sent: Friday, June 22, 2001 8:22 PM
> Subject: RE:  IE6:clientside - XML to string?
>
>
> > You could try
> > http://msdn.microsoft.com/newsgroups/loadframes.asp?icp=msdn&slcid=us&ne
> > wsgroup=microsoft.public.xml
> > (I apologize if line breaks appear; should be all one URL) and probably
> > get a better answer.
> >
> > Some things to note -- it is not technically valid in XML to have a tag
> > with the name "XML", although IE is lax on this.  Another thing to note
> > is that the XML DOM and the DHTML DOM are not the same DOM; they are two
> > different W3C specs.  You are probably looking for something like
> > getElementByName or getElementById("source").innerHTML, which is also
> > valid in Netscape 6 now.
> >
> > Regards,
> > Joshua
> >
> > > -----Original Message-----
> > > From: Robert Koberg [mailto:rob@xxxxxxxxxx]
> > > Sent: Friday, June 22, 2001 7:22 PM
> > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > > Subject:  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


Current Thread

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
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-2013 All Rights Reserved.