Login | |
|
 |
RE: HELP ME TO ADD A NEW RECORD TO XML FILE with VBscript? - 1/13/2006 7:19:23 AM
|
|
 |
|
| |
ebgreen
Posts: 5070
Score: 31
Joined: 7/12/2005
Status: online
|
Well if it is not just a copy and paste problem, then this line is invalid: fieldName.setAttributeNode attID fieldName.setAttributeNode attID1 It would need to be two lines or have a line seperator: fieldName.setAttributeNode attID fieldName.setAttributeNode attID1
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: HELP ME TO ADD A NEW RECORD TO XML FILE with VBscript? - 1/13/2006 7:36:35 AM
|
|
 |
|
| |
ebgreen
Posts: 5070
Score: 31
Joined: 7/12/2005
Status: online
|
Also I think you may need to a Server.MapPath when you save the XML file. Another syntax error is this line end if next which needs to be split: end if next
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: HELP ME TO ADD A NEW RECORD TO XML FILE with VBscript? - 1/13/2006 7:40:36 AM
|
|
 |
|
| |
ebgreen
Posts: 5070
Score: 31
Joined: 7/12/2005
Status: online
|
EDIT: Ignore this one....I found the right name attribute. The next thing I see is that the condition you check for is If x.getAttribute("name")="News". Well since none of your nodes have a "name" attribute that equals "News", then the new node will never be inserted.
< Message edited by ebgreen -- 1/13/2006 7:57:02 AM >
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
|
|