I have to serialize a class to an XML file. The root element needs to have
the following attribute: xsi:noNamespace SchemaLocation= "..\Order.x sd"
Here's the property definition:
[XmlAttribute("x si:noNamespaceS chemaLocation")]
public string noNamespaceSche maLocation;
But this gives me the runtime error: {"There was an error reflecting field
'noNamespaceSch emaLocation'."} with the InnerException {"Invalid name
character in 'xsi:noNamespac eSchemaLocation '."}
Thanks.
the following attribute: xsi:noNamespace SchemaLocation= "..\Order.x sd"
Here's the property definition:
[XmlAttribute("x si:noNamespaceS chemaLocation")]
public string noNamespaceSche maLocation;
But this gives me the runtime error: {"There was an error reflecting field
'noNamespaceSch emaLocation'."} with the InnerException {"Invalid name
character in 'xsi:noNamespac eSchemaLocation '."}
Thanks.