You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by Benson Margulies <bi...@apache.org> on 2011/07/07 23:12:59 UTC

Re: XmlSchema 2.0 question

Daniel,

I decided that maintaining the 'direct to string' code in addition to
the dom serialization code was not a good idea. It had too many ways
of messing up on namespaces. So in 2.0 I removed in and just left DOM
serialization -- which, unfortunately for you, wants to work at the
level of the entire schema.

You could try modifying the serializer to make all the per-type
methods public and then use the L3 DOM to get strings.

I apologize for the inconvenience, but the code, overall, had quite a
lot of not-quite-thought-through things in it, and my approach in 2.0
was to be fairly merciless in chopping them out, since there's very
nearly no one left to work on it.

--benson


On Thu, Jul 7, 2011 at 11:12 AM, Daniel Tingstrom
<dt...@atc-nycorp.com> wrote:
> Hi Benson,
>
>
>
> I found that you are the lead in the Apache XMLSchema 2.0 project. I am in
> the process of porting my code that used XMLSchema 1.4.7 to XMLSchema 2.0,
> and I can’t find one important method that I used:
>
>
>
> XmlSchemaElement.toString(String prefix, int tab)
>
>
>
> …which created a recursive XML String of any given schema element. Is there
> a way to do this with XmlSchema 2.0?
>
>
>
> Thanks,
>
>
>
> Daniel