{\r
if (getElementQName().hasPrefix())\r
targetElement->setPrefix(getElementQName().getPrefix());\r
+\r
+ if (m_schemaLocation) {\r
+ static const XMLCh schemaLocation[]= UNICODE_LITERAL_14(s,c,h,e,m,a,L,o,c,a,t,i,o,n);\r
+ if (targetElement->getParentNode()==NULL || targetElement->getParentNode()->getNodeType()==DOMNode::DOCUMENT_NODE)\r
+ targetElement->setAttributeNS(XMLConstants::XSI_NS,schemaLocation,m_schemaLocation); \r
+ }\r
+\r
marshallElementType(targetElement);\r
marshallNamespaces(targetElement);\r
marshallAttributes(targetElement);\r
marshallChildElements(targetElement);\r
marshallElementContent(targetElement);\r
-\r
+ \r
#ifndef XMLTOOLING_NO_XMLSEC\r
if (sigs) {\r
for_each(sigs->begin(),sigs->end(),mem_fun<void,Signature>(&Signature::sign));\r