token startelement in state endrootelement - System.InvalidOperationException

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
Im getting the above error when I run my transform with XslCompiledTransform
When I transform it using visual studio it works, so Im confused
I saw this thread http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/a1b7e777-44ad-47d6-baf2-3c01cded07c0
http://social.msdn.microsoft.com/Forums/en-US/xmlandnetfx/thread/a1b7e777-44ad-47d6-baf2-3c01cded07c0 that suggests using conformancelevel fragement, but my writer is created from an AppendChild() operation, so I dont see how to set the xmlwritersettings.

Any suggestions much appreciated.
Martin

View the full article
 
Back
Top