Northwoods.Go.Xml Assembly > Northwoods.Go.Xml Namespace > GoXmlWriter Class : GenerateRootAttributes Method |
'Declaration Protected Overridable Sub GenerateRootAttributes()
protected virtual void GenerateRootAttributes()
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2