I'm trying to find the most correct and efficient syntax to find nodes
with a particular attribute value and remove them from an xml document..
 
 
suppose my xml is :
 
<code>
<response>
  <status-code>0</status-code>
  <status-message><![CDATA[ The call was successful ]]></status-message>
  <recipients>
    <recipient id="5" firstName="John"
lastName="Smith">[EMAIL PROTECTED]</recipient>
    <recipient id="6" firstName="firstName"
lastName="lastName">[EMAIL PROTECTED]</recipient>
    <recipient id="23" firstName="grant"
lastName="davies">[EMAIL PROTECTED]</recipient>
    <recipient id="24" firstName="fool"
lastName="me">[EMAIL PROTECTED]</recipient>
    <recipient id="25" firstName="frick"
lastName="frack">[EMAIL PROTECTED]</recipient>
    <recipient id="26" firstName="grant"
lastName="davees">[EMAIL PROTECTED]</recipient>
  </recipients>
</response>
</code>

And I want to find recipients with an id of 6 and 23 and remove them
from the xml... What is the syntax for this?

I can find those nodes into an XMLList fine... Its removing them I'm
having fun with..

Cheers,
Grant
 

Reply via email to