Northwoods.GoWeb.Xml Assembly > Northwoods.GoWeb.Xml Namespace > GoXmlBindingTransformer Class > GoXmlBindingTransformer Constructor : GoXmlBindingTransformer Constructor(String,Object) |
GoXmlBindingTransformer
with a given GoXmlTransformer.ElementName and a given Northwoods.GoWeb.GoObject or ICloneable
Prototype, whose Type is the GoXmlTransformer.TransformerType.There is a special use of GoXmlBindingTransformer
when it applies to a Northwoods.GoWeb.GoDocument that is the root. If the prototype object is a Northwoods.GoWeb.GoDocument and if it is the value of GoXmlWriter.Objects, this transformer's GoXmlTransformer.ElementName is used as the RootElementName, and GoXmlWriter.GenerateRootAttributes will call this transformer's GenerateAttributes method. If the prototype object is a Northwoods.GoWeb.GoDocument and if an instance of it is the value of GoXmlReader.GoXmlReader.RootObject, GoXmlReader.ConsumeRootAttributes will call this transformer's ConsumeAttributes method. This permits the use of this binding mechanism for binding root attributes with Northwoods.GoWeb.GoDocument properties.
However, reading such a document will not make a copy of the Northwoods.GoWeb.GoDocument prototype.
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