org.hippoecm.hst.util
Class XmlUtils

java.lang.Object
  extended by org.hippoecm.hst.util.XmlUtils

public class XmlUtils
extends Object

XmlUtils

Version:
$Id$

Method Summary
static String encode(String value)
          Escape <, > & ', " as their entities and drop characters that are illegal in XML documents.
static boolean isReference(String ent)
          Is the given argument a character or entity reference?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static String encode(String value)
Escape <, > & ', " as their entities and drop characters that are illegal in XML documents.

Parameters:
value - the string to encode.
Returns:
the encoded string.

isReference

public static boolean isReference(String ent)
Is the given argument a character or entity reference?

Parameters:
ent - the value to be checked.
Returns:
true if it is an entity.


Copyright © 2008-2012 Hippo. All Rights Reserved.