namespace as website in xpath

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.

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

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

Watch Now