[resolved] csetheader and namespace?

Highlighted
Five Stars

[resolved] csetheader and namespace?

I have a route that gives me a message in xml with namespace
i want to extract data from the body with csetheader and xpath
in csetheader has a checkbox "add namespace" where i should type Prefix and URI 
In *Note the text is xpath Language, the Namespaces will be used automatically but i cant find an example on how to use it
i have an xml file wich start with
<entry xmlns="http://www.w3.org/2005/Atom">
<category term="http://url/folder" label="Event-typ"/>
...
</entry>
I im trying to read "http://url/folder" and am using the xpath "/entry/category/@term" and it dosnt work with namespace
i dont know how to type in "Add namespace" Prefix and URI to make it work
If i remove the namespace
<entry>
<category term="http://url/folder" label="Event-typ"/>
...
</entry>
and try with the same xpath it will work.



/Paul

Accepted Solutions
Five Stars

Re: [resolved] csetheader and namespace?

Found out the solution in prefix i typed "a" and in schema "http://www.w3.org/2005/Atom"
in the xpath i need to type "/a:entry/a:category/@term"
/Paul

All Replies
Five Stars

Re: [resolved] csetheader and namespace?

Found out the solution in prefix i typed "a" and in schema "http://www.w3.org/2005/Atom"
in the xpath i need to type "/a:entry/a:category/@term"
/Paul

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read