Solved

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

Posted on 2006-10-22
2
505 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
A short film showing how OnPage and Connectwise integration works.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 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

14 Experts available now in Live!

Get 1:1 Help Now