# Get XML Layout File from Adapter

**URL:** <https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Application-Composer\
**Created:** [May 17, 2006, 11:58pm UTC](https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351 "2006-05-17T23:58:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantin](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@Konstantin](https://techcommunity.softwareag.com/u/Konstantin)\
**Post date:** [May 17, 2006, 11:58pm UTC](https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351/1 "2006-05-17T23:58:27Z")

</div>

Hi!  
I need to access the Layout File (xml) from my Adapter.  
Lets say I have a Layout A and when CAI processes it in runtime,  
I need to read through my Adapter certain XML values.

How is this possible?

I already tried:

Params.getApplicationResourcePath(…)

Is this the right way, because nothing returns…

thanks in advance!

---

<div class="post-metadata">

**Author:** ![Bjoern\_Mueller](https://avatars.discourse-cdn.com/v4/letter/b/e9bcb4/32.png) [@Bjoern\_Mueller](https://techcommunity.softwareag.com/u/Bjoern_Mueller)\
**Post date:** [May 18, 2006, 12:08am UTC](https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351/2 "2006-05-18T00:08:31Z")

</div>

…use com.softwareag.cis.server.Info.getXMLLayout(String project,  
String layout)

---

<div class="post-metadata">

**Author:** ![Konstantin](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@Konstantin](https://techcommunity.softwareag.com/u/Konstantin)\
**Post date:** [May 18, 2006, 12:11am UTC](https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351/3 "2006-05-18T00:11:59Z")

</div>

But normally an adapter should know these things…

Lets say you are inside the adapter and you dont know the project name and the layout name…  
somehow the adapter should know who called him, right?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:38pm UTC](https://techcommunity.softwareag.com/t/get-xml-layout-file-from-adapter/57351/4 "2021-04-02T14:38:34Z")

</div>


