[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling unknown elements in an entry




Dare Obasanjo wrote:
--- Joe Gregorio <joe.gregorio@xxxxxxxxx> wrote:


If the client was intentionally trying to delete

the extension, that's


exactly what it would do, isn't it?

Or should it return the entry with the element empty? I think that would more clearly show the intention.


It depends on the type of the element. If the server
is using an XSD schema on the backend then some
elements with simple types (e.g. numeric values or
dates) would be considered invalid if they were empty.

It would also make it impossible to set an element to empty.


I suggest we say 'watch out! don't delete stuff!'.

Robert Sayre