00082 {
00083 String tagName = node.toString();
00084
mBuf.append(
"<");
00085
mBuf.append( tagName );
00086 AttributeList attrList = ((TagNode)node).getAttrList();
00087
if (attrList != null) {
00088 Iterator iter = attrList.getIterator();
00089
while (iter.hasNext()) {
00090 Attribute attr = (Attribute)iter.next();
00091
mBuf.append(
' ');
00092
serializeAttribute( attr );
00093 }
00094 }
00095
if (node.isLeaf()) {
00096
mBuf.append(
"/>");
00097 }
00098
else {
00099
mBuf.append(
'>');
00100 }
00101 }