Thanks for your reply. It's true that I can use the Word Object library to access info in a document. There are different objects collection in Word Library like Application, Document, Selection, etc.
Actually, the problem that I'm facing is --- I have certain fragments (XML file contents) in a Word Document. I'm able to open those fragments in InfoPath 2003 and edit it. Now when I close the InfoPath window, the updates done to the fragments in the InfoPath window should show up in the Word Window. Now for that I need to know which fragment user had clicked, that is, I need some way of associating each fragment in the Word doc with the path of the XML file from where it came. I tried to find if there exist any collection which will allow me access to these fragments and also their properties but there ain't any such object in Word 2003 Object Model....That's the big problem(the association)....Anyway thank for ur reply...if u come across any object collection which can solve the above purpoae do let me know.
quote:Originally posted by bmains
You can use the Word object library to access information in a document, through the Document class. To retrieve the XML from the rest of the document you could then use Regular expressions to pull them out of the document text.
You may even see if you could save it as a text file and parse it that way, I don't know if that would be easier to do.