Here you can find the source of CreateColumn(XMLStreamWriter serializer, String w, String h)
public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer, String w, String h) throws XMLStreamException
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); you may import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; public class Main { public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer, String w, String h) throws XMLStreamException { serializer.writeStartElement("td"); if (w != "") serializer.writeAttribute("width", w); if (h != "") serializer.writeAttribute("height", h); return serializer; }//from w w w . j a va 2s.c o m public static XMLStreamWriter CreateColumn(XMLStreamWriter serializer) throws XMLStreamException { return CreateColumn(serializer, "", ""); } }