A
A
Alexander Ivanov2015-10-28 13:25:37
XSL & XSLT
Alexander Ivanov, 2015-10-28 13:25:37

How to remove xmlns in nodes and put them in the root node?

Available

<?xml version="1.0" encoding="UTF-8"?>
<app:ObjectSMO xmlns:app="http://site.ru/xml/Application">
    <app:Message>
        <com:MessageID xmlns:com="http://site.ru/xml/Common">888</com:MessageID>
    </app:Message>
....
</app:ObjectSMO>

Need
<?xml version="1.0" encoding="UTF-8"?>
<app:ObjectSMO xmlns:app="http://site.ru/xml/Application"  xmlns:com="http://site.ru/xml/Common">
    <app:Message>
        <com:MessageID>888</com:MessageID>
    </app:Message>
....
</app:ObjectSMO>

Preferably applying xslt transformation

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question