0
我有下面的xml文件,這是來自我的供應商。忽略節點使用XSLT
<?xml version="1.0" encoding="UTF-8"?>
<nm:MT_employee xmlns:nm="http://firstscenario.com"xmlns:tl="http://secondscenario.com">
<EMployeeDetails>
<Name>Janardhan</Name>
<id>1234</id>
<Address>India</Address>
</EMployeeDetails>
<tl:Extension>
<tl:Number>5678</tl:Number>
<tl:Salary>2345678</tl:Salary>
</tl:Extension>
</nm:MT_employee>
在上面的XML我想忽略整個TL:擴展節點。最終輸出應該如下
<?xml version="1.0" encoding="UTF-8"?>
<nm:MT_employee xmlns:nm="http://firstscenario.com"xmlns:tl="http://secondscenario.com">
<EMployeeDetails>
<Name>Janardhan</Name>
<id>1234</id>
<Address>India</Address>
</EMployeeDetails>
</nm:MT_employee>
我試着用不同的XSLT代碼,但它不工作。你能建議我怎麼能做到這一點?
問候, Janardhan
您可以編輯您的問題,以顯示你已經嘗試了最新的XSLT那就是「不工作」?如果你說爲什麼它不起作用(也就是說你得到一個錯誤,或者你得到的結果不是你所期望的),它也會有所幫助。謝謝 –