Does JAXWS client make difference between an empty collection and a null collection value as returned value?

There is no way to make a difference between an empty collection and null in the XML. A collection is usually serialized as a sequence of tags ( xs:sequence in the schema), without an enclosing tag representing the collection itself.

There is no way to make a difference between an empty collection and null in the XML. A collection is usually serialized as a sequence of tags (xs:sequence in the schema), without an enclosing tag representing the collection itself. I fear that whether you obtain null and an empty collection will be implementation specific, and I would not rely on it.

If you need to make the distinction, you can wrap the collection into another object so as to generate an enclosing tag (I didn't found another way to have an enclosing tag be generated).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions