Hi all,
Happy New Year to all of you ;)
again I stuck to work with XML-Files and cannot find any help in this Forum or Tech Board :(
I have an existing XML files which contains many Sections and Child Objects which have to be modified.
I have to
1) read value from specific Object (which I managed to work, but...)
2) write back a different Value
3) check for existing Child Object an create if it doesn't exist.
Any help is much apprecitated
Regards
Joerg
Perhaps take another look at the Tech Database. Just searching on 'XML' produces many hits. There are examples of using COM Automation's "Msxml2.DOMDocument.x.x" object, using the third party "DOM Extender", and using the dotNet Framwork's "System.Xml" assembly to parse and/or modify XML files. Of course, if you choose to role-your-own, WinBatch has numerous built-in file processing functions.
A few of the many examples:
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+Edit~an~Existing~XML~File.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/OLE~COM~ADO~CDO~ADSI~LDAP/OLE~with~XML+Edit~an~Existing~XML~File.txt)
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/_Third~Party~Extenders/DOM+DOM~Extender.txt
(http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WIL~Extenders/_Third~Party~Extenders/DOM+DOM~Extender.txt)
http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/dotNet/System_XML+ReadXmlFile~Sample.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/dotNet/System_XML+ReadXmlFile~Sample.txt)
Hi,
many thanks for guiding me to another direction ;-)
I start using XML Extender now and this works for my purposes to add/delete/modify nodes.
Regards
Joerg
Keep in mind that it does not handle Unicode data.
Jim