Click here to Skip to main content
15,916,692 members
Home / Discussions / Web Development
   

Web Development

 
QuestionCant Create File??? Pin
Daron Tan1-Sep-03 6:28
Daron Tan1-Sep-03 6:28 
AnswerRe: Cant Create File??? Pin
theJazzyBrain2-Sep-03 4:36
theJazzyBrain2-Sep-03 4:36 
AnswerRe: Cant Create File??? Pin
Hesham Amin2-Sep-03 6:39
Hesham Amin2-Sep-03 6:39 
GeneralRe: Cant Create File??? Pin
Daron Tan3-Sep-03 6:03
Daron Tan3-Sep-03 6:03 
Generaljavascript: string confirmation Pin
Smiler11-Sep-03 0:29
Smiler11-Sep-03 0:29 
GeneralRe: javascript string confirmation Pin
SimonS1-Sep-03 5:19
SimonS1-Sep-03 5:19 
GeneralRe: javascript string confirmation Pin
Smiler11-Sep-03 7:42
Smiler11-Sep-03 7:42 
QuestionDelete item from xml??? Pin
Daron Tan31-Aug-03 6:53
Daron Tan31-Aug-03 6:53 
Please tell me wat's wrong with the code below
I'd try both way in the asp file to delete the childnode in xml but it couldn't work

*** News.xml ***
-------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v4.2 -->
<News>
<Article>
<Head>Test 1</Head>
<Des>Testing 123</Des>
<Date>1/9/2003</Date>
</Article>

<Article>
<Head>Test 2</Head>
<Des>Testing 321</Des>
<Date>1/9/2003</Date>
</Article>
</News>
-------------------------------------------------


*** file.asp ***
-------------------------------------------------
<%
If Request.QueryString("Action")="Delete" Then
Dim strID
Dim objXML
Dim subArticle
Dim objLst
Dim subLst

strID = CInt(Request.Form("selectAnnouncement"))

Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.Load(Server.MapPath("News.xml"))

**** 01 ****
Set objLst = objXML.getElementsByTagName("Article")
Set subLst = objLst.item(strID)
objXML.documentElement.removeChild subLst

**** 02 ****
'Set subArticle = objXML.documentElement.childNodes(strID)
'objXML.documentElement.removeChild (subArticle)

Set childNode = Nothing
End If
%>
-------------------------------------------------
AnswerRe: Delete item from xml??? Pin
Gilles B.2-Sep-03 12:46
sussGilles B.2-Sep-03 12:46 
GeneralRe: Delete item from xml??? Pin
Daron Tan3-Sep-03 6:02
Daron Tan3-Sep-03 6:02 
GeneralHit Counter Component Pin
Mazdak30-Aug-03 11:29
Mazdak30-Aug-03 11:29 
GeneralPERL: use strict problem Pin
brianwelsch30-Aug-03 5:18
brianwelsch30-Aug-03 5:18 
GeneralRe: PERL: use strict problem -GOT IT Pin
brianwelsch30-Aug-03 9:59
brianwelsch30-Aug-03 9:59 
Generalsetting print options in javascript Pin
webProgrammer28-Aug-03 9:57
webProgrammer28-Aug-03 9:57 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 4:45
Diederik de Haas5-Sep-03 4:45 
GeneralRe: setting print options in javascript Pin
webProgrammer5-Sep-03 6:05
webProgrammer5-Sep-03 6:05 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 12:12
Diederik de Haas5-Sep-03 12:12 
GeneralRe: setting print options in javascript Pin
webProgrammer5-Sep-03 12:30
webProgrammer5-Sep-03 12:30 
GeneralRe: setting print options in javascript Pin
Diederik de Haas5-Sep-03 13:25
Diederik de Haas5-Sep-03 13:25 
GeneralGetting Server Drive Space Info Pin
Nino_127-Aug-03 10:11
Nino_127-Aug-03 10:11 
QuestionHow to get response after posting form data Pin
haritadala27-Aug-03 7:59
haritadala27-Aug-03 7:59 
AnswerRe: How to get response after posting form data Pin
brianwelsch31-Aug-03 3:38
brianwelsch31-Aug-03 3:38 
GeneralRe: How to get response after posting form data Pin
haritadala1-Sep-03 3:51
haritadala1-Sep-03 3:51 
GeneralRe: How to get response after posting form data Pin
brianwelsch2-Sep-03 13:57
brianwelsch2-Sep-03 13:57 
Generalcreate a pdf document with ASP Pin
Jerome Conus26-Aug-03 19:56
Jerome Conus26-Aug-03 19:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.