I need to be able to define an attribute with a prefix in a xml element.
For instance...
>
The XMLDocument.CreateAttribute method can take 3 strings: specified Prefix, LocalName, and NamespaceURI. You could then add the attribute to the element. Something like this might work for you:
XmlAttribute newAttribute = XmlDocToRef.CreateAttribute("s", "id", "http://niem.gov/niem/structures/2.0");
TempElement.Attributes.Append(newAttribute):