Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML to XXML

From: "Neil Smith [MVP Digital Media]" <neil@------.--->
To: 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
>



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent