Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-30-2003, 01:05 PM
Junior Member
 
Join Date: Jan 2003
Posts: 2
Default Reading in XML data using SWFKit

Has anyone done this? I'm trying to use the Microsoft.XMLDOM object (by using the ActiveXObject call). I'm not getting anything.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 02-01-2003, 08:01 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Reading in XML data using SWFKit

We made a sample and found it works fine:
Code:
var objDom = new ActiveXObject("Microsoft.XMLDOM");
var objRoot = objDom.createElement("rootElement");
objDom.appendChild(objRoot);

var objChild1 = objDom.createElement("childElement1");
objRoot.appendChild(objChild1);

var objChild2 = objDom.createElement("childElement2");
objRoot.appendChild(objChild2);

var objPI = objDom.createProcessingInstruction("xml","version='1.0'")
objDom.insertBefore(objPI, objDom.childNodes(0));
objDom.Save("c:\\MyXMLDoc.xml");
Output (c:\MyXMLDoc.xml):
Code:
<?xml version="1.0"?>
<rootElement><childElement1/><childElement2/></rootElement>
Has the MSXML object installed on your computer?
Code:
var objDom = new ActiveXObject("Microsoft.XMLDOM");
if (objDom == null)
{
   Dialogs.msgBox("MSXML not installed!");
}
Reply With Quote
  #3 (permalink)  
Old 02-02-2003, 08:18 PM
Junior Member
 
Join Date: Jan 2003
Posts: 2
Default Re: Reading in XML data using SWFKit

Thanks. MSXML is installed on my machine. I verified it in the registry. I finally got some code to work. It looks like the case sensitivity got me on that one. I am having trouble getting the 'innerText' property in the XML Dom to return anything. I'll try some other stuff on Monday and post my findings.
Thanks for the quick response!
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.