ca.spaz.util
Class XMLNode

java.lang.Object
  extended by ca.spaz.util.XMLNode

public class XMLNode
extends java.lang.Object

A super simple class for quickly outputting some XML

Author:
davidson

Constructor Summary
XMLNode(java.lang.String name)
           
 
Method Summary
 void addAttribute(java.lang.String key, java.lang.String val)
           
 void addChild(XMLNode node)
           
 java.lang.String escape(java.lang.String str)
          Escape a string so that it's safe to put in XML
 void print(java.io.PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNode

public XMLNode(java.lang.String name)
Method Detail

addAttribute

public void addAttribute(java.lang.String key,
                         java.lang.String val)

addChild

public void addChild(XMLNode node)

escape

public java.lang.String escape(java.lang.String str)
Escape a string so that it's safe to put in XML

Parameters:
str -
Returns:
an escaped string, safe for XML.

print

public void print(java.io.PrintStream out)


Copyright © 2005 Spaz. All Rights Reserved.