Categories | Question details Back To List | ||
colspan/rowspan in xml Hi I want to use colspan/rowspan . I seen the xml syntax <row id="r01"> <cell colspan="2">value</cell> <cell/> <cell>value of third cell</cell> </row> I am using java to generate xml file. CELL_TAG = xmldoc.createElementNS(null,"cell"); CELL_TAG.setAttributeNS(null,"colspan","2"); CELL_TAG.appendChild(xmldoc.createTextNode("Data")); So how to generate <cell/> This empty tag from java? Thanks. Answer posted by Support on Apr 09, 2008 03:11 It is the same tag as other ones, the next code must be enough CELL_TAG = xmldoc.createElementNS(null,"cell"); It will generate empty tag without any attributes |