Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Need help with this schema [Thread Next] Re: Need help with this schemaTo: NULL Date: 8/4/2006 7:17:00 PM
Jeremy Chapman wrote:
> Thanks for the tip about mixed elements, that's exactly what I needed.
> Regarding the namespaces, my problem is that the xml is generated by a 3rd
> party app, and I'm trying to create an xsd basically to document for our
> purposes what the xml would look like. Unfortunately the root node has a
> namespace and prefix (<ns0:Assessment xmlns:ns0="http://AIM.xsd">) but non
> of the child elements do. Any way to get this to validate with a schema?
>><xs:schema xmlns:ns0="http://AIM.xsd"
>> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>>targetNamespace="http://AIM.xsd"
>> elementFormDefault="qualified" attributeFormDefault="unqualified">
^^^^^^^^^
Change that to unqualified then for your purpose. See
<http://www.w3.org/TR/xmlschema-0/#UnqualLocals>.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
