Salve
sto cercando dilegger con jdom e jsp il seguente output ottenuto dall'interrogazione di un web service:
<orderList><order>
<OrderNumber>10001</OrderNumber><OrderType>A</OrderType>
<ProductList><product>
<ProductCode>000001</ProductCode>
</product></ProductList>
</order></orderList>

soltanto che OrderNumber e OrderType riesco a leggerli
mentre ProductCode non riesco a intercettarlo il codice da me impostato è:

<%
risposta= variabile contenente la stringa di risposta
Document document = builder.build(new ByteArrayInputStream(risposta.getBytes()));
Element root = document.getRootElement();

List rows = root.getChildren("order");



for( Iterator i=rows.iterator(); i.hasNext(); ) {

Element book = ( Element )i.next();

%>


<%=book.getChildTextTrim( "OrderNumber" )%></td><td align="center"><%=book.getChildTextTrim( "OrderType" )%></td></p>

<%



}

%>
come posso fare ho provato anche con cicli annidati ma niente