Hello all!
I need to build an XML file structure so a client can import data to
one of our systems. Totally new to XML, I learned about Namespaces and
DTD, and built a nice spec using them. Now I am trying to use XML
Schemas to tell more about what kind of data are allowed on each
element/attribute, but I can't understand how to mix Namespaces and
Schemas.
Can anyone give me tips, starting points, about how to specify the
Schema for the following example XML?
<library xmlns:book="book" xmlns:author="author">
<book:book>
<book:title>Example</book:title>
<book:pages>150</book:pages>
</book:book>
<author:author>
<author:title>Mr</author:title>
<author:name>Julio Nobrega</author:name>
</author:author>
</library>
I want to say that the <title> tag has different validation rules
depending on the namespace...
Thank you!
--
Julio Nobrega
http://www.inerciasensorial.com.br