in reply to Re^2: XML::Simple, ForceArray, ForceContent and DTD/Schema
in thread XML::Simple, ForceArray, ForceContent and DTD/Schema

If I was going to do #2 for XML Schema I'd start by adding schema data to the stream produced by XML::Validator::Schema. Then I'd create a handler which uses this sweetened data to create sensible defaults for ForceArray and ForceContent in XML::Simple.

Give XML Schema a try some time. I've found if you stay away from the nuttier features it can be a pretty reasonable, if verbose, alternative to DTDs (which I loathe). To help you keep it simple (heh) XML::Validator::Schema only supports a small subset of the standard anyway.

-sam

  • Comment on Re^3: XML::Simple, ForceArray, ForceContent and DTD/Schema