Hi every one

Below a short sample using XMLEXECUTE

It works well on Uv 10.1.x

CMD="LIST FAMWEB TDIF LBAS CBAS CBASCDT"
OPTIONS="WITHDTD":@FM:"XMLMAPPING":@VM:"FAMWEB_MAP"
XMLSCHEMA=""
MYVAR=""
STATUS=XMLEXECUTE(CMD,OPTIONS,MYVAR,XMLSCHEMA)
OPEN "&XML&" TO FXML ELSE ABORT
WRITE MYVAR ON FXML,"FG.XML"

I hope this help you.

Francis
-------Message original-------

De : Brian Leach
Date : 06/07/06 10:55:45
A : u2-users@listserver.u2ug.org
Sujet : RE: [U2] [UV] XMLEXECUTE syntax {Unclassified}

Mike/David

GETXMLSUB does work : it is called (internally) from the UniXML UO.Net
object as a globally cataloged program to get an XML data set. TIP: if
you're trying to use UniXML and haven't got it to work, check that all the
uv account BP programs with 'XML' in the name are globally cataloged!
They're not at some 10.1 releases.

The documentation for UniVerse IS out of date: but I have seen correct
documentation for UniData  7.1 which unfortunately I don't have to hand
right now.

As I recall the arguments are:

XMLExecute( Command, Options, XMLData, DTDData)

Command = LIST, SORT or SELECT (SQL) command
Options = the arguments that would normally be appended to a LIST ... TOXML
e.g. ELEMENTS, WITHDTD, ROOT name etc. These as dynamic array (@FM between),
where there are settings e.g. root name these are appended with an @VM.
XMLData = return data as an XML string.
DTDData = returned DTD (optional) if WITHDTD specified.


Brian


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Hona, David S
> Sent: 07 June 2006 03:22
> To: u2-users@listserver.u2ug.org
> Subject: RE: [U2] [UV] XMLEXECUTE syntax {Unclassified}
>
> Check the UV Account BP, source GETXMLSUB, a full-blown "working"
> example. Not sure if it actually works...Doesn't use the
> syntax as shown in the 'New features' PDF at all. Interesting!
>
> Regards,
> David
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> HENDERSON MIKE, MR
> Sent: Wednesday, June 07, 2006 8:51 AM
> To: u2-users@listserver.u2ug.org
> Cc: TOMLINSON RUTH, MS
> Subject: [U2] [UV] XMLEXECUTE syntax {Unclassified}
>
> Folks
>
> According to the 10.1 'new features' list
> ["newfeatures.pdf"], the syntax below is correct, but the
> compiler doesn't like it.
> And of course, there's no "HELP BASIC XMLEXECUTE" and the
> Basic Extensions manual says the same as the New Features Guide.
>
> Any ideas what the syntax is really supposed to be?
>
>
> Thanks
>
>
> Mike
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to