Hi support team,
I want to create a manifest file by means of FinalBuilder. For this I create an empty xml file and add the following line:
This node is added by this child node:
The XPATH expression "/a:assembly/b:trustInfo" fails unless I save and reopen the XML file.
Attached you'll find a sample project showing this behavior.
I don't know whether or not it is a bug or my fault.
Can you help?
Best regards
Michael
20111124_CreateManifest.fbp7 (119.365 KB)
Hi Michael
I have had a look at your example, I believe you are seeing this error because even though you have defined the namespace prefixes when you are creating the document, the namespace cannot be resolved because the namespace you are referencing does not exist in the document at this point in time.
If I insert the the ‘trustInfo’ node into the initial document definition (and disable the action that inserts this node) then the project works as expected, as the namespace is present and can be resolved when the document is defined.
You have a couple of options:
1. Include any nodes that define namespaces into the initial document definition, so that the namespace prefixes can be resolved.
2. Save the document after the initial definition, then when adding the new nodes (step 2 in your example script) reference the file itself, rather than the XML document. This will allow you to set the MSXML parser options for each operations, allowing you to reference and alias new namespaces as they are added.
Hope this helps.
Regards,
Steve