Cannot open XSD files for XML Schema Mapping

978 views
Skip to first unread message

Paul Miller

unread,
Aug 14, 2012, 12:33:48 PM8/14/12
to ai...@googlegroups.com
I am unable to open XSD files using Tools->XML Schema Mapping... on my Windows 7, 64 bit (running AIMMS 32 bit).
I have tried AIMMS 3.10, 3.11, and 3.12 (even creating new projects and starting from scratch).
I have also tried several sample XSD files I got off web, and a sample in AIMMS_ref.pdf, as well as my own, VS-Studio generated files.

I had previously been able to map schemas in AIMMS on my old XP 32-bit machine - I believe in 3.10 (but maybe 3.11).
I then upgraded project to 3.11, and transferred to my Windows 7 machine, but haven't touched the mapping all that time,
and the project continued to work. I only discovered the problem because I wanted to change 1 mapping in the file and couldn't open it.
(I've tried manually editing the axm file to change the mapping, but it still uses the old mapping).

Unfortunately my XP machine died, so I can't go back and test it.The only thing I can think is that it is a bug
related to Windows 7 64 bit running AIMMS 32 bit.

Does anyone have any ideas?
Below is the xsd file - in case someone wants to stick it in a project dir and see if they can open it on their machine.

Thanks for any help!
Paul Miller (pa...@osiopt.com)

<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="TA_OutputFile"
    targetNamespace="http://tempuri.org/TA_OutputFile.xsd"
    elementFormDefault="qualified"
    xmlns="http://tempuri.org/TA_OutputFile.xsd"
    xmlns:mstns="http://tempuri.org/TA_OutputFile.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
    <xs:element name="TA_OutputFile">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="Jobs" minOccurs="0" maxOccurs="1">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Job" minOccurs="0" maxOccurs="unbounded">
                                <xs:complexType>
                                    <xs:attribute name="JOB_ID" type="xs:int" />
                                    <xs:attribute name="ASSIGNED_TANKS" type="xs:string" />
                                    <xs:attribute name="ASSIGNED_DATE" type="xs:dateTime" />
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>

            </xs:sequence>
            <xs:attribute name="StatusMessage" type="xs:string" />
            <xs:attribute name="ProgramStatus" type="xs:string" />
            <xs:attribute name="SolverStatus" type="xs:string" />
        </xs:complexType>
    </xs:element>

</xs:schema>




Guido Diepen

unread,
Aug 15, 2012, 11:15:51 AM8/15/12
to ai...@googlegroups.com
Hi Paul,

when you say you are unable to open the XSD file, what is the error you are getting? I have been able to open your attached .xsd file without a problem in both AIMMS 3.11 and 3.12. In both versions, I just created a new set Jobs with index j and assigned the corresponding item from your XSD file to this index and did not get any errors.

Guido Diepen
AIMMS Specialist

Paul Miller

unread,
Aug 15, 2012, 12:56:36 PM8/15/12
to ai...@googlegroups.com
I can't open it when, in AIMMS, I select "Tools->XML Schema Mapping...".
I then get a file-browse popup, and select the XSD file.
I then get an error popup saying:
"Error opening schema file
C:\....\TA_OutputFile.xsd"

Since I can't open the xsd file, I can't do the mapping to create (or edit) the axm mapping file -
I never get to the mapping pop-up.

Since I WAS able to do the mapping originally (on my old XP machine),
I can only guess that the problem is do to something in Windows 7 (64bit) running AIMMS (32bit).

Paul

--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/askrty0O1LkJ.

To post to this group, send email to ai...@googlegroups.com.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aimms?hl=en.



--
Paul Miller
Optimal Solutions, Inc.
pa...@osiopt.com
908.393.6403

Guido Diepen

unread,
Aug 16, 2012, 8:00:36 AM8/16/12
to ai...@googlegroups.com
Hi Paul,

given the fact that I was able to open your attached xsd file without a problem (and I am assuming it is not caused by file access rights on your system), the only thing that comes to mind that could cause a problem in this case is problems with MSXML.

Can you please try to see if your problem is solved after you manually install MSXML4 from Microsoft? You can find an installer for this at the following site: http://www.microsoft.com/en-us/download/details.aspx?id=15697

Guido Diepen
AIMMS Specialist

Paul Miller

unread,
Aug 18, 2012, 4:40:27 PM8/18/12
to ai...@googlegroups.com
Thanks Guido! - installing the MSXML4 SP3 parser worked and I can now open the file and edit the axm mappings.

Thanks so much for your help!
Paul

To view this discussion on the web visit https://groups.google.com/d/msg/aimms/-/XSAHQIPARUAJ.

To post to this group, send email to ai...@googlegroups.com.
To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/aimms?hl=en.
Reply all
Reply to author
Forward
0 new messages