Rank: Newbie
Joined: 6/3/2016 Posts: 1
|
Couldn't see any specific forum that appeared to be for specific product XMLSpy, but saw mention of XMLSpy here so here I am.
I have spent time with the tutorials, and still do not understand. I am using XML Spy 2016 Enterprise Edition version sp1 (x64).
I have a XML file and wish to validate it. My understanding of XML comes from about 80 hours of various hacking to accomplish what ever needed to be done at the moment.
Now, were on to trying to validate an XML file. At the top of the XML file there is
<?xml version="1.0" encoding="UTF-8"?> <IRSSubmissionManifest xsi:schemaLocation="http://www.irs.gov/efile efileAttachments.xsd" xmlns="http://www.irs.gov/efile" xmlns:efile="http://www.irs.gov/efile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Would seem to me that anything using/referencing this XML file would see
schemaLocation="http://www.irs.gov/efile efileAttachments.xsd"
and somehow know to go look at http://www.irs.gov/efile/efileAttachments.xsd.
Obviously I am missing something because just loading the file and pressing F8 gives messages indicating that did not happen.
So, my question is, what is required in the set up (of a project ?) to get XMLSpy to understand where the xsd file is ?
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
XMLSpy follows rules defined by W3C for XML files association with the schema. You are most probably missing the namespace in the schemaLocation attribute.
The good thing - there is no need to guess. Just open your XML instance, and execute menu command DTD/Schema => Assign Schema. XMLSpy will make for you a correct reference to the schema file.
|