W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2008

How do I re-task schemaLocation attribute?

From: Roberto <jobsqeu@yahoo.com>
Date: Wed, 19 Mar 2008 14:26:29 -0700 (PDT)
To: xmlschema-dev@w3.org, xmlschema-dev@w3.org
Message-ID: <382289.22242.qm@web35304.mail.mud.yahoo.com>

Got your attention? Good :) , Thanks for looking 
and thanks also for any assistance y'all can provide.
 
I use XMLSpy 2006 and my xml documents fail 
validation because of the schemaLocation. The xml documents previously passed 
validation when I used XMLSpy 2004. So obviously, either something was working 
and is now broke or something was broke and is now fixed in XMLSpy.
 
This is what the schemaLocation looks 
like:
 
<Return xmlns="http://www.foo.com/section" xmlns:efile="http://www.foo.com/section" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.foo.com/section \\server\dir\sub\subd\XSD_Folders\07\COR\2000v2.3\CIT\C1120S\R1120S.xsd 1120XML\2000v2.3\CIT\C1120s\R1120s.xsd" returnVersion="2000v2.3">
 
BTW, I have no formal training in XML and am brand 
new to it, in case you haven't guessed by now :) . From what I can tell, the 
schemaLocation fails because of that extra path at the end. It throws the 
"pairing(?)" off somehow which wasn't an issue in 2004 Spy. So, if I remove that 
extra path, the document passes validation in 2006 Spy. 
 
My question, is where do I modify the 
schemaLocation attribute that XMLSpy validates against so that the 
schemaLocation you see above is considered valid (or well-formed? not sure of 
the difference right now) by XMLSpy 2006. 
 
I would've thought that I could modify the locally cached copy of the XMLSchema.xsd file that comes with the installation of XMLSpy so I could validate the documents w/o having to remove that extra path every time. But unfortunately, I can't seem to make  heads or tails of the XMLSchema.xsd document as far as the schemaLocation attribute is concerned. I don't see it defined there but I'm probably blind and missing the obvious.


Unfortunately, I am not allowed to modify the xml documents further upstream to remove that extra path before it gets to me; it is used by a third party and would break stuff on their end apparently. Am I SOL??

 
thanks everyone,

R




      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Received on Thursday, 20 March 2008 04:20:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:15:03 GMT