Hi all ,
"How can we select all the nodes which does not have the specified list of attributes'
Eg: i have tags say <div><p> and <img>
<div> and <p> tag can have the following attributes
I tried htmldoc.DocumentNode.SelectNodes("//*[not(@id | @styleName | @typeName |@source | @alt)]");
but it is not working as per my need?
Any help will be appriciated!
"How can we select all the nodes which does not have the specified list of attributes'
OR in other words i can say
"How can i remove the unwanted attributesEg: i have tags say <div><p> and <img>
<div> and <p> tag can have the following attributes
1)id
2)styleName
3)typeName
and <img> can have the follwoing 1)source
2)alt
3)id
4)typeName
5)styleName
How can i remove if there are any other attributes?I tried htmldoc.DocumentNode.SelectNodes("//*[not(@id | @styleName | @typeName |@source | @alt)]");
but it is not working as per my need?
Any help will be appriciated!