Elements do not have node values. Elements can have children. For <tag>content</tag>, there is a <tag> element with (at least) one child node of type "text".
> -----Original Message----- > From: Cory Hubert [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 20, 2001 7:07 PM > To: [EMAIL PROTECTED] > Subject: RE: Problem with DOMParser > > > Hmmm. So what could be the problem. > > I check for the NodeType, it's and it's an Element. > Am I suppost to do something to the document since > it's InputSource is a > file? > > -----Original Message----- > From: Julian F. Reschke [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 20, 2001 6:59 AM > To: [EMAIL PROTECTED] > Subject: RE: Problem with DOMParser > > > Wrong. > > This will return the node value of the next sibling of <TagName>. > > > -----Original Message----- > > From: Ace Ace [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, February 20, 2001 3:50 PM > > To: [EMAIL PROTECTED] > > Subject: Sv: Problem with DOMParser > > > > > > Hi Cory, > > > > If your XML looks like this: > > <TagName>TextValue</TagName> > > > > and > > > > docElement.getChildNodes().item(i).getNodeName()); > > > > returns TagName > > > > then > > > > docElement.getChildNodes().item(i + 1).getNodeValue()); > > > > returns TextValue. > > > > This is the case for me. Dont really know why but someone else > > maybe can answer better than me on that. > > > > Hope this helps. > > > > // Claes > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ____________________________________ > > Gratis epost med TJOHOOMAIL > > http://www.tjohoo.se > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
