GoDigram for .NET Framework and .NET Core
Northwoods.Go.Xml Namespace / GoXmlWriter Class / WriteAttrVal Method
the attribute name; if null, no attribute is written. If you call SetNamespaceUri, typically before calling a Generate method, you can also include a prefix in this name, in the format "prefix:localname".
the value to write; if null, no attribute is written
In This Topic
    WriteAttrVal Method (GoXmlWriter)
    In This Topic
    Write an attribute of the name name with a string representation for the value val.
    Syntax
    public virtual string WriteAttrVal( 
       string name,
       string val
    )

    Parameters

    name
    the attribute name; if null, no attribute is written. If you call SetNamespaceUri, typically before calling a Generate method, you can also include a prefix in this name, in the format "prefix:localname".
    val
    the value to write; if null, no attribute is written

    Return Value

    Remarks
    This method will write to the XmlWriter if it is available, or else it will set the attribute of the WriterElement.
    See Also