Remove DTD and XMNS in xml file using XSLT

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,<br/>
<br/>
I want to DTD and XMLNS in xml file useing xslt.<br/>
<br/>
XMl Document:<br/>
<?xml version="1.0" encoding="utf-8"?><br/>
<!DOCTYPE Report SYSTEM "https://test.com/test/reports/dtd/tdr_1_11.dtd <br/>
<Report Name="Transaction Detail"<br/>
Version="1.11"<br/>
xmlns="https://test.com/test/reports/dtd/tdr_1_11.dtd"<br/>
AccountID="testaccount"<br/>
ReportStartDate="2012-11-21T07:00:00"<br/>
ReportEndDate="2012-11-22T07:00:00 <br/>
<Requests><br/>
</Requests><br/>
</Report><br/>
<br/>
<br/>
Result:<br/>
<br/>
<br/>
<?xml version="1.0" encoding="utf-8"?><br/>
<Report Name="Transaction Detail"<br/>
Version="1.11"<br/>
AccountID="testaccount"<br/>
ReportStartDate="2012-11-21T07:00:00"<br/>
ReportEndDate="2012-11-22T07:00:00 <br/>
<Requests><br/>
</Requests><br/>
</Report><br/>
<br/>
Can you please share the xslt for the above one.?<br/>

View the full article
 
Back
Top