Change URI of namespace : Namespace « Namespace « XML Tutorial

Home
XML Tutorial
1.Introduction
2.Namespace
3.XML Schema
4.XPath
5.XSLT stylesheet
XML Tutorial » Namespace » Namespace 
2.1.6.Change URI of namespace
<person xmlns="http://www.java2s.com"
    <name/> 
    <paragraph xmlns="http://www.w3.org/1999/xhtml">This is XHTML</paragraph> 
</person> 

http://www.java2s.com is the default namespace for the document as a whole, 
http://www.w3.org/1999/xhtml is the default namespace for the <paragraph> element, and any of its descendants. 
http://www.w3.org/1999/xhtml namespace overrides the http://www.java2s.com namespace.
2.1.Namespace
2.1.1.Why We Need Namespaces
2.1.2.How XML Namespaces Work
2.1.3.Default Namespaces
2.1.4.Declaring Namespaces on Descendants
2.1.5.Understanding URIs
2.1.6.Change URI of namespace
2.1.7.Using Prefixes
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.