I have an xml where I'm making some changes and want to add an attribute to the root tag with xmlns prefix. Unable to do it.
Input xml:
<?xml version="1.0" encoding="UTF-8"?>
<Data xmi:version="2.0"
        xmlns:xmi="http://www.omg.org/XMI"
        xmlns:ComIbmCompute.msgnode="ComIbmCompute.msgnode"
        xmlns:utility="http://www.ibm.com/wbi/2005/eflow_utility">
        <eClassifiers xmi:type="eflow:FCMComposite" name="FCMComposite_1" nodeLayoutStyle="RECTANGLE">
            <eSuperTypes href="http://www.ibm.com/wbi/2005/eflow#//FCMBlock"/>
            
            <stickyBoard/>
        </eClassifiers>
</Data>
Need to add new attribute:
xmlns:UDP_Properties_getUDPProperties.subflow="UDP_Properties/getUDPProperties.subflow".
I don't have an xmlns defined in the xml to set an attribute with xmlns prefix
Expected output:
<?xml version="1.0" encoding="UTF-8"?>
<Data xmi:version="2.0"
        xmlns:xmi="http://www.omg.org/XMI"
        xmlns:ComIbmCompute.msgnode="ComIbmCompute.msgnode"
        xmlns:UDP_Properties_getUDPProperties.subflow="UDP_Properties/getUDPProperties.subflow"
        xmlns:utility="http://www.ibm.com/wbi/2005/eflow_utility">
        <eClassifiers xmi:type="eflow:FCMComposite" name="FCMComposite_1" nodeLayoutStyle="RECTANGLE">
            <eSuperTypes href="http://www.ibm.com/wbi/2005/eflow#//FCMBlock"/>
            
            <stickyBoard/>
        </eClassifiers>
</Data>