EDN Admin
Well-known member
I see plenty of examples of adding a new XmlNode where the XmlDocument is available to create that node. I was wondering how do that without an XmlDocument to use as a factory? Since XmlNode is abstract I cannot simply create one with new I need to call
the factory methods CreateNode or CreateElement. Whatever the solution I am assuming will work for XmlAttribute to replace the CreateAttribute factory method. The base that I am adding to is an XmlElement. It has a property OwnerDocument. Can
I be assured that this property will always be non-null and valid?
Thank you. <hr class="sig Kevin Burton
View the full article
the factory methods CreateNode or CreateElement. Whatever the solution I am assuming will work for XmlAttribute to replace the CreateAttribute factory method. The base that I am adding to is an XmlElement. It has a property OwnerDocument. Can
I be assured that this property will always be non-null and valid?
Thank you. <hr class="sig Kevin Burton
View the full article