I need to create about 500 new xml files from old ones for a new .net client. I can use vbscript to open the old xml files but I'm having trouble parsing through the file to find the right attributes. The xml files are client created configuration files therefore, the client reads them well. I have tried the following to open the files and read the attributes:
Dim Root
set objXML = CreateObject("Microsoft.XMLDOM")
objXML.async = "false"
objXML.load("c:\Client Settings\ClientSettings_User.Name.xml")
Set root = objXml.documentElement
Set elm = objXml.getElementsByTagName("phonelistnotebooklastknownadminselected")
I' am only retrieving parent tags and not the child tags I'm looking for. I want retrieve the x number of multi values below for different directories to import to a new .net xml client file. Any ideas? thanks for any help.
<I3_XML_VALUE name="phonelistnotebooklastknownadminselected" display-name="PhoneListNotebookLastKnownAdminSelected" type="7">
<I3_XML_VALUE name="multi" val="15002|Outlook Contacts|Outlook Contacts" />
<I3_XML_VALUE name="multi" val="15002|IC Private Contacts|IC Private Contacts" />
<I3_XML_VALUE name="multi" val="15002|IC Public Contacts|IC Public Contacts" />
<I3_XML_VALUE name="multi" val="15000|Company Directory|Company Directory" />
Dim Root
set objXML = CreateObject("Microsoft.XMLDOM")
objXML.async = "false"
objXML.load("c:\Client Settings\ClientSettings_User.Name.xml")
Set root = objXml.documentElement
Set elm = objXml.getElementsByTagName("phonelistnotebooklastknownadminselected")
I' am only retrieving parent tags and not the child tags I'm looking for. I want retrieve the x number of multi values below for different directories to import to a new .net xml client file. Any ideas? thanks for any help.
<I3_XML_VALUE name="phonelistnotebooklastknownadminselected" display-name="PhoneListNotebookLastKnownAdminSelected" type="7">
<I3_XML_VALUE name="multi" val="15002|Outlook Contacts|Outlook Contacts" />
<I3_XML_VALUE name="multi" val="15002|IC Private Contacts|IC Private Contacts" />
<I3_XML_VALUE name="multi" val="15002|IC Public Contacts|IC Public Contacts" />
<I3_XML_VALUE name="multi" val="15000|Company Directory|Company Directory" />