XML Node Removal By Name

I'm trying to remove a node by name. I can access the node by using the selectSingleNode method, but I'm not quite sure how to remove it from there. The only remove method I can see is: removeChild. So assuming I select the node I want, i would have to call ParentNode. But once i have the parent node, I know longer know the exact child that i wanted to delete.

So is there is a deletebyName or something similar that I'm missing? or can i get the position of the node i've selected in the node list? If i know where the child is located in the node list I can then call the parent and use the removechild method from there.

View Replies


ADVERTISEMENT

Node Inside A Xml Node

how do i create a new xmlnode inside a node i have folowing code :

Dim tmpElement As MSXML2.IXMLDOMElement
Dim nlItems As MSXML2.IXMLDOMNodeList
Dim tmpNode As MSXML2.IXMLDOMNode

Set nlItems = axResponse.responseXML.selectNodes("//item/data")
For Each tmpNode In nlItems
Set tmpElement = tmpNode'is it possible to wrtite som thing here to create a new node

View Replies View Related

How Can I Add A Child Node To XML Node

How can I add a child node to XML node "ItemID" below?

Dim oDOM : Set oDOM = Server.CreateObject("MSXML2.DOMDocument.3.0")
oDOM.LoadXML "<rss version=""2.0""></rss>"
AddElem oDOM.documentElement, "ItemID", "15314"

Function AddElem(roParent, rsName, rvntValue)
Set AddElem = roParent.ownerDocument.createElement(rsName)
roParent.appendChild AddElem
If Not IsNull(rvntValue) AddElem.Text = rvntValue
End Function

View Replies View Related

Removal Of Spacing

Im trying to extract data from a website, however after removing all of what i no longer need, it is somehow, littered with tab'd spaces, like the length of | | sometimes appears as a small box on notepad.

i've tried removing it using replace, but it doesn't like what im doing. Anyone have advice on how to remove said spacing?

View Replies View Related

Email Removal Page

I'm trying to create an email removal page, where recipients can go and get their emails off of our list.

View Replies View Related

IIS4 Application Variable Removal

Any way to do this from asp page in IIS4? Application.Contents.Remove is IIS 5+. Setting variable to empty string does not remove variable.

View Replies View Related

Excel Full Stop Removal

I have just got a datafeed and i'm trying to put it in an actinic website for a customer. I match every record eccept price feed Actinic says imported fields must not contain any decimal points i.e £1000.00 should be 100000 how do i do this in excel ? I can't see anyway of formatting it to match the requirements.

View Replies View Related

Read Xml Node Value

i am trying to read a nodes ( i dont know if i am right by
calling it node. see sample) value with asp.
xml page is very simple :

<?xml version="1.0" ?<response success="true" </response>

my code is this

Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.Open "GET",
"http://xml.my.net/tokencheck.asp?t="&token&"&u="&userid&"", False
xmlhttp.send()
Set xmlhttp=Nothing

how can i add xmldom and parse the result page so i can assign response's
value to a variable?

View Replies View Related

ASP & XML - Selecting Last Node??

I was wondering if anyone has a moment to look over some code I've written?

I'm involved in the maintenance of an old CMS system I wrote a number of years ago, when I was regularly coding in ASP. These days it takes a while to mobilise the grey matter when it comes to ASP.

Anyhow, basically I am trying to select a specific node and determine the id of the last child of the parent node.

At the moment, I am only returning the first childs id, despite my best efforts. Code:

View Replies View Related

Reading Xml File By Node Name

how can i read a xml file using the node item name.

one example:

i could use:

root.childNodes.item(0).childNodes.item(0).text

but instead of that, i want something like this:

root.childNodes.item("item_name").childNodes.item("sub_item_name").text

is it possible ? how can i do that ?

View Replies View Related

Parsing Xml Node Using IXMLDOMNodeList

Am trying to parse the following xml file using IXMLDOMNodeList of MSXML with this code snippet but it always retrieve ist fund value. Here is the code snippet and xml file Code:

View Replies View Related

Deleting A Node In An Xml File

I have a xml file with this structure: Code:

<online>
<user id="1">Alethesnake</user>
<user id="4">Goofy</user>
<user id="7">Donald duck</user>
</online>

Could you suggest me the best way to delete a node knowing its id (i.e. id=4)?

View Replies View Related

Create A Node Function In Pages?

I have a page that lists categories on the left, and I'd like to be able to click on one, and have a node pop out, revealing subcategories so users can navigate to them that way. How does one create a node function in ASP pages?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved