|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.ucsb.adl.middleware.XmlUtils
XML-related utilities.
$Log: XmlUtils.java,v $
Revision 1.3 2004/09/22 00:54:56 gjanee
Added the encode methods.
Revision 1.2 2003/06/07 03:36:49 gjanee
Added method removeProlog.
Revision 1.1 2003/05/12 16:32:54 gjanee
Initial revision
| Method Summary | |
static java.lang.String |
encode(java.lang.String s)
Encodes XML/HTML reserved characters in a string, not including double-quotes ( "). |
static java.lang.String |
encodeQuotesToo(java.lang.String s)
Encodes XML/HTML reserved characters in a string, including double-quotes ( "). |
static java.lang.String |
removeEncodingDeclaration(java.lang.String document)
Removes the character encoding declaration from an XML document. |
static java.lang.String |
removeProlog(java.lang.String document,
java.lang.String rootElement)
Removes the prolog from an XML document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.String removeEncodingDeclaration(java.lang.String document)
document - An XML document.
public static java.lang.String removeProlog(java.lang.String document,
java.lang.String rootElement)
document - An XML document.rootElement - The document's root element (e.g.,
"ADL-access-report") or null.
public static java.lang.String encode(java.lang.String s)
").
s - The input string.
public static java.lang.String encodeQuotesToo(java.lang.String s)
").
s - The input string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||