GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlReader Class / RootObject Property
In This Topic
    RootObject Property
    In This Topic
    Gets or sets the object representing the root element of the XML document being read.
    Syntax
    public object RootObject {get; set;}

    Property Value

    Initially this is null and gets set to the value returned by ConsumeRootElement and then to the value returned by ConsumeRootAttributes. You may want to provide an IList or a IGoCollection that ConsumeRootBody will Add to.
    Remarks
    If all of the top-level objects that will be read are GoObjects, it is fairly common to provide a GoDocument, so that all those new nodes and links get added to that document. After Consume(XmlReader) or Consume(XmlDocument) are finished, this property is reset to null.
    See Also