You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2017-03-29 13:44:58

Linge
Member
14 posts

Linge said:

[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.




mini_blob_20170329-0540.pngmini_blob_20170329-0541.png

/Paul

Offline

#2 2017-03-30 06:48:33

Linge
Member
14 posts

Linge said:

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

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy