I have a huge xml where I need to locate the amount to pay and corresponding the billID.

I just figured out how to select the correct amount (located 2 cells away from the cell with CellText = 'amount'). I can print this, and it works.

Now I also need to print the corresponding billID. How do I do that?

This is an example of the type of XML I am using:

```
<Section>
<Item>
    <TableRow>
        <Cell>
           <RowNo>4</RowNo>
           <CellColNo>1</CellColNo>
           <CellText>amount</CellText>
           <CellAttribute/>
        </Cell>
        <Cell>
           <RowNo>4</RowNo>
           <CellColNo>2</CellColNo>
           <CellText/>
           <CellAttribute/>
        </Cell>
        <Cell>
           <RowNo>4</RowNo>
           <CellColNo>3</CellColNo>
           <CellText>138</CellText>
           <CellAttribute/>
        </Cell>
    </TableRow>
</Item>
<Item>
    <BillID>123456</BillID>
</Item>
</Section>
<Section>
...
</Section>

```

this is my code, where I need to **add that the billID also should be printed**:

```
XPath xPath =  XPathFactory.newInstance().newXPath();
String exprString = "//TableRow/Cell[CellText='amount:']/following-sibling::cell[2]CellText/text()";
XPathExpression expr = xPath.compile(exprString);

    Object result = expr.evaluate(doc, XPathConstants.NODESET);
    NodeList nodes = (NodeList) result;
    for (int j = 0; j < nodes.getLength(); j++) {
        System.out.println(nodes.item(j).getNodeValue());
    }

```

(I know the XML doesnt make sense, its just to illustrate the format. There are as well several "Sections", so I need to make sure I select the right one!). Thanks in advance!