R
ronchese
Hello All.
I need to complement some information in a xml file, using the Xml.XmlDocument object.
This xml contains several <xs:element ....> nodes (is a saved dataset), and I need to write new nodes exactly in the same way the existant nodes.
I tried naming the new node as "xs:element" or type the "element" in the namespaceURI, but it when I see creates a namespace in the text file, in both cases.
How can I do that?
Cesar
Code sample I tried:
Dim nod As Xml.XmlNode = xmldocSchema.CreateNode(Xml.XmlNodeType.Element, "xs:element", "")
nodOther.AppendChild(nod)
Dim nod As Xml.XmlNode = xmldocSchema.CreateNode(Xml.XmlNodeType.Element, "xs", "element")
nodOther.AppendChild(nod)
I need to complement some information in a xml file, using the Xml.XmlDocument object.
This xml contains several <xs:element ....> nodes (is a saved dataset), and I need to write new nodes exactly in the same way the existant nodes.
I tried naming the new node as "xs:element" or type the "element" in the namespaceURI, but it when I see creates a namespace in the text file, in both cases.
How can I do that?
Cesar
Code sample I tried:
Dim nod As Xml.XmlNode = xmldocSchema.CreateNode(Xml.XmlNodeType.Element, "xs:element", "")
nodOther.AppendChild(nod)
Dim nod As Xml.XmlNode = xmldocSchema.CreateNode(Xml.XmlNodeType.Element, "xs", "element")
nodOther.AppendChild(nod)