Solved

XML Question - having problem with innertext command (Classic ASP, DOM)

Posted on 2006-10-22
2
501 Views
Last Modified: 2012-08-14
I am getting an error when using the innertext command.  I have a simple classic ASP program that creates an XML file and wanted to use the innertext command but I get an error when running.  Is this not supported in classic ASP or is this broswer setting problem?
 
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method: 'innerText'
/Apogee/residential/account_history2.asp, line 325

my code:
<%
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
   If Request.Form("Apogee") = "Apogee" then

 dim oXML       
 dim strFilename,strXMLFile
 dim bitFileExists
 dim intCurrentRecord
 dim tmpChildnodes
 dim oXMLRec
 dim oAtt
 dim oXMLData
 dim oChild
 dim oFSO
 strFilename = "Apogee10.xml"  
 strXMLFile=server.mapPath(strFilename)  
 
 Set oFSO = Server.CreateObject("Scripting.FilesystemObject")

 ' check file exists
 bitFileExists = oFSO.FileExists(strXMLFile)  
 
 if bitFileExists then
    oFSO.DeleteFile(strXMLFile)
  end if  
 Set oXML = Server.CreateObject("Microsoft.XMLDOM")  
 oXML.appendChild(oXML.createProcessingInstruction("xml","version=""1.0"""))  
 Set oChild = oXML.appendChild(oXML.createElement("BillingData"))
 oChild.setAttribute "xmlns:xsd", "http://www.w3.org/2001/XMLSchema"
 oChild.setAttribute "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"
 oChild.setAttribute "xmlns", "http://apogee.net/WebService"
 intCurrentRecord = 0  
0
Comment
Question by:Hojoformo
2 Comments
 
LVL 31

Expert Comment

by:alorentz
ID: 17786113
There is no "innerText" in the code you posted....

0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 17786656
>> Is this not supported in classic ASP or is this broswer setting problem?<<
In the MSXML object model there is no InnerText, you are thinking of .NET
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now