Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

809 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