users@jersey.java.net

Re: [Jersey] Json output not always matching xml output

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 23 Nov 2009 09:59:04 +0100

On Nov 22, 2009, at 11:00 AM, Paul Taylor wrote:
>> How can I keep it as ext, or is the original xml wrong in some way
>> (forgive me but despite some effort I havent got my head round the
>> namespace syntax)
>>
>> Paul
> Never mind, solved the issue with NamespacePrefixMapper
>

Note that namespace prefixes in XML documents are usually not
important when processing the XML infoset produced from parsing an XML
document unless:

1) those prefixes are referred to in text content or attribute values
(e.g. QNames in content); or

2) producing canonical versions of XML documents for the purposes of
signing.

One can think of a prefix as a sort of short name reference to a
namespace so that the namespace does not have to be referred to
directly many times resulting in XML documents that are hard to read
or write by humans.

Paul.