[eml-dev] [Bug 4433] New: - children element with namespace prefix were considered invalid by parser

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Thu Oct 1 13:25:11 PDT 2009


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4433

           Summary: children element with namespace prefix were considered
                    invalid by parser
           Product: EML
           Version: 2.1.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: eml-parser
        AssignedTo: jones at nceas.ucsb.edu
        ReportedBy: tao at nceas.ucsb.edu
         QAContact: eml-dev at ecoinformatics.org


<?xml version="1.0"?>
<eml:eml packageId="tao.12926.1" system="knb"
xmlns:eml="eml://ecoinformatics.org/eml-2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.0 eml.xsd">
  <dataset>
  .......
  </dataset>
</eml:eml>

The above xml instance will be considered valid.

However, if we add "eml" to "dataset" and xml will look like:
<?xml version="1.0"?>
<eml:eml packageId="tao.12926.1" system="knb"
xmlns:eml="eml://ecoinformatics.org/eml-2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.0 eml.xsd">
  <eml:dataset>
  .......
  </eml:dataset>
</eml:eml>

Parser will give an error like:
cvc-complex-type.2.4.a: Invalid content starting with element 'eml:dataset'.
The content must match
'((("":access){0-1},(((("":dataset)|("":citation))|("":software))|("":protocol))),("":additionalMetadata){0-UNBOUNDED})'


More information about the Eml-dev mailing list