fable.io
Class Parser

java.lang.Object
  extended by fable.io.Parser

public class Parser
extends java.lang.Object

Parser is a class that converts strings into legal XML strings by handling special characters &, <, >, ', and "

Author:
Christopher Moh

Method Summary
static java.lang.String makeLegalXML(java.lang.String s)
          Converts a string into a legal XML string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeLegalXML

public static java.lang.String makeLegalXML(java.lang.String s)
Converts a string into a legal XML string

Parameters:
s - String to input
Returns:
Converted string that is legal XML
Requires:
s != null