Page 1 of 1

Get master file url through api

Posted: Mon Mar 31, 2014 11:35 am
by Patrik
Hi,

I need to know the master file url from within my extension bundle but can't find a method returning it!?

Thanks and regards,

Patrik

Re: Get master file url through api

Posted: Mon Mar 31, 2014 12:17 pm
by Radu
Hi Patrik,

We do not have API for this.
How do you define that master file in Oxygen? Do you add certain XML documents in the special Master Files grouping folder in the Project view?
Or do you create a validation scenario for that XML which validates its master XML file?

Regards,
Radu

Re: Get master file url through api

Posted: Mon Mar 31, 2014 12:28 pm
by Patrik
Hi Radu,

I'm adding a certain xml document to the Master Files folder - always a single one.

Background: My caching class needs to know the master file to cache the data of all includes files. With the cached data and access to it from schematron I can validate each xml file seperatley in a global context without having to validate the whole project (consisting of hundreds of files). Currently I'm assuming the master file has the same path as the project file (just with different file extension). I thought with the master file concept I could make this more flexible... - no real problem, though.

Regards,
Patrik

Re: Get master file url through api

Posted: Mon Mar 31, 2014 2:39 pm
by Radu
Hi Patrik,

Then we'll consider adding API for this in a future version (probably after 16.0 will be released).

Regards,
Radu

Re: Get master file url through api

Posted: Thu Oct 13, 2022 1:42 pm
by Radu
Hi,

As an update to this older thread, in Oxygen 25 we added this new API:
https://www.oxygenxml.com/InstData/Edit ... Iterator--

Regards,
Radu