This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<root> | |
<book>A Song of Ice and Fire</book> | |
<author>George R. R. Martin</author> | |
</root> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="xmlFile" expression="get-property('registry','gov:/test.xml')" scope="default" type="OM"></property> | |
<log level="custom"> | |
<property name="Book_Name" expression="$ctx:xmlFile//book"></property> | |
</log> | |
[2015-09-21 16:01:28,750] INFO - LogMediator Book_Name = A Song of Ice and Fire
Please comment below if you have any questions.
Related:
How to read a file from registry
How to read a registry property