D
Dikkuuhh
How can i create a XMLDocument??
This is what i have:
Dim objNode As XmlNode
Dim objAttrib As XmlAttribute
objNode = objXML.DocumentElement("Person")
objAttrib = objXML.CreateAttribute("PERSONID")
objAttrib.Value = "p7"
objNode.Attributes.SetNamedItem(objAttrib)
objXML.DocumentElement.AppendChild(objNode)
Then i get an error like this:
System.NullReferenceException: Object reference not set to an instance
of an object.
Can somebody help me out?
This is what i have:
Dim objNode As XmlNode
Dim objAttrib As XmlAttribute
objNode = objXML.DocumentElement("Person")
objAttrib = objXML.CreateAttribute("PERSONID")
objAttrib.Value = "p7"
objNode.Attributes.SetNamedItem(objAttrib)
objXML.DocumentElement.AppendChild(objNode)
Then i get an error like this:
System.NullReferenceException: Object reference not set to an instance
of an object.
Can somebody help me out?