ZVON > Tutorials > XML Schema and Relax NG Tutorial |
Intro / Search / ZVON |
Index |
Document root element is from null namespace |
Let's start with our first document. It must have only "root" element and this element can contain text only. The element is from null namespace. Relax NG does not interfere to the structure of the validated document. ... |
Document root element from some particular namespace |
Now, let's have the same document as in previous example, but the "root" element must be from some concrete namespace, let's say "http://foo". ... |
Document root element can be from a set of namespaces |
We allow the "root" element to be from several namespaces, let's say: "http://foo", "http://bar", or "http://baz". That's not possible in XML Schema. The treating of namespaces in Relax NG is smooth, consistent, natural, and easy. ... |