Hi,

Text nodes do not have children.  In your example, the "Child" node's
parent is "Parent", which is an Element node.

There are no RFCs to examine to figure this out -- just look at the DOM
recommendation:

   http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-1590626202

Dave



|---------+----------------------------->
|         |           "Fribault, Arnaud"|
|         |           <[EMAIL PROTECTED]|
|         |           enesys.com>       |
|         |                             |
|         |           06/18/2004 08:29  |
|         |           AM                |
|         |           Please respond to |
|         |           xerces-c-dev      |
|---------+----------------------------->
  
>----------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                    |
  |        To:      <[EMAIL PROTECTED]>                                                
                                          |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                               
                                                    |
  |        Subject: DOMText & appendChild                                              
                                                    |
  
>----------------------------------------------------------------------------------------------------------------------------------------|



Hi,

DOMText does not implement the DOMNodeImpl::appendChild method. I look
through the RFCs and cannot find any reason why.
For instance:

<Parent>text Child<Child/><Parent/>

will be parsed with no pb, but I can't create such an XML with the current
DOM implementation.

Am I missing something here ?

Thx,

Arnaud F.

---------------------------------------------------------------------
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]

Reply via email to