/** * Add an empty element tag (e.g. <foo/>) * @param tagName The name of the tag * @param attributes A Properties file containing the attributes (or null) */ public void addEmptyElement(String tagName, @Nullable Properties attributes) { m_buffer.append(m_currentIndent).append("<").append(tagName); XMLUtils.appendAttributes(m_buffer, attributes); m_buffer.append("/>").append(EOL); }
/** * Add an empty element tag (e.g. <foo/>) * * @param tagName The name of the tag * @param attributes A Properties file containing the attributes (or null) */ public void addEmptyElement(String tagName, @Nullable Properties attributes) { m_buffer.append(m_currentIndent).append("<").append(tagName); XMLUtils.appendAttributes(m_buffer, attributes); m_buffer.append("/>").append(EOL); }
public static void xmlOpen(IBuffer result, String indent, String tag, Properties attributes, boolean noNewLine) { result.append(indent).append("<").append(tag); appendAttributes(result, attributes); result.append(">"); if (!noNewLine) { result.append(EOL); } }
public static void xmlOpen( IBuffer result, String indent, String tag, Properties attributes, boolean noNewLine) { result.append(indent).append("<").append(tag); appendAttributes(result, attributes); result.append(">"); if (!noNewLine) { result.append(EOL); } }