PDA

View Full Version : XML File Changes



Smurphy820
12-14-2004, 12:21 PM
When I use this feature in 10.5 I get an error message

Unexpected error updating XML Files. Error: 3

There seems to be nothing on the Web about this error. Anyone seen/solved it?

Sean

syoung
12-14-2004, 07:22 PM
Here is what I get regardless of xml file contents, regardless of imported in or created from scratch. ARGH!

1: Installing XML file 'C:\mas\Test.xml'
Action 18:45:07: Progress Custom Action. Creating XML file C:\mas\Test.xml...
Action 18:45:07: Progress Custom Action. Updating XML file C:\mas\Test.xml...
1: MSXML 4 not installed, using MSXML 3...
1: XML file 'C:\mas\Test.xml' does not exist. Creating...
1: Processing XPath '//'
1: XPath '//' not found, creating...
1: Checking XPath '/'
1: CISXmlFile::CreateXPathElements - QueryInterface failed
1: Node name: '#document' --> Attribute name = 'Attribute1', Current Value = '', Operation = '1'
1: Node name: '#document' - Attribute name = 'Attribute1', Old Value = '', New value = 'Attribute Value', Actual New Value = 'Attribute Value'
Action ended 18:45:07: InstallFinalize. Return value 3.
:mad:

Smurphy820
12-15-2004, 10:08 AM
When I use this feature in 10.5 I get an error message

Unexpected error updating XML Files. Error: 3

There seems to be nothing on the Web about this error. Anyone seen/solved it?

Sean

With some help from Tech Support I was able to get this working. There are a couple of 'Undocumented Features' that I need to take care of before it could work.

1. The root element cannot have any attributes. If it does that will produce an error.

2. When you import an XML file into the XML file changes view, a new component is created for that file. You must then go and manually add the XML file that you imported to the component.

It seems that XML file change views while claiming to create an XML if one does not exisist is just what it calls itself Changes. If the XML file does not exist it must first install the file from the component and then it can changed it.

Sean