I have the following XML:

```
<yweather:condition text="Fair" code="34" temp="21">

```

and Java code:

```
NodeList titleList = e.getElementsByTagName("yweather");
Element titleElem = (Element) titleList.item(0);
Node titleNode = titleElem.getChildNodes().item(0);

```

I am able to read other nodes but not the one with attributes. How do I get out the "temp" attribute?