472,129 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,129 software developers and data experts.

generate xml without need to persist it in a file?

hi
i get data with ado
i need to get a xml string from the recordset

how can i get it
without having to persist the recordset
in a (xml) text file

is there a simple way ?

thanks !!
ks

Mar 20 '07 #1
5 1717
that is,
without having to do
my own function for :
- getrows
- scan array
- format text
- merge
- end scan
- return xml

because
i think that could be more expensive
(in computational terms)

thanks
ks

"keyser soze" <ba*********@hotmail.comescribió en el mensaje
news:ek**************@TK2MSFTNGP04.phx.gbl...
| hi
| i get data with ado
| i need to get a xml string from the recordset
|
| how can i get it
| without having to persist the recordset
| in a (xml) text file
|
| is there a simple way ?
|
| thanks !!
| ks
|
|
|
Mar 20 '07 #2
Look at the code in the "Data Island" sample here:
http://www.davidpenton.com/testsite/tips/

keyser soze wrote:
that is,
without having to do
my own function for :
- getrows
- scan array
- format text
- merge
- end scan
- return xml

because
i think that could be more expensive
(in computational terms)

thanks
ks

"keyser soze" <ba*********@hotmail.comescribió en el mensaje
news:ek**************@TK2MSFTNGP04.phx.gbl...
>hi
i get data with ado
i need to get a xml string from the recordset

how can i get it
without having to persist the recordset
in a (xml) text file

is there a simple way ?

thanks !!
ks
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 20 '07 #3
thanks bob,

but i need to "response.write" a xml string

it's strange that there is no method
to get a string from the xmldom object

in fact,
there is a method to construct the xmldom object
from a string , with "loadXML"

if i must persist xml strings
one little problem is the xml file name
but a major one, is to have a kind of garbage
to delete files

there is no other way ?
am i wrong ?

thanks ! ks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
news:%2****************@TK2MSFTNGP02.phx.gbl...
| Look at the code in the "Data Island" sample here:
| http://www.davidpenton.com/testsite/tips/
|
| keyser soze wrote:
| that is,
| without having to do
| my own function for :
| - getrows
| - scan array
| - format text
| - merge
| - end scan
| - return xml
| >
| because
| i think that could be more expensive
| (in computational terms)
| >
| thanks
| ks
| >
| >
| >
| "keyser soze" <ba*********@hotmail.comescribió en el mensaje
| news:ek**************@TK2MSFTNGP04.phx.gbl...
| >hi
| >i get data with ado
| >i need to get a xml string from the recordset
| >>
| >how can i get it
| >without having to persist the recordset
| >in a (xml) text file
| >>
| >is there a simple way ?
| >>
| >thanks !!
| >ks
|
| --
| Microsoft MVP -- ASP/ASP.NET
| Please reply to the newsgroup. The email account listed in my From
| header is my spam trap, so I don't check it very often. You will get a
| quicker response by posting to the newsgroup.
|
|
Mar 20 '07 #4
keyser soze wrote:
thanks bob,

but i need to "response.write" a xml string
Huh? The example shows how to do it!
>
it's strange that there is no method
to get a string from the xmldom object
Again, huh!?!?

What about

response.write xmldoc.xml

??
in fact,
there is a method to construct the xmldom object
from a string , with "loadXML"

if i must persist xml strings
one little problem is the xml file name
but a major one, is to have a kind of garbage
to delete files

there is no other way ?
am i wrong ?

thanks ! ks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Look at the code in the "Data Island" sample here:
http://www.davidpenton.com/testsite/tips/

keyser soze wrote:
>>that is,
without having to do
my own function for :
- getrows
- scan array
- format text
- merge
- end scan
- return xml

because
i think that could be more expensive
(in computational terms)

thanks
ks

"keyser soze" <ba*********@hotmail.comescribió en el mensaje
news:ek**************@TK2MSFTNGP04.phx.gbl...
hi
i get data with ado
i need to get a xml string from the recordset

how can i get it
without having to persist the recordset
in a (xml) text file

is there a simple way ?

thanks !!
ks

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get
a quicker response by posting to the newsgroup.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Mar 20 '07 #5
ok ok ok
i didn't that piece
....WOW!
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
news:uz**************@TK2MSFTNGP03.phx.gbl...
| keyser soze wrote:
| thanks bob,
| >
| but i need to "response.write" a xml string
|
| Huh? The example shows how to do it!
| >
| it's strange that there is no method
| to get a string from the xmldom object
| >
|
| Again, huh!?!?
|
| What about
|
| response.write xmldoc.xml
|
| ??
|
| in fact,
| there is a method to construct the xmldom object
| from a string , with "loadXML"
| >
| if i must persist xml strings
| one little problem is the xml file name
| but a major one, is to have a kind of garbage
| to delete files
| >
| there is no other way ?
| am i wrong ?
| >
| thanks ! ks
| >
| "Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomescribió en el mensaje
| news:%2****************@TK2MSFTNGP02.phx.gbl...
| >Look at the code in the "Data Island" sample here:
| >http://www.davidpenton.com/testsite/tips/
| >>
| >keyser soze wrote:
| >>that is,
| >>without having to do
| >>my own function for :
| >>- getrows
| >>- scan array
| >> - format text
| >> - merge
| >>- end scan
| >>- return xml
| >>>
| >>because
| >>i think that could be more expensive
| >>(in computational terms)
| >>>
| >>thanks
| >>ks
| >>>
| >>>
| >>>
| >>"keyser soze" <ba*********@hotmail.comescribió en el mensaje
| >>news:ek**************@TK2MSFTNGP04.phx.gbl...
| >>>hi
| >>>i get data with ado
| >>>i need to get a xml string from the recordset
| >>>>
| >>>how can i get it
| >>>without having to persist the recordset
| >>>in a (xml) text file
| >>>>
| >>>is there a simple way ?
| >>>>
| >>>thanks !!
| >>>ks
| >>
| >--
| >Microsoft MVP -- ASP/ASP.NET
| >Please reply to the newsgroup. The email account listed in my From
| >header is my spam trap, so I don't check it very often. You will get
| >a quicker response by posting to the newsgroup.
|
| --
| Microsoft MVP -- ASP/ASP.NET
| Please reply to the newsgroup. The email account listed in my From
| header is my spam trap, so I don't check it very often. You will get a
| quicker response by posting to the newsgroup.
|
|
Mar 20 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tim:. | last post: by
7 posts views Thread by Rathtap | last post: by
reply views Thread by ward | last post: by
reply views Thread by hon123456 | last post: by
reply views Thread by Avon | last post: by
82 posts views Thread by robert bristow-johnson | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.