|
Home > Archive > IIS ASP > March 2007 > generate xml without need to persist it in a file?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
generate xml without need to persist it in a file?
|
|
| keyser soze 2007-03-20, 1:20 pm |
| 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
| |
| keyser soze 2007-03-20, 1:20 pm |
| 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" <bajopalabra@hotmail.com> escribió en el mensaje
news:ekF3IKwaHHA.1240@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
|
|
|
| |
| Bob Barrows [MVP] 2007-03-20, 1:20 pm |
| Look at the code in the "Data Island" sample here:
http://www.davidpenton.com/testsite/tips/
keyser soze wrote:[vbcol=seagreen]
> 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" <bajopalabra@hotmail.com> escribió en el mensaje
> news:ekF3IKwaHHA.1240@TK2MSFTNGP04.phx.gbl...
--
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.
| |
| keyser soze 2007-03-20, 1:20 pm |
| 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]" <reb01501@NOyahoo.SPAMcom> escribió en el mensaje
news:%23U8gBYwaHHA.1300@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" <bajopalabra@hotmail.com> escribió en el mensaje
| > news:ekF3IKwaHHA.1240@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.
|
|
| |
| Bob Barrows [MVP] 2007-03-20, 1:20 pm |
| 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
??
[vbcol=seagreen]
> 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]" <reb01501@NOyahoo.SPAMcom> escribió en el mensaje
> news:%23U8gBYwaHHA.1300@TK2MSFTNGP02.phx.gbl...
--
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.
| |
| keyser soze 2007-03-20, 1:20 pm |
| ok ok ok
i didn't that piece
....WOW!
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> escribió en el mensaje
news:uzCxHdxaHHA.2296@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]" <reb01501@NOyahoo.SPAMcom> escribió en el mensaje
| > news:%23U8gBYwaHHA.1300@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" <bajopalabra@hotmail.com> escribió en el mensaje
| >>> news:ekF3IKwaHHA.1240@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.
|
|
|
|
|
|
|