I am on my third week of learning VB and have no clue how to start my next task. I need to edit an xml file, by inserting a line of text (in a certain format) on a line above the first occurence of "</Attribute>". The position of this line will change everytime time the document is edited (gets longer). The text that is to be inserted is a user defined code that will come form a text box, that will have to be inserted in this format "<Attribute value="CATFIF"/>", where CATFIF is the user define code.

Anybody have an idea on where to start and what commands i should be using.