Streaming out XML

Post Reply
dcera0
Posts: 1
Joined: Wed Aug 08, 2001 5:02 pm

Streaming out XML

Post by dcera0 »

As a test, I am running texis from a command prompt (using a script to "gen" the xml) - this works fine - however, the main goal here is to run texis (+script) within a VB dll and output the results to a string variable within the dll (the next step being: "stream" the data into a ADO recordset).
Is there another "container" to do this? When I run the script in VB, it runs fine, but the return is just the PID (process ID or failure).
I need the string output. The command-line set-up looks like this:
strOutput = objScript.Run(texis q=parameter \fileroot\xml_product\main.xml) Is there a way to "capture" main.xml?
My question is where is texis putting this text when I run this in VB - is there a place to store it via texis?
I'd prefer to stream it right to the variable (rather than save it to/as a file).
Any ideas? - thanks.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Streaming out XML

Post by John »

The output is sent to the standard output stream of the process. I'm not sure where the Run function you are calling comes from.

One possible solution is to invoke texis via HTTP, and use the ADO recordset open with a URL, which is probably the simplest.

I'm not sure if there is anyway in VB to capture the output of a program into a variable, although it should be fairly easy to do, as that is what the <EXEC> function in Vortex does.
John Turnbull
Thunderstone Software
Post Reply