Questions tagged [nodechildren]
12 questions
4
votes
1 answer
Iterate through text node and element node
I used element.children to iterate through element nodes and childNodes for text node.
How can I iterate both text node and element node?
let children = this.element.children;
for (let i = 0; i < children.length; i++) {
// do something with…

asv
- 3,332
- 7
- 24
- 47
2
votes
1 answer
Groovy XmlSlurper get value out of NodeChildren
I'm parsing HTML and trying to get full / not parsed value out of one particular node.
HTML example:
Hello
World
!
…World
!

MeIr
- 7,236
- 6
- 47
- 80
1
vote
2 answers
given an array representing a hierachy, output data into a tree form in JS
Given a data file which has an array representing a hierarchy. Create a tree data structure by writing a script in Javascript. Output the data in tree form:
Data file:
["transportation.cars.Mazda",
"transportation.cars.Honda",
…

user21
- 1,261
- 5
- 20
- 41
1
vote
1 answer
How programmatically to know if node of treeview has children (kendoui treeview for angular)?
Please, let me know in what way we can programmatically know if node in kendo treeview structure has childrens ?
Need to apply corresponding class for nodes which has children...
Thank you !

user2542456
- 81
- 2
- 11
1
vote
1 answer
get_children not working. get_descendants does. But i can't use that
I am currently working on the navbar of a project with Django-cms. I am fairly new to this framework and language, so sorry if this is a stupid question.
This has double dropdowns, which respond to user changes in the Django-cms admin interface.…

Massi Gest
- 111
- 4
0
votes
2 answers
Get the child node data from Json File
I got a list from JSON file, but how can I get the username and result from each result using Python?
Json File
{
"Users" : {
"abcde" : {
"email" : "123@gmail.com",
"gender" : "Male",
"password" : "123",
"result" :…

JsBoon
- 45
- 4
0
votes
1 answer
Run jobs on FCFS basis in Nodejs from a database
I am developing a NodeJS application wherein a user can schedule a job (CPU intensive) to be run. I am keeping the event loop free and want to run the job in a separate process. When the user submits the job, I make an entry in the database…

Sharan V K
- 171
- 1
- 7
0
votes
1 answer
html javascript node.children seems to be a pointer
While writing some svg code I came across somthing that surprised me.
In let children = node.children the variable children - seems to act as a pointer to the node's childrens list and not a variable that stores the list of children at the time it…
user8076620
0
votes
0 answers
XML document unit testing! .net c#
I've got a problem with XML unit Testing.
Basically the problem is that there are 2 identical tags under same xpath, and I don't really know how exactly I should compare all of the children inside
...aperson...
.../aperson...
if there is…
0
votes
1 answer
changing the position of all childs of a node except the parent
I have a main node and it has 5 childs.
I want to change the position.y of the 5 childs without changing the position.y of the main node.
is there a way to do this?
maybe something like:
for children in mainnode.children{
children.position.y =…

sdd
- 889
- 8
- 29
-1
votes
1 answer
Python: create tree structure from given array/list
I ended up into a problem.
Let's say i have a given array, or 4 separate lists( the columns )
P1 L1 V1 O1
P1 L1 V1 O2
P1 L1 V2 O1
P1 L1 V3 O3
P2 L1 V2 O1
P2 L2 V1 O2
P2 L3 V4 O2
I would like to transform this into a python tree…

Andrea T
- 15
- 5
-1
votes
2 answers
How to change element's specific children attributes and content after cloning
I've been reading several questions that appear to be similar but didn't find one that resolve my issue or that the suggested solution solved my problem
I have the following html:
…

Kukula Mula
- 1,788
- 4
- 19
- 38