IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Pointing to schema in xmlspy <?> Options · View
xmlny
Posted: Friday, June 3, 2016 4:35:35 PM
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 ?



vlad
Posted: Friday, June 3, 2016 9:27:32 PM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.