I need to be able to define an attribute with a prefix in an xml element.
For instance...
<nc:Person s:id="ID_Person_01"></nc:Person>
To do this, I could work.
XmlElement TempElement = XmlDocToRef.CreateElement("nc:Person", "http://niem.gov/niem/niem-core/2.0");
TempElement.SetAttribute("s:id", "http://niem.gov/niem/structures/2.0", "ID_Person_01");
Unfortunately, XmlElement.SetAttribute (string, string, string) does not seem to support parsing the prefix as it receives the error below.
The character ':', the hexadecimal value 0x3A, cannot be included in the name.
How can I define an attribute with a prefix?
Eddie source
share