I'm going on a couple assumptions here:
- XPathDocument is not editable.
- XmlDocument is editable.
- XPathDocument is more efficient for XslCompiledTransform.
That being the case (and please correct me if I am wrong), would it be better (more efficient) to:
- Make modifications using the XmlDocument, then convert to an XPathDocument before the transform. Is there an optimized way to do this?
- Just stick with the XmlDocument through the transform.
Some background, I'm getting a complex xml from a webservice, then use xpath to find some elements which need to be modified, then use a xslt to create html.
Thanks in advance for the help.