Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Remove DTD and XMNS in xml file using XSLT

$
0
0
Hi,

I want to DTD and XMLNS in xml file useing xslt.

XMl Document:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Report SYSTEM "https://test.com/test/reports/dtd/tdr_1_11.dtd">
<Report Name="Transaction Detail"
        Version="1.11"
        xmlns="https://test.com/test/reports/dtd/tdr_1_11.dtd"
        AccountID="testaccount"
        ReportStartDate="2012-11-21T07:00:00"
        ReportEndDate="2012-11-22T07:00:00">
    <Requests>
    </Requests>
</Report>


Result:


<?xml version="1.0" encoding="utf-8"?>
<Report Name="Transaction Detail"
        Version="1.11"
        AccountID="testaccount"
        ReportStartDate="2012-11-21T07:00:00"
        ReportEndDate="2012-11-22T07:00:00">
    <Requests>
    </Requests>
</Report>

Can you please share the xslt for the above one.?

Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>