Skip to content
This repository has been archived by the owner on Apr 4, 2021. It is now read-only.

Preserve self-closing tags as is #21

Open
suntong opened this issue Feb 19, 2021 · 0 comments
Open

Preserve self-closing tags as is #21

suntong opened this issue Feb 19, 2021 · 0 comments

Comments

@suntong
Copy link

suntong commented Feb 19, 2021

Following up with #7

goxpath ... reads and writes XML as it wasn't meant for changing the tree.

I found that goxpath.Marshal will change the self-closing tags like <test /> into a pair <test></test>.

Is there any way I can preserve self-closing tags as is?

In a typical jmx file, there are lots of <hashTree /> nodes (or <collectionProp name="HeaderManager.headers"/> etc), and I want to preserve them as-is, after processed/output by goxpath.

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant