Hi All,
I want to remove all XML nodes having specified attributes.
my XML:
I want an output like: '
Can any one of you please help me to get the javascript code?
I want to remove all XML nodes having specified attributes.
my XML:
Code:
var strText='<p>My First Line.<br /><span ignoreIn="true">Ignore in true.</span>My Second Line.<br /><span ignoreIn="false">Ignore <span ignoreIn="true">Ignore in true.</span>in false.</span>My Third Line.<br /><span ignoreIn="true">Ignore in true.</span>My Fourth Line.<br />My Last Line.</p>';
Code:
<p>My First Line.<br />My Second Line.<br /><span ignoreIn="false">Ignore in false.</span>My Third Line.<br />My Fourth Line.<br />My Last Line.</p>
Comment