This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: IE6:clientside - 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@microsoft.com>
> To: <xsl-list@lists.mulberrytech.com>
> Cc: <rob@koberg.com>
> Sent: Friday, June 22, 2001 8:22 PM
> Subject: RE: [xsl] 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@koberg.com]
> > > Sent: Friday, June 22, 2001 7:22 PM
> > > 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]