Re: [Simple-support] Namespace support
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2008-07-31 11:48:35
|
Hi,
Well its easy to implement, so it would not take too much time once I have decided on exactly how to do it. I would imagine it would be the end of August before it will be done and released.
Niall
--- On Thu, 7/31/08, Patrick Sturm <si...@ge...> wrote:
> From: Patrick Sturm <si...@ge...>
> Subject: Re: [Simple-support] Namespace support
> To: sim...@li...
> Date: Thursday, July 31, 2008, 3:58 AM
> Hey Niall,
> It would be really helpful if you could tell me when
> namespace support
> will be implemented (approx.). We are currently working
> (planning) on an
> opensource project that heavily relies on XML. I am in
> favor of simple,
> because it does exactly what we need, but without an
> approximate date
> it is going to be hard to convince the others to wait.
> Please don't feel
> obligated or forced to rush development, if you can provide
> an answer
> that would be great, if you can't we'll have to
> live with it :>
>
> best regards siyb
>
> Niall Gallagher wrote:
> > Hi,
> >
> > I would like to add namespace support, unfortunately
> setting the name="foo:bar" will not work for
> deserialization. As the element or attribute name is
> "bar" and so it will not match. I was thinking of
> adding a namespace attribute to the annotations. For
> instance something like:
> >
> >
> > @Root(name="name",
> namespace="http://location/path")
> > public class Type {
> >
> > @Element(name="blah",
> namespace="http://domain/path")
> > private String value;
> > }
> >
> > And and a org.simpleframework.xml.stream.Namespace
> object to the org.simpleframework.xml.stream.Node object.
> This would then allow you to add custom prefixes or at the
> very least manipluate the namespaces if needed during
> serialization. Really not a big fix, and something I have
> planned for a while but have not really come up with an
> ideal solution yet.
> >
> > Niall
> >
> > --- On Wed, 7/30/08, Patrick Sturm
> <si...@ge...> wrote:
> >
> >
> >> From: Patrick Sturm <si...@ge...>
> >> Subject: [Simple-support] Namespace support
> >> To: sim...@li...
> >> Date: Wednesday, July 30, 2008, 5:24 AM
> >> I was not able to find documents that cover the
> topic of
> >> namespaces in
> >> simple. How would one implement namespaces such as
> foo:bar.
> >> I did come
> >> up with one idea, that involves
> >> @Element(name="foo:bar"),
> >> @Root(name="foo:bar") and
> @Attribute(name...) but
> >> I suppose that there
> >> might be a better way.
> >>
> >> regards siyb
> >>
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your
> Move
> >> Developer's challenge
> >> Build the coolest Linux based applications with
> Moblin SDK
> >> & win great prizes
> >> Grand prize is a trip for two to an Open Source
> event
> >> anywhere in the world
> >>
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> >> _______________________________________________
> >> Simple-support mailing list
> >> Sim...@li...
> >>
> https://lists.sourceforge.net/lists/listinfo/simple-support
> >>
> >
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK
> & win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
|