Skip to main content
1-Visitor
April 8, 2016
Question

I have had a Mathcad web site for some time.

  • April 8, 2016
  • 21 replies
  • 7219 views

Now I find that I cannot post a Mathcad file with an XML extension.  It does not come up and I am told it has no  style elements associated with it.  Any help here would be appreciated

21 replies

24-Ruby IV
April 9, 2016

You can create rar, zip etc files and post its.

Joeboy1-VisitorAuthor
1-Visitor
April 9, 2016

I realize that.  I can also create pdf files.  Why can I not use Mathcad XML files in a web site file ?  Looks like PTC has taken yet another step in reducing the usefulness of Mathcad

24-Ruby III
April 9, 2016

Hi,

use How to Attach a File to a Discussion Reply procedure to attach a file.

MH

JeffH1
16-Pearl
April 18, 2016

I assume you are trying to post a .xmcd file, which is in XML format.   I struggled with this one for quite awhile myself before finding a solution.

The problem is not Mathcad, but your browser.  The browser looks in the file and sees that it is an XML file and overrides the behavior defined by HTML for opening .xmcd files.  My browsers actually open the XML for viewing and editing.  Such a pain.

My solution: Save your files in the compressed Mathcad format with an .xmcdz extension.  This compresses the file to a binary format that won't trip up your browser.  The file will then open properly by starting Mathcad and opening the file.

Jeff

JeffH1
16-Pearl
April 18, 2016

NOTE: Mathcad Prime doesn't have this problem because Prime files are binary and not XML.  This was a good move on PTC's part.  I never understood the benefit of storing Mathcad worksheets as XML files.

19-Tanzanite
April 18, 2016

Change the .mcdx extension to .zip, and unzip it. XML! The problem is that Prime then can't read the file.

The reason for XML was that it's human readable. The argument was that calculations done in Mathcad would still be retrievable years in the future, even if Mathcad no longer existed as a product.

Joeboy1-VisitorAuthor
1-Visitor
April 23, 2016

Actually I spoke too soon.  I did as you suggested but I get the same result when I log onto the web site and click on the offending file.  I am using Windows 7 and Mathcad 15

25-Diamond I
April 23, 2016

Dixie Griffin wrote:

Actually I spoke too soon.  I did as you suggested but I get the same result when I log onto the web site and click on the offending file.  I am using Windows 7 and Mathcad 15

Its not clear whom you are replying to and which suggestion you tried.

Did saving and providing the files in *.xmcdz format not solve the problem?

Joeboy1-VisitorAuthor
1-Visitor
April 23, 2016

I saved the files in *.xmcdz format, updated the web site with them and it did not solve the problem.   The browser still interprets it as an XML file even though the file extension is xmcdz

Joeboy1-VisitorAuthor
1-Visitor
April 23, 2016

Google Dr Griffins Mathcad,  it will come up as Dr Griffins Mathcad - Suddenlink in chemistry section for problem entitled "Methyl Bromide on lettuce"

URL - http://pages.suddenlink.net/drgriffinsmathcad/prob%20B-4%20methyl%20bromide%20on%20lettuce.xmcdz

19-Tanzanite
April 23, 2016

I see the same problem you do. However, when I save the file and look at the contents using Notepad++, I see plain text XML. So it's not clear to me how you created the xmcdz file. Try the attached version.

Joeboy1-VisitorAuthor
1-Visitor
April 23, 2016

VladimirN told me to save the file as a compressed XML file first then open it.  That works

Joeboy1-VisitorAuthor
1-Visitor
April 23, 2016

Thanks VladimirN - works