Hi everyone,
got a problem. Need to ask in XML document if a nod has an attribute - if its declared. Is it possible? On some web I found "nod.HasAttribute" but it seems that is nod possible to use. Property missing.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Stepan PazderkaPosted Mar 21, 2010, 1:38 PM
Sam HobbsPosted Mar 21, 2010, 1:33 PM
Have you verified that the node you think is the node is actually the node with the attribute? Problems such as you are encontering are often the result of assumptions that are not valid; the node might be a different node and if so then that would explain why the attribute is found. Something else I might do for diagnostic purposes is to use MoveToNextAttribute() to list the attributers for the node; that might show the problem or whatever.