net.sf.cantina.util
Class XmlHelper
java.lang.Object
net.sf.cantina.util.XmlHelper
- public abstract class XmlHelper
- extends java.lang.Object
- Author:
- Stephane JAIS
Method Summary |
static void |
checkXml(java.lang.String xmlString,
boolean validate)
|
static java.lang.String |
escapeXml(java.lang.String content)
|
static java.lang.String |
stripXml(java.lang.String content)
|
static java.lang.String |
surroundTextWithRoot(java.lang.String text,
java.lang.String rootElementName,
java.lang.String publicId,
java.lang.String system)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlHelper
public XmlHelper()
checkXml
public static void checkXml(java.lang.String xmlString,
boolean validate)
throws java.lang.Exception
- Throws:
java.lang.Exception
surroundTextWithRoot
public static java.lang.String surroundTextWithRoot(java.lang.String text,
java.lang.String rootElementName,
java.lang.String publicId,
java.lang.String system)
throws java.lang.Exception
- Throws:
java.lang.Exception
stripXml
public static java.lang.String stripXml(java.lang.String content)
throws java.lang.Exception
- Throws:
java.lang.Exception
escapeXml
public static java.lang.String escapeXml(java.lang.String content)
Copyright © 2004 Cantina. All Rights Reserved.