hello,
i am actually a php developer and i am new to java
i think i have a pretty easy question.
How can i do this exactly in java ?
$node is an xml node here. In my java code i have a root in Element type
it will be something like i guess
i am actually a php developer and i am new to java
i think i have a pretty easy question.
How can i do this exactly in java ?
Code:
foreach ($rootnode->children() as $child)
{
//some code here
}
it will be something like i guess
Code:
for(Element node : rootnode.getchildren()) //rootnode.getchildren should return the child nodes of rood node in type Element
{
// some code here
}
Comment