Hi,

In a short answer, yes. We should try to create a dummy element in such case. I believe we already do that for DOM. Do you want to provide a patch :-)?

Thanks,
Raymond

----- Original Message ----- From: "Scott Kurz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, October 03, 2007 7:53 PM
Subject: could databinding-axiom Object2OMElement construct a default elem?


I noticed that if I try to use the XMLStreamReader databinding at the end of a chain starting with the SimpleJavaDB, I end up in the following transform
chain:

org.apache.tuscany.sca.databinding.axiom.Object2OMElement,
org.apache.tuscany.sca.databinding.axiom.OMElement2XMLStreamReader

This will give an NPE in the case that the logical type is an XMLType with a
Type but no Element.     (Roughly speaking, this will be the case if my
simple type doesn't
correspond to some XSD/WSDL definition).

I can't say I really grasp what's involved in creating a default element
name... but that's what we do in SimpleJavaType2Node.

Is there a reason we can't do the same?   Otherwise this Object2OMElement
transformer ends up causing some problems I'd say.

Scott



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to