Results 1 to 2 of 2

Thread: Edit an xml document

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Location
    Prince Edward Island, Canada
    Posts
    1

    Edit an xml document

    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.
    Mariette Hachey

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Edit an xml document

    Welcome to VBF!

    In order to effectively read/write/modify and XML document you'll need to download MSXML4 from Microsoft (or you may already have MSXML2 or 3 on your PC). Once having done that you can search these forums for examples and we can also help you with specific questions. There is also XML help on the web.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width