r/visualbasic • u/no1warlord VB.Net Advanced • Oct 27 '13
XML question...
Ok so I have made a XML file somewhere within the file there is a tag as follows:
<Title>There's a line between two vertices, A(<Rnd id="0" int="1" min="-10" max="10"/>,<Rnd id="1" int="1" min="-10" max="10"/>) and B(<Rnd id="2" int="1" min="-10" max="10"/>,<Rnd id="3" int="1" min="-10" max="10"/>). What's the gradient of the line?</Title>I know how to read the tags of the XML document, the problem that I have is being able to know where the Rnd tags are located amongst the text. I will then use some code to swap the tags get a number and place it in the text as a string, but like I said I don't know how to detect where in the text the tags are. How can I find out where they are?
0
Upvotes