C
cameron
When you create an XslTransform object, you do a load with the Starting
XML object and an XmlUrlResolver. The Idea is that it will resolve all
of the imports and includes. I would like to see what the resulting XML
looks like, (after it has been all resolved and stuff). I think I am
using the wrong objects because when I do:
string Filename = "Some Stylesheet.xsl";
XmlTextReader txtReader = new
XmlTextReader(HttpContext.Current.Server.MapPath(Filename));
XmlValidatingReader reader = new XmlValidatingReader(txtReader);
XmlUrlResolver resolver = new XmlUrlResolver();
reader.XmlResolver = resolver;
There is no way to see the OuterXML, (ReadOuterXml do not do what I
expected). I just want it to dump out the XML so I can take a look at
it. Just like when you do an XmlDocument.OuterXml. The XmlWriter doesn't
seem to have anything useful for this either. Any thoughts?
-Cam
XML object and an XmlUrlResolver. The Idea is that it will resolve all
of the imports and includes. I would like to see what the resulting XML
looks like, (after it has been all resolved and stuff). I think I am
using the wrong objects because when I do:
string Filename = "Some Stylesheet.xsl";
XmlTextReader txtReader = new
XmlTextReader(HttpContext.Current.Server.MapPath(Filename));
XmlValidatingReader reader = new XmlValidatingReader(txtReader);
XmlUrlResolver resolver = new XmlUrlResolver();
reader.XmlResolver = resolver;
There is no way to see the OuterXML, (ReadOuterXml do not do what I
expected). I just want it to dump out the XML so I can take a look at
it. Just like when you do an XmlDocument.OuterXml. The XmlWriter doesn't
seem to have anything useful for this either. Any thoughts?
-Cam