X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Fio%2FAbstractXMLObjectMarshaller.h;h=18d90569b0a0bcf85be0900d1e88b2efb50abdc1;hp=f52ae1c799f20f971920cefae9e44ee63df2dd12;hb=c8af116ba2481115019276801ecd041067479c40;hpb=cde1944a41b5e049b65db31daba92e4af33b7701 diff --git a/xmltooling/io/AbstractXMLObjectMarshaller.h b/xmltooling/io/AbstractXMLObjectMarshaller.h index f52ae1c..18d9056 100644 --- a/xmltooling/io/AbstractXMLObjectMarshaller.h +++ b/xmltooling/io/AbstractXMLObjectMarshaller.h @@ -40,9 +40,19 @@ namespace xmltooling { public: virtual ~AbstractXMLObjectMarshaller() {} - DOMElement* marshall(DOMDocument* document=NULL, MarshallingContext* ctx=NULL) const; + DOMElement* marshall( + DOMDocument* document=NULL +#ifndef XMLTOOLING_NO_XMLSEC + ,const std::vector* sigs=NULL +#endif + ) const; - DOMElement* marshall(DOMElement* parentElement, MarshallingContext* ctx=NULL) const; + DOMElement* marshall( + DOMElement* parentElement +#ifndef XMLTOOLING_NO_XMLSEC + ,const std::vector* sigs=NULL +#endif + ) const; protected: AbstractXMLObjectMarshaller() {} @@ -57,7 +67,7 @@ namespace xmltooling { void setDocumentElement(DOMDocument* document, DOMElement* element) const { DOMElement* documentRoot = document->getDocumentElement(); if (documentRoot) - document->replaceChild(documentRoot, element); + document->replaceChild(element, documentRoot); else document->appendChild(element); } @@ -72,7 +82,12 @@ namespace xmltooling { * @throws MarshallingException thrown if there is a problem marshalling the object * @throws SignatureException thrown if a problem occurs during signature creation */ - void marshallInto(DOMElement* targetElement, MarshallingContext* ctx) const; + void marshallInto( + DOMElement* targetElement +#ifndef XMLTOOLING_NO_XMLSEC + ,const std::vector* sigs +#endif + ) const; /** * Creates an xsi:type attribute, corresponding to the given type of the XMLObject, on the DOM element.