Hi Thusitha,

I already tried that, but negative.

On Mon, Mar 7, 2016 at 11:59 AM, Thusitha Thilina Dayaratne <
[email protected]> wrote:

> Hi Udara,
>
> Did you tried replace the space with "_x0020_"? according to the [1] it
> seems work for spaces
> [1] - 
> *http://users.jackrabbit.apache.narkive.com/r9aFPfiI/xpath-query-with-space-in-node-name
> <http://users.jackrabbit.apache.narkive.com/r9aFPfiI/xpath-query-with-space-in-node-name>*
>
> Thanks
> On Mon, Mar 7, 2016 at 11:43 AM, Udara Liyanage <[email protected]> wrote:
>
>> Hi,
>>
>> I am trying to fetch an property value from a json payload similar to
>> below.
>> {
>>             "Department": "ABC",
>>             "Employee Id": "123",
>>             "Work Email": "[email protected]"
>>         },
>>
>> I could extract Department value by below xpath expression.
>>
>> <property name="test" expression="//Department'"/>
>>
>> However when I found difficulties when the property name contains an
>> space in middle. I tried few options which were not successful.  What is
>> the correct way to escape space character.
>>
>> <property name="test" expression="//'Employee${nbsp}Id'"/>
>>
>> <property name="test" expression="//'Employee&#x20Id'"/>
>>
>> --
>>
>> Udara Liyanage
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> web: http://udaraliyanage.wordpress.com
>> phone: +94 71 443 6897
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thusitha Dayaratne
> Software Engineer
> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>
> Mobile  +94712756809
> Blog      alokayasoya.blogspot.com
> About    http://about.me/thusithathilina
>
>


-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to