R
Ron
I would like to write a small program to manipulate this XML:
http://www.keepitsimplekid.com/xml/Ad00304.xml
What I want the program to do.
it would look at all.xml documents in a directory for example
directory C:\XML\rename
A Rename button would be pressed on the form and the program would go
through all the XML documents, first rename the documents from
FILENAME.XML to FIRNAME.XML.BAK - I still want to keep the
FILENAME.XML document, because that is the one the manipulation will
take place on.
I then want to look at each .xml document and REPLACE the Untitled Ad
text on the fourth line with whatever is here:
- <Application_Info AI_TYPE="ETS_ADVERTISER">
<Ai_Item NAME="LEAF GUARD" />
So <Meta NAME="Untitled Ad" <--- that Untitled Ad text would now
become:
<Meta NAME="LEAF GUARD"
I then want to save the file. So the directory will now contain the
old file with Untitled Ad in it as the filename.xml.bak and then the
converted file as .xml
Also, there will be more than 1 xml doc in that directory, so this
needs to go through each one, rename and manipulate them.
how would I do this? I have no Idea how to even begin this.
http://www.keepitsimplekid.com/xml/Ad00304.xml
What I want the program to do.
it would look at all.xml documents in a directory for example
directory C:\XML\rename
A Rename button would be pressed on the form and the program would go
through all the XML documents, first rename the documents from
FILENAME.XML to FIRNAME.XML.BAK - I still want to keep the
FILENAME.XML document, because that is the one the manipulation will
take place on.
I then want to look at each .xml document and REPLACE the Untitled Ad
text on the fourth line with whatever is here:
- <Application_Info AI_TYPE="ETS_ADVERTISER">
<Ai_Item NAME="LEAF GUARD" />
So <Meta NAME="Untitled Ad" <--- that Untitled Ad text would now
become:
<Meta NAME="LEAF GUARD"
I then want to save the file. So the directory will now contain the
old file with Untitled Ad in it as the filename.xml.bak and then the
converted file as .xml
Also, there will be more than 1 xml doc in that directory, so this
needs to go through each one, rename and manipulate them.
how would I do this? I have no Idea how to even begin this.