【发布时间】:2013-04-05 13:53:17
【问题描述】:
我有一个输入 XML
<Request>
<Info>
<Country>US</Country>
<Part>A</Part>
</Info>
</Request>
我的输出应该是这样的
<Request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://hgkl.kj.com">
<Info>
<Country>US</Country>
<Part>A</Part>
</Info>
</Request>
请告诉我如何添加多个命名空间和一个默认命名空间,如上述 XML。
【问题讨论】:
标签: xml xslt xml-parsing