XmlUtil Class |
Namespace: DXMLBase.Xml
The XmlUtil type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | encodeAsCData |
Output a text value as a CDATA section
|
![]() ![]() | encodeAttribute |
Encode an attribute value as XML to a stream.
|
![]() ![]() | encodeText | |
![]() ![]() | escape(String) | |
![]() ![]() | escape(String, Int32) | |
![]() ![]() | getLocalName |
Returns the local name from a qname.
|
![]() ![]() | getPrefix |
Returns the prefix from a qname.
|
![]() ![]() | getPseudoAttribute |
Return the value of a pseudo XML attribute from a string. A pseudo attribute
has the same syntax as an XML element attribute but is not from an element.
For example, the xml-stylesheet processing instruction has pseudo attributes.
|
![]() ![]() | isNamespaceDecl |
Checks an attribute qname to see if it is a namespace declaration
|
![]() ![]() | isNCName(Char) |
returns whether the passed character matches the XML Namespace
"NCName" production
|
![]() ![]() | isNCName(String) |
returns whether the passed string matches the XML Namespace
"NCName" production
|
![]() ![]() | isNCNameChar |
Returns whether the specified character conforms to the
NCNameChar production in the XML Namespace grammar. Such a
character is allowed as the second or subsequent character in an XML 1.0
name.
|
![]() ![]() | isPITarget |
Returns whether the passed string conforms to the PITarget
production in the XML 1.0 Recommendation.
|
![]() ![]() | isQName |
Returns whether the passed string conforms to the QName
production found in XML Names:
http://www.w3.org/TR/REC-xml-names
|
![]() ![]() | isXmlEncName |
Return true if the passed string conforms to the XML
EncName production.
[81] EncName ::= [A-Za-z] ([A-Za-z0-9._] | '-')*
|
![]() ![]() | isXmlName(Char) |
Returns whether the specified char conforms to the Name
production in the XML 1.0 grammar.
|
![]() ![]() | isXmlName(String) |
Returns whether the specified string conforms to the Name
production in the XML 1.0 grammar.
|
![]() ![]() | isXmlNameChar |
Returns whether the specified character conforms to the
NameChar production in the XML 1.0 grammar. Such a
character is allowed as the second or subsequent character in an XML 1.0
name.
|
![]() ![]() | isXmlValid |
Return true if all of the characters in the passed string are valid
XML characters.
|
![]() ![]() | isXmlVersionNum |
Return true if the passed string conforms to the XML
VersionNum production.
[26] VersionNum ::= ([a-zA-Z0-9_.:] | '-')+
|
![]() ![]() | isXmlWhitespace(Char) |
Returns whether the specified char conforms to the S
production in the XML 1.0 grammar. Such a string consists only of XML
whitespace.
|
![]() ![]() | isXmlWhitespace(String) |
Returns whether the specified string conforms to the S
production in the XML 1.0 grammar. Such a string consists only of XML
whitespace.
|
![]() ![]() | normalizeWhitespace |
Normalize whitespace in a string by stripping leading and
trailing whitespace, and converting all internal sequences
of whitespace into a single space each.
|
![]() ![]() | quote(String) | |
![]() ![]() | quote(String, Int32) | |
![]() ![]() | replaceBuiltInEntities |
Replace XML's built-in references (&, etc.) with the corresponding characters.
|
![]() ![]() | toXml(String) | |
![]() ![]() | toXml(String, String) |
Name | Description | |
---|---|---|
![]() ![]() | DIGITS | |
![]() ![]() | HEX_DIGITS |
Name | Description | |
---|---|---|
![]() ![]() | NULL_NAMESPACE |