Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Web Tools Guide
Previous Page Home Next Page

Editing XML documents with multiple namespaces

You can use the XML schema any element to extend the content model of an XML document.

For example, you have an XML schema file called Book.xsd that contains a complex type called BookType. BookType contains 4 elements (title, author, year, and ISBN) and one any element. The namespace for the any element is ##any. This means that in an instance document, you can insert any XML element to extend the definition of the BookType.

You can also provide a more specific namespace. For example, you have another schema called My_Book.xsd, which contains a complex type called My_BookType. My_BookType contains 4 elements (title, author, year, and ISBN) and one any element, but in this case the namespace for the BookType element is www.wesley.com. This means that in an instance document, you can insert any XML element to extend the definition of the BookType, provided that they belong to the namespace https://www.wesley.com.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire