XML support

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

XML support

Andre Hora
Hello,

I would like to know if it is possible to import XML code to Moose.
I saw in the Moose Book (http://www.themoosebook.org/book/introduction/nutshell) that it is possible.

thanks!

--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: XML support

Tudor Girba
What do you mean exactly?

For XML in general, there is the XMLSupport which works pretty well.

Cheers,
Doru


On 20 Feb 2011, at 19:39, Andre Hora wrote:

> Hello,
>
> I would like to know if it is possible to import XML code to Moose.
> I saw in the Moose Book (http://www.themoosebook.org/book/introduction/nutshell) that it is possible.
>
> thanks!
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"It's not how it is, it is how we see it."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: XML support

Andre Hora
I mean import a XML document or XML schema model to analysis it in Moose, like we can import an Smalltalk, Java, File Structure, etc..

regards,

On Sun, Feb 20, 2011 at 7:43 PM, Tudor Girba <[hidden email]> wrote:
What do you mean exactly?

For XML in general, there is the XMLSupport which works pretty well.

Cheers,
Doru


On 20 Feb 2011, at 19:39, Andre Hora wrote:

> Hello,
>
> I would like to know if it is possible to import XML code to Moose.
> I saw in the Moose Book (http://www.themoosebook.org/book/introduction/nutshell) that it is possible.
>
> thanks!
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"It's not how it is, it is how we see it."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
Andre Hora


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: XML support

Tudor Girba
For a simple way to handle XML you have the DOM importer which creates a tree of strings.

If you want to have typed nodes, you can use the new Factory behavior which allows you to map node names to classes.

But at this moment, there is no support for generating schema specific objects automatically.

Cheers,
Doru



On 20 Feb 2011, at 19:53, Andre Hora wrote:

> I mean import a XML document or XML schema model to analysis it in Moose, like we can import an Smalltalk, Java, File Structure, etc..
>
> regards,
>
> On Sun, Feb 20, 2011 at 7:43 PM, Tudor Girba <[hidden email]> wrote:
> What do you mean exactly?
>
> For XML in general, there is the XMLSupport which works pretty well.
>
> Cheers,
> Doru
>
>
> On 20 Feb 2011, at 19:39, Andre Hora wrote:
>
> > Hello,
> >
> > I would like to know if it is possible to import XML code to Moose.
> > I saw in the Moose Book (http://www.themoosebook.org/book/introduction/nutshell) that it is possible.
> >
> > thanks!
> >
> > --
> > Andre Hora
> >
> > _______________________________________________
> > Moose-dev mailing list
> > [hidden email]
> > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
> --
> www.tudorgirba.com
>
> "It's not how it is, it is how we see it."
>
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>
>
>
> --
> Andre Hora
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Reasonable is what we are accustomed with."


_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev