My Sharp Notes
Logic is more important!!!
Friday, April 24, 2009
Find the Node having none attribute using C#
Today, I need to search node having none attributes from xml file.
For this, We need to use below XPath query in SelectNodes of the XMLDocument object.
XMLNodeList list = doc.SelectNodes(@"parenttag/child1/child11[not(@*)]");
returns the child11 having none attributes.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Vips Patel
Software Engineer
View my complete profile
Blog Archive
►
2010
(2)
►
June
(1)
►
February
(1)
▼
2009
(3)
►
July
(1)
▼
April
(2)
Find the Node having none attribute using C#
For ASP.NET, WebApplication to WebSite
No comments:
Post a Comment