apache / apache/hop

[Bug]: Transform Add XML remove namespace xmlns

Open
#4,931 1 comment 0 reactions 0 assignees View on GitHub
awaiting triage P3 Transforms
Dominant language
Java
Stars
1.5k
Forks
476
Avg merge
18h 32m
Merged PRs (30d)
216

Description

### Apache Hop version?

2.12

### Java version?

21

### Operating system

Windows

### What happened?

Hello guys,

I have a problem with a transform Add XML on Element Name field to set namespace xmlns.

I am migrate Hop version 2.8 to 2.12, and found this bug.

In first picture, i'm showing run result in hop 2.8, work perfect!
![Image](https://github.com/user-attachments/assets/a3b8c085-f0c7-452e-9634-227d084da4c1)

In second picture, replace field didn't work.
![Image](https://github.com/user-attachments/assets/91073aae-83a3-4a78-9fcb-b41b0512ed62)

But if rename value to another name if dont xmlns, works fine, like picture three.

![Image](https://github.com/user-attachments/assets/7769ba85-2c4f-466c-ab11-79c105be1224)

### Issue Priority

Priority: 3

### Issue Component

Component: Transforms

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Add XML transform in Hop 2.12 on Java 21 and Windows, using the Element Name field to replace or set the xmlns namespace; compare the result with Hop 2.8. Done means xmlns is preserved or updated as expected, while other element-name replacements continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
data-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.