When to use URN for xmlns

For an XML document of type "hello world":

<?xml version="1.0" encoding="UTF-8"?>
<!-- see http://www.w3.org/TR/REC-xml-names/ -->
<bk:book xmlns:bk="urn:loc.gov:books" xmlns:isbn="urn:ISBN:0-395-36341-6">
  <bk:title>Cheaper by the Dozen</bk:title>
  <isbn:number>1568491379</isbn:number>
</bk:book>

can you arbitrarily determine the urn on the fly for your own purposes?

+5
source share
2 answers

In short, yes. You can make them as you wish.

+3
source

I found this answer quite useful, and it led me to this article , which seems to say that yes, you can make them the way you like, and really you should if you are not going to post the document on the Internet at the given URL to the address.

+3
source

All Articles