DEV Community

PARTH_KAKADIYA
PARTH_KAKADIYA

Posted on

XML namespace

Are the two dog elements in the following XML fragments identical?

Fragment 1:
<animals xmlns="urn:animals">
<dog>The dog was the first species to be domesticated</dog>
</animals>

Fragment 2:
<animals>
<animals:dog xmlns:animals="urn:animals">
The dog was the first species to be domesticated
</animals:dog>
</animals>

Top comments (0)