From: <ddk...@ki...> - 2004-08-02 14:03:12
|
It will return "foo" only if you have a DomNode representing the "foo" character data. This includes the DomCharacterData class and the DomText class. All other HtmlElement objects will return null, i.e., if you had an object representing "tag". Dave On Sun, Aug 01, 2004 at 10:55:22PM -0700, Jeff Wong wrote: > What does DomNode.getNodeValue() do? Does that return whatever text is > enclosed by the tag? > > i.e. on <tag>foo</tag> it returns "foo"? |