Attributes are not children of a node. You should use :

org.w3c.dom.Element.RemoveAttributeNode

Sebastien


Jean-Charles DUFOUR wrote:

> Hello,
>
> I need quick help !
>
> How can I suppress an attribute of a DOM Node ?
>
> Here my NODE : <FOO foo_attr="value"/> (it's a DOM Node)
>
> I use Xalan and xsl syntax to find the attribute like this :
>         Node foo_attr = Xpath.selectSingleNode(fooDOMNode, 
> "attribute::foo_attr");
>
> And the I do :
>         fooDOMNode.removeChild(foo_attr);
>
> But this last instruction throws an "org.w3c.dom.DOMException: DOM008 Not
> found"
>
> Please help me I just want to suppress the foo_attr of the FOO Node !!
>
>
> ______________________________________________________________________________
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to