public AbstractXMLObjectMarshaller,
public AbstractXMLObjectUnmarshaller
{
- xmltooling::QName* m_qname;
+ mutable xmltooling::QName* m_qname;
public:
virtual ~RespondWithImpl() {
delete m_qname;
}
xmltooling::QName* getQName() const {
+ if (!m_qname && getDOM() && getDOM()->getTextContent()) {
+ m_qname = XMLHelper::getNodeValueAsQName(getDOM());
+ }
return m_qname;
}
auto_ptr_XMLCh temp(m_qname->toString().c_str());
setTextContent(temp.get());
}
- else
+ else {
setTextContent(nullptr);
+ }
}
IMPL_XMLOBJECT_CLONE(RespondWith);
IMPL_TYPED_CHILDREN(RespondWith,m_pos_Signature);
protected:
+ void prepareForMarshalling() const {
+ if (m_Signature)
+ declareNonVisibleNamespaces();
+ }
+
void marshallAttributes(DOMElement* domElement) const {
static const XMLCh MAJORVERSION[] = UNICODE_LITERAL_12(M,a,j,o,r,V,e,r,s,i,o,n);
domElement->setAttributeNS(nullptr,MAJORVERSION,XML_ONE);
IMPL_STRING_ATTRIB(Recipient);
protected:
+ void prepareForMarshalling() const {
+ if (m_Signature)
+ declareNonVisibleNamespaces();
+ }
+
void marshallAttributes(DOMElement* domElement) const {
static const XMLCh MAJORVERSION[] = UNICODE_LITERAL_12(M,a,j,o,r,V,e,r,s,i,o,n);
domElement->setAttributeNS(nullptr,MAJORVERSION,XML_ONE);