Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Removing xml node with Javascript [Thread Next] Re: Removing xml node with JavascriptTo: NULL Date: 8/4/2004 11:28:00 AM Rob:
Here's a cut-n-paste from some of my JavaScript:
var objNode = xmlDoc.selectSingleNode("//FILTER[@Filter_ID='" + strFilter +
"']"); objNode.parentNode.removeChild(objNode);
http://tinyurl.com/53zd9
Ciao,
Dave
"Rob" <robl@d...> wrote in message
news:a3a95a0d.0408040700.75a9890e@p......
> Hi
> I am trying to remove a node from an xml file but am not being successful.
>
> My code is below:
> function removeItem(nodePosition){
> var rowNode = document.getElementById("row" + nodePosition);
> rowNode.removeNode(rowNode);
> Basket.firstChild.removeChild(Basket.firstChild.childNodes[nodePosition]);
>
> Can anyone tell me where my error is please
>
> TIA
> Rob
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
