Five Stars

namespace as website in xpath

Hello Talend-Community,

 

I have a question to chapter 09 in talend cookbook.

 

I want to add a child at xpath using a namespace as a website.

 

XMLUtils.addChildAtPath(customerXML, "/test:customer", row3.orderXML);

This code works fine! The namespace is test and the prefix is tns.

 

 

XMLUtils.addChildAtPath(customerXML, "/https://community.talend.com/:customer", row3.orderXML);

This code doesn't work. The namespace is  

https://community.talend.com/

and the prefix is tns.

 

 

 

Do you have ideas how to refer to websites (as namespace) in xpath?

 

regards,

 

Talenduser 2018.

 

P.S. The website is just used as an example.