|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.eclipseexeditor.xml.XMLText
This class provides text operations for XML. This is not for XML parsing, but rather operating on XML as text.
Method Summary | |
static String |
quoteXML(String xmlText)
Quote special XML characters in the input xmlText. |
static String |
unquoteXML(String quotedXML)
Unquote XML special character entities. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String unquoteXML(String quotedXML)
quoteXML(String)
does. This
method does not process &xhhh;
or &nnn; special entities.
- Parameters:
quotedXML
- input XML text with quoted XML entities.
- Returns:
- The input quotedText, with XML special characters unquoted.
public static String quoteXML(String xmlText)
<
; '>' is replaced with >
; '&' replaced with
&
, and '"' replaced with '"'
.
xmlText
- A string containing XML. This does not have to be well formed; it can be a fragment of XML.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |