LibreCat / Catmandu-XML

Catmandu modules for working with XML data
https://metacpan.org/module/Catmandu::XML
Other
4 stars 3 forks source link

Content ignored for elements with attributes when importing XML (type simple) #6

Closed snorri closed 10 years ago

snorri commented 10 years ago

Example:

  <journal-meta>     <journal-id journal-id-type="nlm-ta">BMC Womens Health</journal-id>     <journal-id journal-id-type="iso-abbrev">BMC Womens Health</journal-id>   </journal-meta>

is imported as:

{      'journal-id' => [              {               'journal-id-type' => 'nlm-ta'              },              {               'journal-id-type' => 'iso-abbrev'              }       ] };

(The Content for the journal-id elements ("BMC Womens Health") is missing).

nichtich commented 10 years ago

Fixed in XML::Struct 0.22. The next release of Catmandu::XML will have this as dependency.