[U2] [UD] XML Question...

2006-01-12 Thread David Wolverton
We have a theory question...

I have a C function that when it completes, can return an complete XML
document as a 'string' instead of making me call the C function over and
over to 'bleed out' all the data...

So... Now I'm sitting in my UniBASIC routine, with a complete XML document
in hand, assigned to a UniBASIC Variable - but - and this is the part that
confuddles me - it appears none of the U2 UniBASIC XML extensions would be
usable against that XML item held in a variable unless I write it out to
disk, then 'open' it and read it...

And that seemed weird - will I really have to incur multiple disk-IO to
handle this? (Or even more frightening, have to write my own in-line
parser?!?)

Just wondering how others are doing it, or if I'm missing something from my
readings of the BASIC Extentions guide...

Thanks -
David W.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UD] XML Question...

2006-01-12 Thread Craig Bennett

David,

So... Now I'm sitting in my UniBASIC routine, with a complete XML document
in hand, assigned to a UniBASIC Variable - but - and this is the part that
confuddles me - it appears none of the U2 UniBASIC XML extensions would be
usable against that XML item held in a variable unless I write it out to
disk, then 'open' it and read it...
  
Which version of UV are you running? From memory the BASIC DOM routines 
will allow you to process the XML from memory rather than from disk.


eg:

XDOMOpen(YOURXMLINHERE, XML.FROM.STRING, mydom)


HTH,


Craig
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UD] XML Question...

2006-01-12 Thread Wendy Smoak
On 1/12/06, David Wolverton [EMAIL PROTECTED] wrote:

 So... Now I'm sitting in my UniBASIC routine, with a complete XML document
 in hand, assigned to a UniBASIC Variable - but - and this is the part that
 confuddles me - it appears none of the U2 UniBASIC XML extensions would be
 usable against that XML item held in a variable unless I write it out to
 disk, then 'open' it and read it...

I've only done it the other way around, creating XML in UniBASIC and
sending it out with CallHTTP.  When I was working with it (a while
ago) I could not create XML in memory, I had to write it to a file and
then read it back in as text.  I suspect you're seeing the same thing
in reverse, unfortunately.

--
Wendy
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UD] XML Question...

2006-01-12 Thread David Wolverton
We're on UniData -- but that's the exact thing I needed ... I just hadn't
gotten that far in the Docs!! 

Perfect - it's just what I was looking for.

David W.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett
Sent: Thursday, January 12, 2006 7:08 PM
...
Which version of UV are you running? From memory the BASIC DOM routines will
allow you to process the XML from memory rather than from disk.

eg:

XDOMOpen(YOURXMLINHERE, XML.FROM.STRING, mydom)


HTH,


Craig
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/