GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlWriter Class / GenerateRootAttributes Method
In This Topic
    GenerateRootAttributes Method (GoXmlWriter)
    In This Topic
    Generate attributes for the root element.
    Syntax
    protected virtual void GenerateRootAttributes()
    Remarks

    If Objects property value is a Northwoods.Go.GoDocument, and if there is a GoXmlBindingTransformer registered for that GoDocument type, this calls GenerateAttributes on that transformer, passing it the Northwoods.Go.GoDocument. This provides an easy-to-define mechanism for binding document properties with root element attributes.

    Otherwise, this does nothing. You may want to define namespace attributes, as is shown in the description for SetNamespaceUri, by calling SetNamespaceUri before this method is called. The Generate methods will call WriteNamespaceAttribute for each prefix/namespaceURI pair, just after calling GenerateRootElement, and just before calling this method.

    See Also