Here you can find the source of CreateTable(XMLStreamWriter serializer)
public static XMLStreamWriter CreateTable(XMLStreamWriter serializer) 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 CreateTable(XMLStreamWriter serializer) throws XMLStreamException { return CreateTable(serializer, "", ""); }// w ww.j a va 2s . c om public static XMLStreamWriter CreateTable(XMLStreamWriter serializer, String width, String height) throws XMLStreamException { serializer.writeStartElement("table"); serializer.writeAttribute("cellpadding", "1"); serializer.writeAttribute("cellspacing", "1"); if (width != null && width != "") serializer.writeAttribute("width", width); if (height != null && height != "") serializer.writeAttribute("height", height); return serializer; } }