Code example for StringWriter

Methods: write

0
            if (node instanceof Element) {
                OUTPUT.output((Element)node, sw);
            } 
            else if (node instanceof Attribute) {
                Attribute attribute = (Attribute)node;
                sw.write(" ");
                sw.write(attribute.getQualifiedName());
                sw.write("=\"");
                sw.write(OUTPUT.escapeAttributeEntities(attribute.getValue()));
                sw.write("\"");
            } 
            else if (node instanceof Text) {
                OUTPUT.output((Text)node, sw);
            } 
            else if (node instanceof Document) {
                OUTPUT.output((Document)node, sw);
            } 
            else if (node instanceof ProcessingInstruction) {
                OUTPUT.output((ProcessingInstruction)node, sw);
            } 
            else if (node instanceof Comment) {