Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hi! No, I don't want to tidy the file, there's plenty of that in most any generator. The problem is, and I point out it is most specific to XSD, that generators of XSD don't generally care about "reading format", their concern is standards compliance. Typically, they'll generate a file and simply alphabetize the entries. That's okay if you already know the entries and can tell the generator which entry is the root when it goes to create an example/sample/template XML. But what if you don't know? What if you're looking at some other XSD file (also generated) from another source. Without careful study and, perhaps, a few trial and error passes, you may not get a correct XML example/sample/template. What I've tried to do with ReorgXSD is do some of the "study" and reorganize the XSD into a file that more readily reveals what the structure of the XML will be, most importantly, what is the root element?

It might be profitable for you to take the code, apply it to a less than decipherable XSD and see if you don't think the output is easier to read/understand.

I've tried it with various XSD's from Altova, Stylus Studio, and Microsoft, both existing in their downloads and generated by them. I've found that most of the time, the reorg makes the XSD easier to read/understand. But that, of course, is subjective. Perhaps for many people who've been around XSD since it's inception, ReorgXSD files are no better than the original.

thx,
Dave S.

In reply to Re^4: ReorgXSD.pl by dsilvia
in thread ReorgXSD.pl by dsilvia

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found