Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

XML files - reading


2 replies to this topic

Ozone

Ozone
  • Full Members
  • 77 posts

Posted 12 December 2002 - 21:28

Does anyone know if it is possible to read data from an XML file using IS script? If not, could IS add this capability to IS pro as a new feature?

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 12 December 2002 - 21:49

I don't know if it's in there, but any feature request needs to be sent directly to InstallShield.  Posting it here is not sufficient as these forums are not run by InstallShield.
user posted image

guy

guy
  • Members
  • 19 posts

Posted 17 December 2002 - 18:00

Hi

I succeded to create a XML object and save it to a file using IS script but I do not succeed to read it.
the creating can be like this:
  set doc = CreateObject("MSXML.DOMDocument");    
   set x = doc.createNode(1, "DOC", "");
   doc.appendChild(x);
   
   set x1 = doc.createNode(1, "Value", "");
   set x2 = doc.createAttribute("name");
   x2.Text = "a";
   x1.Attributes.setNamedItem(x2);
   x.appendChild(x1);  
   doc.save("e:\\a.xml");

good luck

Guy