== Unexpected TEXT_NODE, please HELP!!! ==
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   joey_corleon
Posted On:   Saturday, January 18, 2003 10:33 AM

Hi, I am just starting with XML, so sorry if my question sounds stupid: I am doing some sort of object-mapping in JAVA. I was thinking that storing the definition of my objects to be mapped within an XML file would be ideal. I use Xerces DOM. My problem is that extracting the information from the XML file I have created, I was expeting to find ONLY nodes of type "ELEMENT_NODE" and "ATTRIBUTE_NODE" - I however get also some "TEXT_NODE" :o( Can anyone explain to me what "TEXT_NODE" are and why I got them within my document??? Many thanks!    More>>

Hi,


I am just starting with XML, so sorry if my question sounds stupid:


I am doing some sort of object-mapping in JAVA.

I was thinking that storing the definition of my objects to be mapped within an XML file would be ideal.

I use Xerces DOM.


My problem is that extracting the information from the XML file I have created, I was expeting to find ONLY nodes of type "ELEMENT_NODE" and "ATTRIBUTE_NODE" - I however get also some "TEXT_NODE" :o( Can anyone explain to me what "TEXT_NODE" are and why I got them within my document???



Many thanks!

   <<Less

Re: == Unexpected TEXT_NODE, please HELP!!! ==

Posted By:   Roseanne_Zhang  
Posted On:   Sunday, January 19, 2003 07:38 AM

TEXT_NODEs are the text you put between tags in Your XML.

http://xml.apache.org/xalan-j/apidocs/org/w3c/dom/Node.html#TEXT_NODE
About | Sitemap | Contact