That code is not the only place that writeDO is called from. I believe that
the idea is to always write the xsi type info for the root element. There is
clearly some logic that tries to determine whether this is necessary so line
117 in SDOXMLWriter.cpp
writeDO(root, elementURI, elementName, true);
was probably initially
writeDO(root, elementURI, elementName, writeXSIType);
I can only assume that there were problems if we didn't always write the
xsi:type= info. The SDO specification says that an implementation MAY always
write this;
"
- When saving the root element, an xsi:type may always be written in
the XML to record the root DataObject's Type. If the rootElementURI and
rootElementName correspond to a valid global element for that DataObject's
Type, then an implementation may suppress the xsi:type.
"
So... I guess it's always set to true as a cop-out when we hit a problem.
This code has not changed since the initial drop into Apache which means I
am the culprit and I've forgotten why it is the way it is ... sorry :-(
I'll investigate further and see if my memory can be jogged.
Cheers,
On 18/09/06, Caroline Maynard <[EMAIL PROTECTED]> wrote:
There's a question about the behaviour of
SDOXMLWriter::write(XMLDocumentPtr doc, int indent)
over on the PHP SOA group:
http://groups.google.co.uk/group/phpsoa/browse_frm/thread/e09432b81df0ae32
Does anyone know the answer?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Pete