Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Automatically creating data validation module from XSD

by brian_d_foy (Abbot)
on Aug 09, 2007 at 07:10 UTC ( [id://631479]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ xsd2pm foo.xsd > Foo.pm
    
  2. or download this
    $ xsd2module foo.xsd
    Creating Perl distribution for Foo...
    ...
    ...
    
  3. or download this
      <xsd:simpleType name="longitudeType">
         <xsd:annotation>
    ...
          <xsd:maxExclusive value="180.0"/>
        </xsd:restriction>
      </xsd:simpleType>
    
  4. or download this
    sub longitudeType {
         &_non_null and &xsd_decimal and $_[0]->_between( $_[1], -180, 180
    + )
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://631479]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found