I'll try to explain it better:

Is there a tool that can generate Perl objects that can read and write XML files that conform to a given XML Schema?

Given this (simplified example) XML Schema:
<!-- W3C XML Schema --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefa +ult="qualified" attributeFormDefault="unqualified"> <xs:element name="Product"> <xs:complexType> <xs:all> <xs:element name="Owners"> <xs:complexType> <xs:sequence> <xs:element name="FirstName" type="xs:string" /> <xs:element name="LastName" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> </xs:all> </xs:complexType> </xs:element>

The tool should generate all of the Perl Objects necessary so that I can access Read/Write XML files that conform to the Schema.
Example Code:

require AutoGeneratedCode; my $Product = new AutoGeneratedCode::Product->new('product.xml'); +# product.xml is an XML document that conforms to the Schema above $Product->Owners->FirstName('Mark'); $Product->Owners->LastName('Twain'); $Product->Write('modifiedproduct.xml'); # Writes it self to XML fi +le that conforms to Schema above

In reply to Re: Generate Perl Code from XML Schema? by ayvazj
in thread Generate Perl Code from XML Schema? by ayvazj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.