pp.giveBack(cqp);
}
}
private void printElementNode(PrintStream ps, TaggedValuePointable tvp) {
ElementNodePointable enp = pp.takeOne(ElementNodePointable.class);
CodedQNamePointable cqp = pp.takeOne(CodedQNamePointable.class);
UTF8StringPointable utf8sp = pp.takeOne(UTF8StringPointable.class);
SequencePointable seqp = pp.takeOne(SequencePointable.class);
try {
tvp.getValue(enp);
enp.getName(cqp);
ps.append('<');
printPrefixedQName(ps, cqp, utf8sp);
int nsCount = enp.getNamespaceEntryCount(ntp);
for (int i = 0; i < nsCount; ++i) {
ps.append(" xmlns:");
ntp.getString(enp.getNamespacePrefixCode(ntp, i), utf8sp);
printString(ps, utf8sp);
ps.append("=\"");
ntp.getString(enp.getNamespaceURICode(ntp, i), utf8sp);
printString(ps, utf8sp);
ps.append("\"");
}
enp.getAttributeSequence(ntp, seqp);
if (seqp.getByteArray() != null && seqp.getEntryCount() > 0) {
ps.append(' ');
printSequence(ps, seqp);
}
enp.getChildrenSequence(ntp, seqp);
if (seqp.getByteArray() != null) {
ps.append('>');
printSequence(ps, seqp);
ps.append("</");
printPrefixedQName(ps, cqp, utf8sp);