<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I have an xml document that uses namespacing, but
an having problems referencing elements in the DOM. I am wondering if I
have to declare anywhere that the thing should be NameSpace Aware or
anything...? I keep getting a NullPointerException when I try to reference
the element's list of attributes thusly:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Element process =
((Element)childs.get(0)).getChild("Process");<BR> List proAts =
process.getAttributes();<BR> int numProats =
proAts.size();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The corresponding xml tag is <boo:Process
id="1"></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have tried changing the getChild call to
getChild("boo:Process"), on the off chance that that might work, but no luck so
far. could someone give me a hand here?</FONT></DIV></BODY></HTML>