Ryan Alexander wrote:
> 
> I have a SOAP installation under J-Run.
> 
> I installed the Xerces parser version 1.2.3 as I understand that's the
> appropriate one to use.
> 
> I was testing it with just some XML handling and I noticed something
> really *weird*
> 
> It appears that if you put your values in the XML document in between
> the tags (as opposed to an attribute) it considers that text to be a
> child node of the named tag.
> 
> In other words where:
> 
> String title =
> tempE.getElementsByTagName("title").item(0).getNodeValue();
> 
> Would seem appropriate, instead:
> 
> String title =
> tempE.getElementsByTagName("title").item(0).getFirstChild().getNodeValue
> ();
> 
> Is required.
> 
> Could someone confirm that this is the case?
> 
> Would anyone know why it would behave this way?
> 
> -Ryan
> 

That is correct behavior according to the DOM interfaces.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to