Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^5: Simpler than XML::Simple

by Anonymous Monk
on Nov 25, 2010 at 15:19 UTC ( #873660=note: print w/replies, xml ) Need Help??

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

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://873660]
[Discipulus]: are we not yet in Summer?
Discipulus yesteday saw flowered poppins outside..
[marto]: This won't take till Summer to complete I hope ;)
[Discipulus]: i hope too, vacuum cleaner permitting, 2-3 afternoon to build. Or is the 1:1 serie? ;=)
[Tanktalus]: Sure, no one is active for hours and hours in the cb, so I go to upgrade the db, and then someone is active. Sheesh :)
[Discipulus]: anyway poppins probably died with the last night cold. But is not normal to see them in dec. they must pop in April

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2017-12-18 21:31 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (498 votes). Check out past polls.