Frank, Thanks again for the quick response.
This feature is important to us for the following reason. We are in the process of re-architecting an existing web service to use SDO instead of DOM4J. Our web service clients are expecting response documents that have a default namespace. DOM4J created and serialized these documents as such. When we generate the same response documents using SDO, a default namespace is not used. Rather, the response document root element has a prefixed namespace attribute and the child elements in that namespace have prefixed names. We need to reproduce the default namespace semantic so that our legacy web service clients do not get confused. - Ron ----- Original Message ---- From: Frank Budinsky <[EMAIL PROTECTED]> To: [email protected] Sent: Thursday, July 6, 2006 6:51:55 PM Subject: Re: XMLHelper.save() specifying default namespace of root element Ron, EMF lets you control the xmlns prefixes by setting the XMLNSPrefixMap of the DocumentRoot, but SDO has no concept of DocumentRoot so it's hidden in the implementation. To support this in Tuscany, a line of code like this is needed in the XMLDocumentImpl ctor: ((EMap)documentRoot.eGet(extendedMetaData.getXMLNSPrefixMapFeature(documentRootClass))).put("", rootElementURI); It may be possible to add an option in the Tuscany implementation of the XMLHelper.save() method to do this. How important is it to you? Does anybody else think this sounds like a good feature to add? Note that you need to be a little bit careful when using the default namespace if your schema declares qualified form elements, for example. Frank. Ron Gavlin <[EMAIL PROTECTED]> wrote on 07/06/2006 12:49:22 PM: > When I invoke XMLHelper.INSTANCE.save(), I would like the ability to > make the namespace I specify for the root element the default > namespace for the resulting document. Currently, a namespace and > prefix are defined for the root element and all nodes from that > namespace are specified using that prefix. Is there any way to > trigger use of a default namespace to accomplish this? > > Also, I noticed that Jeremy has a class DOMHelperImpl in his sandbox > that looks like it can be used to efficiently load/save DataObjects > from/to DOM nodes. This looks like a useful utility class. Any plans > to formally support this type of functionality in Tuscany SDO? > > - Ron > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
