GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlWriter Class
Properties Methods


In This Topic
    GoXmlWriter Class Members
    In This Topic

    The following tables list the members exposed by GoXmlWriter.

    Public Constructors
     NameDescription
    Public ConstructorCreate a writer with a set of IGoXmlTransformers defined.  
    Top
    Public Properties
     NameDescription
    Public Property Gets or sets the "xmlns" attribute namespace to be defined for the root element.  
    Public Property Gets the parent object of the current parent object when consuming or generating the body of an element. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public PropertyGets or sets whether GenerateObjects makes two passes over the collection of Objects, generating the objects that implement IGoNode first before generating the other objects.  
    Public Property Gets or sets the collection of objects to be generated.  
    Public PropertyGets an List of Object acting as a stack of Objects that have been created during the walking of the XML tree during Consume, or that have been seen during Generate. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public Property Gets the current parent object when consuming or generating the body of an element. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public Property Gets or sets the name of the root element.  
    Public Property Gets or sets an object holding additional information for use by your application; this property is not used by GoXml. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public PropertyGets or sets the XmlElement that is being constructed when creating a DOM rather than writing directly to a XmlWriter.  
    Public PropertyGets the XmlDocument that is constructed by Generate when not writing directly to a stream with XmlWriter.  
    Public PropertyGets the XmlWriter used to actually write XML to the output stream.  
    Public PropertyGets or sets the XmlWriterSettings used in the call to XmlWriter.Create to customize the XmlWriter.  
    Top
    Public Methods
     NameDescription
    Public MethodCause this XML writer to use the given IGoXmlTransformer for objects of the type given by the transformer's IGoXmlTransformer.TransformerType. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public Method Remove all objects from the table of shared objects.  
    Public Method If the given object is not already known to be a shared object, define it and generate it, so that you can use simple ID references to the shared object both during generation and during consumption.  
    Public Method This may produce shared elements that precede the regular rendering of the objects.  
    Public Method Find an identifier associated with an object that can be referenced.  
    Public MethodReturns the first IGoXmlTransformer associated with a given type or its base types. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public MethodOverloaded.   
    Public Method This produces an element for an object, including any nested elements that help represent the rendering.  
    Public Method Look up the namespace URI for a prefix string.  
    Public MethodReturns the IGoXmlTransformer associated with a given type. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public MethodCall the GenerateAttributes method of the IGoXmlTransformer that is associated with the given type.  
    Public MethodCall the GenerateBody method of the IGoXmlTransformer that is associated with the given type.  
    Public MethodCall the IGoXmlTransformer.GenerateDefinitions method of the IGoXmlTransformer that is associated with the given type.  
    Public MethodCall the GenerateElement method of the IGoXmlTransformer that is associated with the given type.  
    Public MethodCall the IGoXmlTransformer.GenerateElementFinish method of the IGoXmlTransformer that is associated with the given type.  
    Public MethodCall the IGoXmlTransformer.SkipGeneration method of the IGoXmlTransformer that is associated with the given type.  
    Public Method Add an object to the table of shared objects.  
    Public MethodThis method creates instances of all of the standard IGoXmlTransformers to be used when generating XML. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public Method Define the namespace URI for a prefix string, used when writing prefixed attribute names.  
    Public MethodCause this XML writer to use the given IGoXmlTransformer for objects of the type given by t. (Inherited from Northwoods.Go.Xml.GoXmlReaderWriterBase)
    Public MethodWrite an attribute of the name name with a string representation for the value val.  
    Public MethodFinish the current XML element started by a call to WriteStartElement(String).  
    Public MethodWrite an "xmlns:prefix" attribute for a namespace given by uri.  
    Public MethodStart a new XML element, with the name given by name.  
    Public Method Write out a string as the body of an element.  
    Top
    Protected Methods
     NameDescription
    Protected MethodCall DefineObject for each object in Objects.  
    Protected Method Generate XML instructions before the root element.  
    Protected MethodCall GenerateObject for each object in Objects.  
    Protected Method Generate attributes for the root element.  
    Protected MethodStart the root element, using RootElementName and DefaultNamespace.  
    Protected MethodDo the initialization needed by Generate(XmlWriter).  
    Protected MethodOnly a subclass of a GoXmlWriter can provide a value for the DOM.  
    Protected MethodOnly a subclass of a GoXmlWriter can provide a value for the XmlWriter property.  
    Top
    See Also