OUTPUT=xml

dpacke0
Posts: 5
Joined: Tue Mar 19, 2002 9:18 pm

OUTPUT=xml

Post by dpacke0 »

In the vortex manual OUTPUT=xml explains that "Each field will be an element, named the same as the Vortex variable would be, nested in a result element within a results top-level element."

When I do:
<SQL NOVARS OUTPUT=xml "select VAR1 from ABC"></SQL>
where is the output?
I've tried:
<loop $VAR1> $VAR1 </loop>
<loop $ret> $ret </loop>
<loop $xml> $xml </loop>
all three are empty. How do I display the results of the SQL search?

Thanks.
User avatar
John
Site Admin
Posts: 2623
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH

OUTPUT=xml

Post by John »

The output will appear automatically from the SQL statement. Which version of texis do you have? The OUTPUT=xml as added more recently than the OUTPUT=xml:ado, and if your version is not new enough you won't see the output.
John Turnbull
Thunderstone Software
dpacke0
Posts: 5
Joined: Tue Mar 19, 2002 9:18 pm

OUTPUT=xml

Post by dpacke0 »

You found the problem -- my version is too old -- June 22, 2000.

Thanks.
dpacke
Posts: 1
Joined: Mon Oct 30, 2000 2:55 pm

OUTPUT=xml

Post by dpacke »

I tried OUTPUT=xml on a 12/18/2001 version and it worked great!