public AppendChildElement ( string prefix, string localName, string namespaceURI, string value ) : void | ||
prefix | string | |
localName | string | |
namespaceURI | string | |
value | string | |
Résultat | void |
public XPathNavigator AppendElement(string name, string namespaceUri, XPathNavigator source) { namespaceUri = GetEffectiveNamespace(namespaceUri); source.AppendChildElement(LookupPrefix(namespaceUri), name, namespaceUri, ""); return source.SelectSingleNode("*[position()=last()]"); }
public XPathNavigator AppendElement(string name, string namespaceUri, XPathNavigator source) { string prefix; name = XmlConvert.EncodeLocalName(name); namespaceUri = GetEffectiveNamespace(namespaceUri); if (IsRootNamespace(namespaceUri, out prefix)) prefix = CreateNamespace(prefix, namespaceUri, source); source.AppendChildElement(prefix ?? LookupPrefix(namespaceUri), name, namespaceUri, null); return source.SelectSingleNode("*[position()=last()]"); }