Method EmptyElement
EmptyElement(String, String, String, IAttributes)
Write an empty element. This method writes an empty element tag rather than a start tag followed by an end tag. Both a StartElement(String, String, String, IAttributes) and an EndElement(String, String, String) event will be passed on down the filter chain.
Declaration
public virtual void EmptyElement(string uri, string localName, string qName, IAttributes atts)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The element's Namespace URI, or the empty string if the element has no Namespace or if Namespace processing is not being performed. |
System.String | localName | The element's local name (without prefix). This parameter must be provided. |
System.String | qName | The element's qualified name (with prefix), or the empty string if none is available. This parameter is strictly advisory: the writer may or may not use the prefix attached. |
IAttributes | atts | The element's attribute list. |
Exceptions
Type | Condition |
---|---|
SAXException | If there is an error writing the empty tag, or if a handler further down the filter chain raises an exception. |
See Also
EmptyElement(String, String)
Add an empty element without a qname or attributes.
This method will supply an empty string for the qname and an empty attribute list. It invokes EmptyElement(String, String, String, IAttributes) directly.
Declaration
public virtual void EmptyElement(string uri, string localName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The element's Namespace URI. |
System.String | localName | The element's local name. |
Exceptions
Type | Condition |
---|---|
SAXException | If there is an error writing the empty tag, or if a handler further down the filter chain raises an exception. |
See Also
EmptyElement(String)
Add an empty element without a Namespace URI, qname or attributes.
This method will supply an empty string for the qname, and empty string for the Namespace URI, and an empty attribute list. It invokes EmptyElement(String, String, String, IAttributes) directly.
Declaration
public virtual void EmptyElement(string localName)
Parameters
Type | Name | Description |
---|---|---|
System.String | localName | The element's local name. |
Exceptions
Type | Condition |
---|---|
SAXException | If there is an error writing the empty tag, or if a handler further down the filter chain raises an exception. |