Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XML to XXML [Thread Next] Re: XML to XXMLTo: NULL Date: 12/10/2005 5:33:00 PM Well it's pretty simple : There's a save(path_to_save_to) method for
the XML object you get back from calling transformNode (where you
apply your stylesheet to the input XML document and it returns your
output XML document) : Clipped from the MSXML3 documentation
<%
Response.Expires = -1000;
if (Request.ServerVariables("REQUEST_METHOD") == "POST")
{
// Load the posted XML data and save it to disk.
xmldoc.load(Request);
xmldoc.save(Server.MapPath("saved.xml"));
%>
Ok
<%
}
%>
However there are gotchas - you'll need to have permission to save
that in whichever folder your server is working with. In general, this
will not work client side beacuse of quite reasonable security
restrictions of the browser.
HTH
Cheers - Neil
On Sat, 10 Dec 2005 16:19:36 +0100, "Mystique" <misic@s...>
wrote:
>Thanks Neil
>
>Can you tell how i can save the transformed XML file to disk?
>
>Best Regards,
>Mystique
>
>"Neil Smith [MVP Digital Media]" <neil@n...> wrote in message
>news:0uslp1pq1pv1hlshslinva3lql6oah1203@4......
>> On Sat, 10 Dec 2005 14:35:52 +0100, "Mystique" <misic@s...>
>> wrote:
>>
>> >Hi
>> >Where can i find some tutorial or example of transforming XML to XML?
>> >
>> >Reagards,
>> >Mystique
>>
>> You'd use XSLT to do that, so any standard XSL tutorial should get you
>> in business :
>>
>> http://www.topxml.com/xsl/tutorials/intro/default.asp
>>
>> Really there's no difference to transforming to HTML except you'd have
>> a line <xsl:output method="xml" /> in your XSLT stylesheet.
>>
>> Cheers- Neil
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
