Child Nodes represents a node in a structured file like xml, html, json, etc.
Questions tagged [child-nodes]
127 questions
2
votes
2 answers
Add child node at the beginning of XML
I am trying to add a child node in the following XML. I am able to, but my issue is it adds it at the end. How am I able to add the node at the beginning between and ?
…

ShanayL
- 1,217
- 2
- 14
- 29
2
votes
1 answer
SAX parsing android : how to get child nodes
I want to get data from XML file :https://www.vietcombank.com.vn/exchangerates/ExrateXML.aspx
the error is i can get the last element USD and pass the others. Please help me
here is my all class:
Exrate.java
public class Exrate {
String…

Ben Pham
- 57
- 7
2
votes
4 answers
Modern, concise, vanilla JS check whether node has a direct child matching a selector
What's the modern, concise, and fast way to test whether a node has any child that matches a given selector?
By "concise" I mean something similar to jQuery or functional-style, such as avoiding loops. I know native selectors are getting more and…

hippietrail
- 15,848
- 18
- 99
- 158
2
votes
0 answers
How to use querySelectorAll to get direct children
I know you can do this:
var sel = document.querySelectorAll(".list > a");
but what if you have a selection already and you want to get every direct child?
var list = document.querySelector(".list"); //say you can't change this line
var sel =…

Vandervals
- 5,774
- 6
- 48
- 94
2
votes
1 answer
Get only child nodes of anchor (a) type
I have this code:
2
votes
3 answers
How to remove every text from a website with Javascript
I want to have a Javascript function that removes every text from a website. The background is that in order to compare the appearance of the rendered DOM in difference browsers, I need to eliminate obvious differences before. As font rendering is a…

Schnodderbalken
- 3,257
- 4
- 34
- 60
1
vote
1 answer
return the index of childnode when clicked
Here, I have parent div of class = "alphabets" and have child div's all with same class = "word"
abc
//1st child
def
//2nd child
ghi
//3rd…
Kondaveti Charan
- 115
- 8
1
vote
1 answer
Why doesn´t the childNodes work in my JavaScript code?
I just started programming and I wanted to test some of the basic things in JS. I wanted to try using childNodes (saw it in a tutorial). Does anyone know why it doesn't work?
function here() {
var x = document.body;
var y =…

BBA
- 25
- 4
1
vote
2 answers
How to use Perl LibXML to add a ChildNode where one is missing?
I am using libXML to update a batch of XML settings files. Here is an example of the section of xml I am trying to update:
HME Cloud User Email
I can properly update that section with the…

Taylor Stevens
- 81
- 5
1
vote
0 answers
SpriteKit childnode(withname: String) return nil
I have created a .sks file for back button. I want to use it in all my scenes. I try to load that back button on my GameScene file but I got "Unexpectedly found nil while unwrapping an Optional value" error. I already fill the name field of the back…

volkansahin
- 11
- 2
1
vote
0 answers
child templates in custom component v-data-table
I am creating a general component based on v-data-table. This component has templates that are displayed anywhere, such as: ..template v-slot:item.index="{ item }"> ....
The idea is to be able to pass custom templates as children of the component,…

diegoAuto
- 21
- 4
1
vote
2 answers
Beginner: TreeView with checkboxes and recursion in Winforms
first post and a new coder so bare with me if you need more info than I am giving. I am trying to create a treeview with checkboxes in a hierarchy (see pic). My issue is i want to create some sort of recursion which deselects and selects child nodes…

Breakwin
- 84
- 6
1
vote
3 answers
JS: Deleting multiple child nodes with for-loop?
I'd like to execute a function that iterates over the child nodes of an element and subsequently deletes each child node.
In my current setup, for some reason, only some of the child nodes get deleted, some don't. The function needs to run multiple…

JoSch
- 869
- 1
- 15
- 35
1
vote
2 answers
array of specific childnodes in javascript
var fieldsettags = document.getElementsByTagName('fieldset');
textareatags = new Array();
internalarray = new Array();
for (var x = 0; x < fieldsettags.length; x++) {
for (var y = 0; y < fieldsettags[x].childNodes.length; y++) {
if…

Sameep Kulkarni
- 11
- 3
1
vote
1 answer
VB. NET Add multiple ChildNodes in a Treeview
I have many records in a database and I need to populate my treeview dynamically like this: Below is just an example of what I need:
TreeView1.Nodes(a).ChildNodes.Add(New TreeNode("ChildNode " &…

Ecusad
- 13
- 6