Click to See Complete Forum and Search --> : Xml Namespace


lokegupta
06-27-2008, 03:02 PM
hello to all..
pls look at the exampl given below

<?xml version="1.0"?>

<html:html xmlns:html='http://www.w3.org/1999/xhtml'>

<html:head><html:title>Frobnostication</html:title></html:head>
<html:body><html:p>Moved to
<html:a href='http://frob.example.com'>here.</html:a></html:p></html:body>
</html:html>

Multiple namespace prefixes can be declared as attributes of a single element, as shown in this example:

<?xml version="1.0"?>
<!-- both namespace prefixes are available throughout -->
<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>

pls tell me how can i use these namespace in my local computer....

rpgfan3233
06-27-2008, 06:11 PM
A namespace doesn't actually need to point to anything because the namespace is a URI. It could just be a URN, which isn't bound to any concrete page at all like "urn:exampleNS", or it can be a URL, such as "http://www.w3.org/1999/xhtml".

You can use those namespaces anytime you want to, so I'm not sure what you mean when you write "how can i use these namespace in my local computer...."