X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2Fio%2FAbstractXMLObjectMarshaller.cpp;h=d3af0cb699f7c8deadbd714b771a5a1905733f23;hb=53521055a35f5ac5f0d8d0720cd84907c2c58a63;hp=c28bcbfc2edf5fb0f8bbc06c760e72c3a147e3cf;hpb=305088d2a5e92c9adef2b8ffbf6ba712d92f5abf;p=shibboleth%2Fxmltooling.git diff --git a/xmltooling/io/AbstractXMLObjectMarshaller.cpp b/xmltooling/io/AbstractXMLObjectMarshaller.cpp index c28bcbf..d3af0cb 100644 --- a/xmltooling/io/AbstractXMLObjectMarshaller.cpp +++ b/xmltooling/io/AbstractXMLObjectMarshaller.cpp @@ -96,6 +96,8 @@ DOMElement* AbstractXMLObjectMarshaller::marshall( } // If we get here, we didn't have a usable DOM (and/or we released the one we had). + prepareForMarshalling(); + // We may need to create our own document. bool bindDocument=false; if (!document) { @@ -161,6 +163,8 @@ DOMElement* AbstractXMLObjectMarshaller::marshall( } // If we get here, we didn't have a usable DOM (and/or we released the one we had). + prepareForMarshalling(); + m_log.debug("creating root element to marshall"); DOMElement* domElement = parentElement->getOwnerDocument()->createElementNS( getElementQName().getNamespaceURI(), getElementQName().getLocalPart() @@ -382,3 +386,7 @@ void AbstractXMLObjectMarshaller::marshallContent( void AbstractXMLObjectMarshaller::marshallAttributes(DOMElement* domElement) const { } + +void AbstractXMLObjectMarshaller::prepareForMarshalling() const +{ +}