Problem with transforming a part of xml file [modified]
-
Hi guys, i am transforming an file called XMLFile.xml along with the appropriate xslt file like this: XPathDocument surveyDoc = new XPathDocument(Server.MapPath("XMLFile.xml")); // Load the xslt to do the transformations XslTransform transform = new XslTransform(); transform.Load(Server.MapPath("dynamicControls.xslt")); // Get the transformed result StringWriter sw = new StringWriter(); transform.Transform(surveyDoc, null, sw); But the xmlfile.xml contents are like: followed by another form details. details so i want to specify the required formname in new XPathDocument=(Server.MapPath("XMLFile.xml")); //i.e BusinessUnit for ex: not the entire xml file how can i pass only the required xml content(i.e only a part of the xml file containing required form details) want for transformation.I.e i dont want to transform foreign unit part also within the xml file.Please throw some light on this. Thks in advance, -- modified at 6:56 Sunday 16th July, 2006