cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a config file in xMII

Former Member
0 Kudos

Hi ,

In my scenario, I want to load a configuration file which contains all my configuration realated details -- location of file path which i have to load in my transaction for further usage.

This can be achieved using global variable concept of BLS but my requiremnet is like this then how can i proceede.

Thanks

Supriya.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Supriya

One way to achive this is to keep all your config information in one xml file, and load this file using xml Loader action Under Web action blocks.

Hope this helps

Thanks and regards

Rupesh Bajaj

Former Member
0 Kudos

Hi Rupesh,

Thx. I am using the xml file itself. I have a requirement in which i have to modify a praticular configurations when user requests.

Please provide any auggestions.

Thx.

Former Member
0 Kudos

Hi,

You can modify the calculation while in the link editor of XML saver/loader action block. but that too depends on the requirement.

One way is that you can just assign the input parameters of transaction to the output of the xmlloader result using an assignment block and later saving it with the same name using xmlsaver action block.

Regards,

Musarrat

Former Member
0 Kudos

Supriya,

Lets Say your xml is

<ABC>

<config>value1</config>

<config>value2</config>

</ABC>

and you need to change the value of config node to "newValue" from "value1",

Then load the xml file and assign that to some Local xml property say outPutXML.

create another local property with only the xpath , in this case it will be

"/ABC/config/"

Now, use the magic of Dynamic Link editor, i.e

outPutXML.{#xPath#} to change the value

Hope this helps

Rupesh Bajaj

Reward if solved the problem

Former Member
0 Kudos

Actually, the syntax is not:

outPutXML.{#xPath#}

...but rather...

Local.outPutXML{#xPath#}

Former Member
0 Kudos

Rick,

Thanks for the correction.

Supriya, Sorry for the msitake