net.sf.cantina.util
Class XmlHelper

java.lang.Object
  extended bynet.sf.cantina.util.XmlHelper

public abstract class XmlHelper
extends java.lang.Object

Author:
Stephane JAIS

Constructor Summary
XmlHelper()
           
 
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
 

Constructor Detail

XmlHelper

public XmlHelper()
Method Detail

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.