com.generationjava.io.xml
Class XmlUtils

java.lang.Object
  extended by com.generationjava.io.xml.XmlUtils

public final class XmlUtils
extends Object

XML helping static methods.

Version:
1.0
Author:
Henri Yandell

Constructor Summary
XmlUtils()
           
 
Method Summary
static String escapeXml(String str)
           
static String getAttribute(String attribute, String text)
           
static String getAttribute(String attribute, String text, int idx)
           
static String getContent(String tag, String text)
           
static int getIndexClosingTag(String tag, String text)
           
static int getIndexClosingTag(String tag, String text, int start)
           
static int getIndexOpeningTag(String tag, String text)
           
static String removeXml(String str)
          Remove any xml tags from a String.
static String unescapeXml(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUtils

public XmlUtils()
Method Detail

escapeXml

public static String escapeXml(String str)

unescapeXml

public static String unescapeXml(String str)

removeXml

public static String removeXml(String str)
Remove any xml tags from a String. Same as HtmlW's method.


getContent

public static String getContent(String tag,
                                String text)

getIndexOpeningTag

public static int getIndexOpeningTag(String tag,
                                     String text)

getIndexClosingTag

public static int getIndexClosingTag(String tag,
                                     String text)

getIndexClosingTag

public static int getIndexClosingTag(String tag,
                                     String text,
                                     int start)

getAttribute

public static String getAttribute(String attribute,
                                  String text)

getAttribute

public static String getAttribute(String attribute,
                                  String text,
                                  int idx)


Copyright © 2000-2007 OSJava. All Rights Reserved.