Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^4: Simpler than XML::Simple

by Jenda (Abbot)
on Nov 24, 2010 at 19:23 UTC ( #873531=note: print w/replies, xml ) Need Help??

in reply to Re^3: Simpler than XML::Simple
in thread Simpler than XML::Simple

I don't see the advantage with using XML::Smart either :-)

Enoch was right!
Enjoy the last years of Rome.

Replies are listed 'Best First'.
Re^5: Simpler than XML::Simple
by Anonymous Monk on Nov 25, 2010 at 15:19 UTC
    Ah, I meant XML::Rules :-)

    I just tried to convert the sample XML from XML::Rules' SYNOPSIS into a schema:

    trang test.xml test.rnc

    And the result:

    default namespace = ""
    start =
      element doc {
        element person {
          element fname { xsd:NMTOKEN },
          element lname { xsd:NMTOKEN },
          element email { xsd:NMTOKEN },
          element address {
            element street { xsd:NMTOKEN },
            element city { xsd:NMTOKEN },
            element country { xsd:NMTOKEN },
            element bogus { xsd:NMTOKEN }
          element phones {
            element phone {
              attribute type { xsd:NCName },
    Which looks quite reasonable. trang can also convert into .xsd files, which look uglier but are needed for XML::Compile operation.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873531]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-02-18 20:53 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (257 votes). Check out past polls.