[Home] [By Thread] [By Date] [Recent Entries]

Subject: Rename element
From: "shailesh" <shailesh@xxxxxxxxxxxx>
Date: Fri, 4 Nov 2005 18:40:38 +0530
Hi,

my input xml as:

<sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="Test1.xsd">
<sample1>
<p>ABCDEFGHIJKLMNOP<p>
<script lang="enu"/>
<script lang="enu1"/>
</sample1>
</sample>

Output should be:

<test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="Test1.xsd">
<sample1>
<p>ABCDEFGHIJKLMNOP<p>
<scriptin lang="enu"/>
<scriptin lang="enu1"/>
</sample1>
<test>

How do i change script to scriptin element.

Thanks,
Shailesh

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member