Method DataElement
DataElement(String, String, String, IAttributes, String)
Write an element with character data content.
This is a convenience method to write a complete element with character data content, including the start tag and end tag.
This method invokes StartElement(String, String, String, IAttributes), followed by Characters(String), followed by EndElement(String, String, String).
Declaration
public virtual void DataElement(string uri, string localName, string qName, IAttributes atts, string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The element's Namespace URI. |
System.String | localName | The element's local name. |
System.String | qName | The element's default qualified name. |
IAttributes | atts | The element's attributes. |
System.String | content | The character data content. |
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
DataElement(String, String, String)
Write an element with character data content but no attributes.
This is a convenience method to write a complete element with character data content, including the start tag and end tag. This method provides an empty string for the qname and an empty attribute list.
This method invokes StartElement(String, String, String, IAttributes), followed by Characters(String), followed by EndElement(String, String, String).
Declaration
public virtual void DataElement(string uri, string localName, string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The element's Namespace URI. |
System.String | localName | The element's local name. |
System.String | content | The character data content. |
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
DataElement(String, String)
Write an element with character data content but no attributes or Namespace URI.
This is a convenience method to write a complete element with character data content, including the start tag and end tag. The method provides an empty string for the Namespace URI, and empty string for the qualified name, and an empty attribute list.
This method invokes StartElement(String, String, String, IAttributes), followed by Characters(String), followed by EndElement(String, String, String).
Declaration
public virtual void DataElement(string localName, string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | localName | The element's local name. |
System.String | content | The character data content. |
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. |