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
Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Update static table with two columns and multiple rows... 15 89
Using Classic ASP inside HTML pages 2 62
Writing comments on <p></P> or paragraph 2 19
Weighted Randomizing 6 30
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…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

856 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