Thanks to visit codestin.com
Credit goes to github.com

Skip to content

children element with namespace prefix were considered invalid by parser #236

@mbjones

Description

@mbjones

Author Name: Jing Tao (Jing Tao)
Original Redmine Issue: 4433, https://projects.ecoinformatics.org/ecoinfo/issues/4433
Original Date: 2009-10-01
Original Assignee: Matt Jones


<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:eml>

The above xml instance will be considered valid.

However, if we add "eml" to "dataset" and xml will look like:

<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})'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions