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

RE: MS XML Parser

Subject: RE: MS XML Parser
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Fri, 16 Nov 2001 14:52:31 -0000
scripting.filesystemobject xml
I really am asleep. A text stream is not an Istream so it won't work
NOTE: The Output Stream may be any object that supports an IStream or
ISequentialStream interface. Objects that support the IStream interfaces
are the ADODB.Stream, IIS5 Response object, and an MSXML DomDocument. 
So you are stuck with using the Response object. You can always do
ts.write(doc.transformNode(xsl)) but that forces the encoding="UTF-16".

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Ruane, Conleth
> Sent: 16 November 2001 13:25
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  MS XML Parser
> 
> 
> Thank God it's Friday?
> 
> I caught those typos too. This was my version:
> 
> 	set FSO = Server.CreateObject("scripting.FileSystemObject")
> 	fso.CreateTextFile(Server.MapPath("test1.xml") )
> 	set f = fso.GetFile(Server.MapPath("test1.xml"))
> 	set ts = f.OpenAsTextStream(2, -2)
> 	doc.transformNodeToObject xsl, ts
> 
> But I still get "Invalid procedure call or argument: 
> 'doc.transformNodeToObject'"
> 
> I actually have a post processing solution to my problem, it 
> just annoys me that it can't be done in the asp page.
> 
> Thanks
> Bye
> Conleth Ruane
> > COMPAQ  EMEA HQ IM, Munich
> Telephone: +49-89-9392-4393
> mailto:Conleth.Ruane@xxxxxxxxxx
> 
> 
> 
> -----Original Message-----
> From: Chris Bayes [mailto:chris@xxxxxxxxxxx]
> Sent: Friday, November 16, 2001 2:04 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  MS XML Parser
> 
> 
> Doh! Still not awake.
> 
>  Set fso = Server.CreateObject("Scripting.FileSystemObject")
>  fso.CreateTextFile "test1.xml" 
>  set f = fso.GetFile "test1.xml"
>  set ts = f.OpenAsTextStream ForWriting, TristateUseDefault 
>  doc.transformNodeToObject xsl, ts
> 
> But I'm still sure you don't want to do this
> 
> Ciao Chris
> 
> XML/XSL Portal
> http://www.bayes.co.uk/xml
> 
> 
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> > Chris Bayes
> > Sent: 16 November 2001 12:36
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE:  MS XML Parser
> > 
> > 
> > Conleth,
> > Doh! I wasn't awake.
> > I should have said use the "Response" object i.e.
> > 
> > doc.transformNodeToObject xsl, Response
> > 
> > Which will stream the result to the client. If you want to do
> > it to a file although I think you probably don't you will need to 
> > 
> > Set fso = Server.CreateObject("Scripting.FileSystemObject");
> > fso.CreateTextFile( "test1.xml" );
> > f = fso.GetFile("test1.xml");
> > ts = f.OpenAsTextStream(ForWriting, TristateUseDefault);
> > doc.transformNodeToObject xsl, ts
> > 
> > Ciao Chris
> > 
> > XML/XSL Portal
> > http://www.bayes.co.uk/xml
> > 
> > 
> >  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> > 
> > 
> 
> 
>  XSL-List 
> info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  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.