Class PTXMLUtil
Object
|
+--PTXMLUtil
- class
PTXMLUtil
Static utility class for XML-related operations.
Defined in PTXMLUtil.js
Field Summary |
<static> <final> Object |
VERSION
|
Constructor Summary |
PTXMLUtil
()
PTXMLUtil static Object constructor
|
Method Summary |
<static> String
|
normalizeWhitespace(str)
Replaces all whitespace characters in input string with the space character ' '.
|
<static> String
|
stripPreXML(str)
This method will remove anything before the xml declaration,
since the gateway may try and throw script tags before the xml.
|
<static> String
|
stripProlog(str)
Removes \r characters from input string
and return xml string without a prolog
|
<static> String
|
stripWhitespace(str)
Removes white characters from the input string
|
<static> String
|
unescapeCDATAs(str)
Unescapes CDATA sections
|
<static> String
|
unescapeEntities(str)
Unescapes internal entities in input string.
|
VERSION
<static> <final> Object VERSION
PTXMLUtil
PTXMLUtil()
PTXMLUtil static Object constructor
normalizeWhitespace
<static> String normalizeWhitespace(str)
Replaces all whitespace characters in input string with the space character ' '.
Returns:
a string with only ' ' whitespace characters
stripPreXML
<static> String stripPreXML(str)
This method will remove anything before the xml declaration,
since the gateway may try and throw script tags before the xml.
stripProlog
<static> String stripProlog(str)
Removes \r characters from input string
and return xml string without a prolog
stripWhitespace
<static> String stripWhitespace(str)
Removes white characters from the input string
Returns:
a string without whitespace characters
unescapeCDATAs
<static> String unescapeCDATAs(str)
Returns:
a string with unescaped CDATA declarations
unescapeEntities
<static> String unescapeEntities(str)
Unescapes internal entities in input string.
Documentation generated by
JSDoc on Tue Sep 21 02:04:06 2010