You should be using XmlDocument.Load...
--
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu http://aspnet2.com
"BobTheHacker" <an*******@discussions.microsoft.com> wrote in message
news:D5**********************************@microsof t.com...
Should I not be able to read an XSL file into the XMLDocument to modify it
etc? When I do I get Zero items into my collections. Here is the code.
FileStream myFile = new FileStream("C:\\mystyles\\styles\\sdoc.xsl",
System.IO.FileMode.Open, System.IO.FileAccess.Read);
StreamReader myReader = new StreamReader(myFile);
XmlDataDocument myXmlDataDocument = new XmlDataDocument();
try
{
myXmlDataDocument.Load(myReader);
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 09/05/2004