C# Class SimpleFramework.Xml.Core.NamespaceDecorator

The NamespaceDecorator object is used to decorate any output node with namespaces. All namespaces added to this are applied to nodes that require decoration. This can add namespaces to the node as well as setting the primary namespace reference for the node. This results in qualification for the node.
Inheritance: Decorator
显示文件 Open project: ngallagher/simplexml Class Usage Examples

Public Methods

Method Description
NamespaceDecorator ( ) : SimpleFramework.Xml.Stream

Constructor for the NamespaceDecorator object. A namespace decorator can be used for applying namespaces to a specified node. It can add namespaces to set the scope of the namespace reference to the node and it can also be used to set the primary namespace reference used for the node.

Set ( Namespace Namespace ) : void

This is used to set the primary namespace for nodes that will be decorated by the namespace decorator. If no namespace is set using this method then this decorator will leave the namespace reference unchanged and only add namespaces for scoping.

Method Details

NamespaceDecorator() public method

Constructor for the NamespaceDecorator object. A namespace decorator can be used for applying namespaces to a specified node. It can add namespaces to set the scope of the namespace reference to the node and it can also be used to set the primary namespace reference used for the node.
public NamespaceDecorator ( ) : SimpleFramework.Xml.Stream
return SimpleFramework.Xml.Stream

Set() public method

This is used to set the primary namespace for nodes that will be decorated by the namespace decorator. If no namespace is set using this method then this decorator will leave the namespace reference unchanged and only add namespaces for scoping.
public Set ( Namespace Namespace ) : void
Namespace SimpleFramework.Xml.Namespace
return void