But if I remove the schemaLocation attribute, my application will not be validated when I run outside of IDEA. The schemaLocation is the only "hint" provided to parsing applications as to how the schema may be located. The only reason it is unneeded in IDEA is because you provide a separate external resource configuration window where the location can be set.
I understand that a relative location is being specified. Why is it being treated relative to IDEA_HOME/bin instead of relative to the working directory that has been configured for my project's run? That's where I've placed the schema, and it seems only natural that all paths would be relative to this directory rather than IDEA_HOME/bin... - Tim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Aizatsky Sent: Tuesday, March 12, 2002 7:48 AM To: [EMAIL PROTECTED] Subject: RE: [Eap-list] Still no results when validating against a schema Timothy, The main problems in XML files you sent to me is the following tag: <AddressBook xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.deansoft.com/AddressBook" xsi:schemaLocation="http://www.deansoft.com/AddressBook AddressBook.xsd"> Because you've specified the relative schema location, Xerces thinks that it is calculated relative to the current working dir (<IDEA_HOME>/bin) in our case. If you remove schemaLocation attribute, validation will be performed. Best regards, Mike Aizatsky. ------------------------------ IntelliJ Software, "Develop with pleasure!" http://www.intellij.com > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On > Behalf Of Timothy M. Dean > Sent: Tuesday, March 12, 2002 4:41 AM > To: [EMAIL PROTECTED] > Subject: [Eap-list] Still no results when validating against a schema > > IDEA Build #611 > JDK 1.3.1 > Win 2K > > I am still trying to validate an XML file against a schema, and still not > having any success with build #611. In the current version, executing a > validate (Ctrl-Shift-F9) on my XML file results in the Messages window > showing up, with a new "Validate" tab on it. However, there is no messages > of success or failure in that tab. On the console I see the following > information: > > schemaLocations = 'http://www.deansoft.com/AddressBook AddressBook.xsd > http://www.w3.org/2001/XMLSchema-instance > http://www.w3.org/2001/XMLSchema-instance' > noNsSchemaLocation = 'http://www.deansoft.com/AddressBook' > publicId = 'null' > systemId = 'file:///D:/IntelliJ/Ariadna/bin/AddressBook.xsd' > file = 'null' > > - Tim > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
