D
Darrel
I'm trying to write an XML file. The first thing I want to do is create the
parent node for the document:
eleMenuItems = xmldoc.CreateElement("menuItems")
xmldoc.DocumentElement.PrependChild(eleMenuItems)
The second line above causes by try statement to exit and catches this
generic error:
'Object reference not set to an instance of an object'
I'm not sure where to do now to figure out the problem. Is there something I
am missing concept wise when creating the parent node?
-Darrel
parent node for the document:
eleMenuItems = xmldoc.CreateElement("menuItems")
xmldoc.DocumentElement.PrependChild(eleMenuItems)
The second line above causes by try statement to exit and catches this
generic error:
'Object reference not set to an instance of an object'
I'm not sure where to do now to figure out the problem. Is there something I
am missing concept wise when creating the parent node?
-Darrel