Hi All,

I have a local Entry File XML named "LocalEntry1". I have also stored it in
registry.
My Local Entry File Looks like below:-

<?xml version="1.0" encoding="UTF-8"?>
<localEntry key="LocalEntry1" xmlns="http://ws.apache.org/ns/synapse";>
<Names>
<A>value</A>
<B>value</B>
<C>value</C>
<D>value</D>
<E>value</E>
<F>value</F>
</Names>
</localEntry>

When I am trying to fetch the whole local entry file via below code, I am
able to get the whole file as output:-
<property
expression="get-property('registry','conf:/CollectionTest/LocalEntry1.xml')"
name="entryFile" scope="default" type="STRING"/>
<log level="custom">
            <property name="NAME" expression="$ctx:entryFile"
scope="default" type="STRING"></property>
</log>

But when I try below code to fetch particular value, it shows blank:-
<log level="custom">
            <property expression="$ctx:entryFile//localEntry/Names/A"
name="NAME1" scope="default" type="STRING"/>
                <property
expression="$ctx:entryFile//localEntry/Names/A/text()" name="NAME2"
scope="default" type="STRING"/>
  </log>

Any help please here

Thank you,
Aman
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to