[MEI-L] XML Namespaces in MEI

Andrew Hankinson andrew.hankinson at gmail.com
Thu Sep 4 20:11:02 CEST 2014


Hi all,

Does anyone know how the xml: namespace prefix works? Do you have to declare it explicitly, or is it always implicitly declared?

So, do you have to do this:

<mei xmlns:xml=“http://www.w3.org/XML/1998/namespace” xmlns="http://www.music-encoding.org/ns/mei”>
    <someElement xml:id=“abc123” />
</mei>

Or is it enough to do this:

<mei xmlns="http://www.music-encoding.org/ns/mei”>
    <someElement xml:id=“abc123” />
</mei>

-Andrew


More information about the mei-l mailing list