Package org.zkoss.xml
Class XMLs
java.lang.Object
org.zkoss.xml.XMLs
Deprecated.
The XML relevant utilities.
- Author:
- tomyeh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringencodeAttribute(String value) Deprecated.as of release 10.1.0, replaced withEncode.forXmlAttribute(String)static final StringencodeText(String value) Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)static final StringBufferencodeText(StringBuffer sb, String value) Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)static final StringBufferencodeText(StringBuffer sb, String value, int begin, int end) Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)static final StringescapeXML(char cc) Deprecated.as of release 10.1.0, replaced withEncode.forXml(String)static final StringDeprecated.as of release 10.1.0, replaced withEncode.forXml(String)static final StringDeprecated.Converting a name to a valid XML name.
-
Constructor Details
-
XMLs
public XMLs()Deprecated.
-
-
Method Details
-
toXMLName
Deprecated.Converting a name to a valid XML name. Note: it is not reversible. -
encodeAttribute
Deprecated.as of release 10.1.0, replaced withEncode.forXmlAttribute(String)Encodes a value such that it could be used as XML attribute. -
encodeText
Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)Encodes a value such that it could be enclosed by an XML element.Note: It is sometime improper to use CDATA if the text contains CDATA, too. The simplest way is NOT to use CDATA but encoding the string by this method.
-
encodeText
Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)Encodes a value and appends it to a string buffer, such that it could be enclosed by an XML element.Note: It is sometime improper to use CDATA if the text contains CDATA, too. The simplest way is NOT to use CDATA but encoding the string by this method.
-
encodeText
Deprecated.as of release 10.1.0, replaced withEncode.forXmlContent(String)Encodes a value of the specified range, and appends it to a string buffer, such that it could be enclosed by an XML element.Note: It is sometime improper to use CDATA if the text contains CDATA, too. The simplest way is NOT to use CDATA but encoding the string by this method.
- Parameters:
value- the string to encodebegin- the beginning index, inclusive of the string to encode (i.e., value), includedend- the ending index, exclusive of the string to encode (i.e., value), excluded- Since:
- 5.0.0
-
escapeXML
Deprecated.as of release 10.1.0, replaced withEncode.forXml(String)Encodes a string that special characters are quoted to be compatible with HTML/XML. For example, < is translated to <. & -> &
< -> <
> -> >
" -> "
' -> '- Parameters:
s- the string to quote; null is OK- Returns:
- the escaped string, or an empty string if s is null
-
escapeXML
Deprecated.as of release 10.1.0, replaced withEncode.forXml(String)Escapes a character into a string if it is a special XML character, returns null if not a special character. & -> &
< -> <
> -> >
" -> "
' -> '
-
Encode