public void marshal(Object obj, IMarshallingContext ictx)
throws JiBXException {
if (!(obj instanceof DocumentFragment)) {
throw new JiBXException
("Mapped object not an org.w3c.dom.DocumentFragment");
} else {
try {
m_xmlWriter = ictx.getXmlWriter();
int indent = ictx.getIndent();
ictx.setIndent(-1);
m_defaultNamespaceURI = null;
marshalContent(((DocumentFragment)obj).getChildNodes());
ictx.setIndent(indent);
} catch (IOException e) {
throw new JiBXException("Error writing to document", e);
}
}
}