Further to my previous post I can confirm that the <title> is being returned
as a node type element which is why im getting null value.

My next question is how do I convert this to a Text node so I can get the
contents with getNodeValue ?

Should I prepare the xml document in a special way ? adding a DTD ?

Thanks in advance,

Nic

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Nic
Jackson
Sent: 19 May 2002 19:34
To: [EMAIL PROTECTED]
Subject: Problems getting a node value


Hi,

Im trying to get the value of an XML node, I have the following xml
document.

<root xmlns:dt="urn:schemas-microsoft-com:datatypes">
<title>aaaaaaaaaaaa</title>
        <date>19/05/2002 11:34:17</date>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to