uk.ac.kcl.cch.jb.xmlWriter
Class XmlElement
java.lang.Object
uk.ac.kcl.cch.jb.xmlWriter.XmlElement
- public class XmlElement
- extends Object
allows for the creation of an XML element in the writing of an XML
file by XmlFile
.
- Author:
- John Bradley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlElement
public XmlElement(String name)
addAttribute
public void addAttribute(String name,
String value)
throws IOException
- Throws:
IOException
addContent
public void addContent(XmlElement content)
throws IOException
- Throws:
IOException
addContent
public void addContent(String string)
throws IOException
- Throws:
IOException
addComment
public void addComment(String string)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Throws:
IOException
update
protected static String update(String pat,
char match,
String repl)
makeXMLAttribute
public String makeXMLAttribute(String val)