I\'m trying to generate XML from another XML using a XslTransform. I get both files (source XML and XSL transformation file) as string content, so I\'m trying to pass the XSL fi
XmlReader xmlReader = XmlReader.Create(new StringReader(YourStringValue));
The StringReader -> XmlReader approach is fine, you should stick to it. The reader reports none because it hasn't been read yet. Try calling Read() on it to see what happens then. The transformation will also call read on it.