On 16 May 2005, at 03:10, Fredo Corleone wrote:

Its been my observation that Castor creates xml with several unnecessary namespace declarations when the schema includes/imports schemas from several different files. I haven't had the time or need to pursue this further because its not breaking anything..


I routinely do this without problems.

<?xml version="1.0" encoding="UTF-8"?>
<wow-feeds:article
xmlns:wow-type="http://xml.whatsonwhen.com/schemas/1.0/wow- types.xsd"
xmlns:wow-feeds="http://xml.whatsonwhen.com/schemas/1.0/wow- feeds.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://xml.whatsonwhen.com/schemas/1.0/wow- feeds.xsd http://xml.whatsonwhen.com/schemas/1.0/wow-feeds.xsd";
id="19224" ongoing="false">
<wow-type:article-date tbc="false">
<wow-type:start-date>2005-04-18T00:00:00.000+01:00</wow- type:start-date>
<wow-type:end-date>2005-05-09T00:00:00.000+01:00</wow- type:end-date>
</wow-type:article-date>
<wow-type:article-date tbc="true">
<wow-type:start-date>2006-04-18T00:00:00.000+01:00</wow- type:start-date>
<wow-type:end-date>2006-05-09T00:00:00.000+01:00</wow- type:end-date>
</wow-type:article-date>
<wow-type:article-date tbc="true">
<wow-type:start-date>2007-04-18T00:00:00.000+01:00</wow- type:start-date>
<wow-type:end-date>2007-05-09T00:00:00.000+01:00</wow- type:end-date>
</wow-type:article-date>
<wow-type:title>Buenos Aires Book Fair</wow-type:title>
<wow-type:summary>The Buenos Aires Book Fair is eagerly awaited every year by bibliophiles in the Argentine capital. More than a million people head for this three-week event at the La Rural exhibition complex.</wow-type:summary>



...

All castor-generated XML, no mess, no fuss.

Reply via email to