Illegal characters in path when loading a string with XDocument

Synth

New Member
I have very simple XML in a string that I'm trying to load via \[code\]XDocument\[/code\] so that I can use LINQ to SQL:\[code\] var xmlString = @"<?xml version=""1.0"" encoding=""utf-8"" standalone=""yes""?> <person>Test Person</person>"; var doc = XDocument.Load(xmlString); //'Illegal characters in path' error thrown here\[/code\]I get an \[code\]Illegal characters in path.\[/code\] error thrown when I try to load the XML; could someone please explain why this is happening? Thanks.
 
Back
Top