Page 1 of 1
how to remove an attribute from a xml node?
Posted: Sat Nov 16, 2019 12:05 am
by hover27
Hi,
I'm searching for a possibility to remove an attribut with scripting.
Does anyone knows how?
THX
hover
Re: how to remove an attribute from a xml node?
Posted: Sat Nov 16, 2019 8:45 am
by jan_suhr
XSLT
Re: how to remove an attribute from a xml node?
Posted: Mon Nov 18, 2019 10:23 am
by hover27
Thank you, that works.
Re: how to remove an attribute from a xml node?
Posted: Tue Nov 19, 2019 1:19 pm
by freddyp
This is from the documentation of the Element class:
removeAttribute( qualified-name : String, prefix-map : Map )
Removes the attribute with the specified qualified name. If the qualified name includes a prefix, it is resolved using the map in the second argument, otherwise the second argument may be null or omitted.
Re: how to remove an attribute from a xml node?
Posted: Tue Nov 19, 2019 1:19 pm
by freddyp
This is from the documentation of the Element class:
removeAttribute( qualified-name : String, prefix-map : Map )
Removes the attribute with the specified qualified name. If the qualified name includes a prefix, it is resolved using the map in the second argument, otherwise the second argument may be null or omitted.
Re: how to remove an attribute from a xml node?
Posted: Tue Nov 19, 2019 5:01 pm
by hover27
oh, that's new in Switch 2019.
thx