/* (non-Javadoc) * @see org.eclipse.ohf.utilities.xml.IXMLWriter#element(java.lang.String, java.lang.String, java.lang.String) */ @Override public void element(String namespace, String name, String content) throws IOException { if (!XMLUtil.isNMToken(name)) throw new IOException("XML name " + name + " is not valid"); open(namespace, name); text(content); close(); }
/* (non-Javadoc) * @see org.eclipse.ohf.utilities.xml.IXMLWriter#open(java.lang.String) */ @Override public void open(String name) throws IOException { open(null, name); }
/* (non-Javadoc) * @see org.eclipse.ohf.utilities.xml.IXMLWriter#open(java.lang.String, java.lang.String) */ @Override public void open(String namespace, String name) throws IOException { open(namespace, name, null); }