blob: b2be71435d5dfaa654d21ba7cde968ef1a80a19b [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2005, v.4002-->
3<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
4<reference id="rextctn" xml:lang="en-us">
5<title>Editing XML documents with multiple namespaces</title>
7<searchtitle>Editing XML documents with multiple namespaces</searchtitle>
9<shortdesc>You can use the XML schema <codeph>any</codeph> element to extend
10the content model of an XML document.</shortdesc>
12<section><p>For example, you have an XML schema file called Book.xsd that
13contains a complex type called BookType. BookType contains 4 elements (title,
14author, year, and ISBN) and one <codeph>any</codeph> element. The namespace
15for the <codeph>any</codeph> element is <codeph>##any</codeph>. This means
16that in an instance document, you can insert any XML element to extend the
17definition of the BookType.</p><p>You can also provide a more specific namespace.
18For example, you have another schema called My_Book.xsd, which contains a
19complex type called My_BookType. My_BookType contains 4 elements (title, author,
20year, and ISBN) and one <codeph>any</codeph> element, but in this case the
21namespace for the BookType element is This means that in
22an instance document, you can insert any XML element to extend the definition
23of the BookType, provided that they belong to the namespace</p></section>