I have a xml tree that I want to browse
<?xml version="1.0" encoding="UTF-8"?>
<Ontology name="Ontology">
<DecisionMaker name="SalesManager">
<BusinessProcess name="Order" />
</DecisionMaker>
</Ontology>
but with this code
I can not access to some nodes such "BusinessProcess" in this exampleCode:List le=racine.getChildren();
ListIterator le1=le.listIterator();
while(le1.hasNext())
{
Element f=(Element) le1.next();
System.out.println("f"+f.getName());
String name=f.getAttributeValue("name");
System.out.println("name"+name);
}
and i have as result:
fDecisionMaker
nSalesManager
when i added to my code after "System.out.println("name"+name);"
i have this error "The Content already has an existing parent "DecisionMaker""Code:List h=f.getChildren();
ListIterator a1=h.listIterator();
while(a1.hasNext())
{
Element e=(Element) a1.next();
le1.add(e);
}
i don't know what i do?please help me

