Define XML Document across include files

 Hi,

My build scripts do a lot of includes that have a lot of XML actions.  All of them just point to the file on disk.  I was thinking perhaps I could gain some speed if I switched to use XML Document Define instead of always opening and closing my xml file.  Is there anyway I can do define an XML document in the parent script and use it in child scripts?  I tried doing it and I got the following error:

Error selecting nodes: Access violation at address 0BBEF1F3 in module 'FBXML.bpl'. Read of address 00000000

Thanks,
-Nelson

Hi Nelson,

No, you can’t share project objects (XML Document Define, FileSet Define, FTP Connections, etc) to included projects. I’m interested in how you selected the XML document in the child project action, the drop down list of defined documents should not of listed the parent projects document. Also, which action did you get that Access Violation in?

Regards,
Paul.

In my child script I have a created an identical document define, but I put it in an if block that never is executed. So I really had to ‘trick’ it to break it.

Thanks!

Hi Nelson,

Which action was it that reported the error? It should be failing gracefully with a document not defined message rather then the AV.

Regards,
Paul.

It was in an XML Iterator. FB 6.3.0.2140