com.transjam.util
Class XMLTools

java.lang.Object
  |
  +--com.transjam.util.TextTools
        |
        +--com.transjam.util.XMLTools

public class XMLTools
extends TextTools

Tools for reading and writing XML files.

Author:
(C) 1997 Phil Burk, All Rights Reserved
See Also:
XMLListener, XMLPrinter

Constructor Summary
XMLTools()
           
 
Method Summary
static java.lang.String escapeText(java.lang.String text)
          Convert a human readable string into an XML valid string with proper escape sequences.
static void main(java.lang.String[] argv)
           
static void testText(java.lang.String text1)
           
static java.lang.String unescapeText(java.lang.String text)
           
 
Methods inherited from class com.transjam.util.TextTools
makeSafe, replaceCharacters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTools

public XMLTools()
Method Detail

escapeText

public static java.lang.String escapeText(java.lang.String text)
Convert a human readable string into an XML valid string with proper escape sequences. Character like '<' must be converted to <
	&  => &
	< => <
	> => >
	" => "
	' => '
 

unescapeText

public static java.lang.String unescapeText(java.lang.String text)

testText

public static void testText(java.lang.String text1)

main

public static void main(java.lang.String[] argv)