generate xml without need to persist it in a file?
generate xml without need to persist it in a file?
am 20.03.2007 16:26:10 von bajopalabra
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
Re: generate xml without need to persist it in a file?
am 20.03.2007 16:35:57 von bajopalabra
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" 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
|
|
|
Re: generate xml without need to persist it in a file?
am 20.03.2007 16:42:06 von reb01501
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" 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.
Re: generate xml without need to persist it in a file?
am 20.03.2007 17:40:18 von bajopalabra
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]" 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" 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.
|
|
Re: generate xml without need to persist it in a file?
am 20.03.2007 18:45:45 von reb01501
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]" 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" 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.
Re: generate xml without need to persist it in a file?
am 20.03.2007 18:59:33 von bajopalabra
ok ok ok
i didn't that piece
....WOW!
"Bob Barrows [MVP]" 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]" 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" 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.
|
|