This may need to go in a new thread, but JohnH has been extremely helpful in getting me going with XML. After playing with it for a while, i seem to be getting it, at least for what I need to do. Thank you for that.
What i would like to know now is if it is possible is to edit XML, and transform it using XSL, all using STRINGS. Meaning, is there a way to do it without having to write the XML/XSL to files first. The xml and xsl code I get is generated programatically (it comes from a web source). So i receive the XML in a string. I need to add my nodes, then transform it and output it to a page.
So it kind of goes something like:
in "Default.aspx":
On a button click: Response.Redirect("DisplayPage.aspx")
in DisplayPage.aspx:
In the Page_Load:
stringXML = api.call.to.get.XML
stringXSL = api.call.to.get.XSL
stringXML = MakeSomeChanges To stringXML
stringHTML = use stringXSL to transform stringXML to HTML
response.write(stringHTML)
Any suggestions on a "best practice" to accomplish this? as you can see, since the "stringHTML" will be different every time "Display_Page.aspx" is loaded, i don't really need to save the XSL/XML to a file, however, that's the only way i've been able to get it to work so far.
Thank you
What i would like to know now is if it is possible is to edit XML, and transform it using XSL, all using STRINGS. Meaning, is there a way to do it without having to write the XML/XSL to files first. The xml and xsl code I get is generated programatically (it comes from a web source). So i receive the XML in a string. I need to add my nodes, then transform it and output it to a page.
So it kind of goes something like:
in "Default.aspx":
On a button click: Response.Redirect("DisplayPage.aspx")
in DisplayPage.aspx:
In the Page_Load:
stringXML = api.call.to.get.XML
stringXSL = api.call.to.get.XSL
stringXML = MakeSomeChanges To stringXML
stringHTML = use stringXSL to transform stringXML to HTML
response.write(stringHTML)
Any suggestions on a "best practice" to accomplish this? as you can see, since the "stringHTML" will be different every time "Display_Page.aspx" is loaded, i don't really need to save the XSL/XML to a file, however, that's the only way i've been able to get it to work so far.
Thank you