handler.endElement(pNamespaceURI, pLocalName, qName);
}
public void marshal(JMXmlSerializer.Data pData, QName pName, Object pElement)
throws SAXException {
NamespaceSupport nss = pData.getNamespaceContext();
int context = nss.getContext();
ContentHandler handler = pData.getContentHandler();
String uri = pName.getNamespaceURI();
if (uri == null) uri = "";
String name = pName.getLocalPart();
String qName = getElementQName(pData, uri, name);
AttributesImpl attrs = getAttributes(pData, pElement);
if (!pData.isRootElementCreated()) {
createSchemaLocationAttributes(pData, attrs);
pData.setRootElementCreated(true);
}
handler.startElement(uri, name, qName, attrs);
marshalChilds(pData, pElement);
handler.endElement(uri, name, qName);
for (;;) {
String prefix = nss.setContext(context);
if (prefix == null) {
break;
}
handler.endPrefixMapping(prefix);
}