Element Search By Local Name

Uiop

New member
Joined
Mar 31, 2007
Messages
2
Programming Experience
1-3
How would I return an element from a potentially very large XML file via its local name? In this circumstance, using a loop is not possible.

Here's a snippet from the XML file:
VB.NET:
<Root>
<Element xmlns='[SHA512 hashed string]'>[Lots of text.]</Element>
<Element xmlns='[SHA512 hashed string]'>[Lots of text.]</Element>
[...]
</Root>

Any help would be greatly appreciated!

EDIT: I'm not sure if I'm going about this whole thing the right way. Basically, I need to create, read and update the innerText of elements. I am trying to use the XMLDocument class to do this. I would name each element uniquely, but certain characters included in a SHA512 hash cannot be included in an element's name. Also, how would I create an element with an attribute (see the example below)?
VB.NET:
<Root>
<Element Attribute='text'>text</Element>
</Root>
As you can probably tell, I'm not very experienced with XML...
 
Last edited:
Back
Top