generate xml without need to persist it in a file?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > generate xml without need to persist it in a file?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    generate xml without need to persist it in a file?  
keyser soze


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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








[ Post a follow-up to this message ]



    Re: generate xml without need to persist it in a file?  
keyser soze


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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
|
|
|







[ Post a follow-up to this message ]



    Re: generate xml without need to persist it in a file?  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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.







[ Post a follow-up to this message ]



    Re: generate xml without need to persist it in a file?  
keyser soze


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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.
|
|







[ Post a follow-up to this message ]



    Re: generate xml without need to persist it in a file?  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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.







[ Post a follow-up to this message ]



    Re: generate xml without need to persist it in a file?  
keyser soze


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-20-07 06: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 mensaj
e
| > 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.
|
|







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:28 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register