<!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>never mind, I got it :)</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=derek@eldan.com href="mailto:derek@eldan.com">Derek Akers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jdom-interest@jdom.org
href="mailto:jdom-interest@jdom.org">jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, January 26, 2001 5:43
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [jdom-interest] namespacing and
SAXBuilder</DIV>
<DIV><BR></DIV>
<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></BLOCKQUOTE></BODY></HTML>