NAME

XML::Struct - Convert document-oriented XML to data structures, preserving element order

VERSION

version 0.02

SYNOPSIS

use XML::Struct;

...

DESCRIPTION

This module implements a mapping of document-oriented XML to Perl data structures. The mapping preserves element order but XML comments, processing-instructions, unparsed entities etc. are ignored, similar to XML::Simple. With XML::Struct::Reader, this XML document:

<root>
  <foo>text</foo>
  <bar key="value">
    text
    <doz/>
  </bar>
</root>

is transformed to this structure:

[
  "root", { }, [
    [ "foo", { }, "text" ],
    [ "bar", { key => "value" }, [
      "text", 
      [ "doz", { } ]
    ] 
  ]
]

SEE ALSO

XML::Simple, XML::Fast, XML::GenericJSON, XML::Structured, XML::Smart

AUTHOR

Jakob Voß

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Jakob Voß.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.