> Even if the tk automatically puts them at the top, the server
> MUST have had them in the record to start with for
> recordPacking=string.
> For them to not be there when recordPacking=string is simply _wrong_.
In Java, I would probably have some code such as
response.records.record.recordData.setDataAsString(xmlFragment);
Where xmlFragment would be an XML DOM for the record which its
namespaces. In this case it would escape the XML and agreed the
namespace definitions would be in the encoded string.
If I did
response.records.record.recordData.setDataAsXML(xmlFragment);
Then the toolkit would add the DOM for xmlFragment (with its namespaces)
to the DOM for the rest of the response, but there is no guarantee when
I did
response.toXML();
Where those namespaces would end up in the final serialized XML.
Matthew
|