public static void SetXsiType(this IXmlNode node, XmlName xsiType) { if (xsiType.NamespaceUri != null) { var prefix = node.Namespaces.GetAttributePrefix(node, xsiType.NamespaceUri); xsiType = xsiType.WithNamespaceUri(prefix); } node.SetAttribute(Xsi.Type, xsiType.ToString()); }
public static void SetXsiNil(this IXmlNode node, bool nil) { string value; if (nil) { node.Clear(); value = NilValue; } else { value = null; } node.SetAttribute(Xsi.Nil, value); }
public void ClearIdentity(IXmlNode node) { node.SetAttribute(XRef.Id, null); }
public void ClearReference(IXmlNode node) { node.SetAttribute(XRef.Ref, null); }
public void SetIdentity(IXmlNode node, int id) { node.SetAttribute(XRef.Id, id.ToString(Culture)); }
public void SetReference(IXmlNode node, int id) { node.SetAttribute(XRef.Ref, id.ToString(Culture)); }
public void SetAttribute(XmlName name, string value) { node.SetAttribute(name, value); }