| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html | |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html> | |
| <head> | |
| <!-- /******************************************************************************* | |
| * Copyright (c) 2000, 2005 IBM Corporation and others. | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * IBM Corporation - initial API and implementation | |
| *******************************************************************************/ --> | |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" /> | |
| <!-- US Government Users Restricted Rights --> | |
| <title>Editing XML documents with multiple namespaces</title> | |
| </head> | |
| <body id="rextctn"><a name="rextctn"><!-- --></a> | |
| <h1 class="topictitle1">Editing XML documents with multiple namespaces</h1> | |
| <div><p>You can use the XML schema <samp class="codeph">any</samp> element to extend | |
| the content model of an XML document.</p><div class="skipspace"><p>For example, you have an XML schema file called Book.xsd which | |
| contains a complex type called BookType. BookType contains 4 elements (title, | |
| author, year, and ISBN) and one <samp class="codeph">any</samp>element. The namespace | |
| for the <samp class="codeph">any</samp> element is <samp class="codeph">##any</samp>. This means | |
| that in an instance document, you can insert any XML element to extend the | |
| definition of the BookType.</p> | |
| <p>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 <samp class="codeph">any</samp> 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 | |
| http://www.wesley.com.</p> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |