Solved

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

Posted on 2006-10-22
2
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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/…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

728 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