clint.dow

IXMLPropertySet2.SaveAsFile XSL Translate Error

Discussion created by clint.dow on Jun 4, 2014
Hi everyone, I'm stuck on this issue and really unsure what the problem is.

I am trying to simply save the (IXMLPropertySet2)IMetadata.Metadata using the IXMLPropertySet2.SaveAsFile() method with the following code:

metadataToolControlVM.CurrentMetadata.SaveAsFile("C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\Metadata\\Translator\\ARCGIS2FGDC.xml", "", false, "C:\\Temp\\test.xml");


Which produces the following error when that code is called:

An exception of type 'System.Runtime.InteropServices.COMException' occurred in ArcCatalog_MetadataTool.dll and wasn't handled before a managed/native boundary

Additional information: Namespace 'urn:schemas-microsoft-com:xslt' does not contain function 'utc'.


As far as I can tell from this microsoft site, it should in fact contain the utc function.

I have been spinning my wheels on this for a while now, I can't see what's wrong here. Anyone able to offer insight?

Outcomes