Re: XML read/write using schemas - Consultancy?

Oliver Elphick <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <1251265547.25509.32.camel@cerberus>
On Wed, 2009-08-26 at 00:26 +0200, Michael Ludwig wrote:
> Oliver Elphick schrieb am 25.08.2009 um 23:37:12 (+0200):
> > I need to read and generate XML messages using xsd schemas.
> 
> Hi Oliver,
> 
> use the schemas to validate input and output? Or something else?

Is that the only point of the schema? I have found the routines that
validate an XML message against a schema.

> > I have no XML experience and cannot discover which Perl modules to use
> > to do this.
> 
> I always use XML::LibXML and XML::LibXSLT. They cover a variety of
> standards including XSD (not sure about the compliance, though).

Is XML::LibXSLT relevant to me?  As far as I know, there is no
stylesheet.

I can't see at present how to get from the xsd schema to a structure in
Perl into which I can put or from which I can extract data.  I can see
that one can use a DOM to define such a structure, but how do you get to
a DOM from a schema?

At present, I can't see any other way than writing things "by hand",
which seems very inefficient.

Thanks
Oliver


_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.