StringBuffer buf = new StringBuffer ();
_pp.print (appendCode (buf, XMLNodeColor.Element,
"<" + anElement.getName ()).toString ());
// attrib�tumok kiirat�sa �s megsz�mol�sa
XMLNodeIterator nodeIt = anElement.children ();
int attrCount = 0;
while (nodeIt.hasNext ()) {
XMLNode child = nodeIt.next ();
if (child instanceof XMLAttribute ) {
child.accept (this);
attrCount++;
}
}
// gyermek elemek kiirat�sa - ha vannak
buf = new StringBuffer ();
if (attrCount == anElement.childCount ()) {
_pp.printSimple (appendCode (buf, XMLNodeColor.Element,
" />").toString () + "\n");
} else {
_pp.printSimple (appendCode (buf, XMLNodeColor.Element,
">").toString () + "\n");
_pp.inc ();
nodeIt = anElement.children ();
while (nodeIt.hasNext ()) {
XMLNode child = nodeIt.next ();
if (!(child instanceof XMLAttribute)) {
child.accept (this);
}
}