I have created an XSLT for an XML and its node value is displayed as text. Now I want to save the original XML file as a new file with the changed values. The values are entered by user in xml generated html textboxes. I am using windows mobile(PDA) C# .net compact framework. Loading xslt applied xml file into webbrowser control.
+1
A:
Steps:
a. Load an XmlDocument from the XML file.
b. Load an XSLT document from the XSL file.
c. Create an XmlTextWriter or XmlWriter to which the output is written. This could reference the target XML file if the output method of the transformation is "xml".
d. Transform the XML document using the XSLT by providing any required parameters. I think these values would be sourced from your user entry textboxes.
Here is a walkthrough that shows how to do it without even having to use an XmlTextWriter directly. And another.
Cerebrus
2009-04-08 06:03:50
A:
You give zero detail on your environment (programming language, operating system, etc). On Unix, with xsltproc, I would simply use shell redirection:
xsltproc transform.xsl data.xml > result.xml
bortzmeyer
2009-04-08 07:32:12
I am using windows mobile(PDA) C# .net compact framework.Loading xslt applied xml file into webbrowser control.
pankaj
2009-04-15 12:35:03
Edit your question to provide the details, no one will pay attention to a comment's comment.
bortzmeyer
2009-04-15 13:46:25