childNode(true) and subtree

A

anupamjain

I have gone through many threads on this topic, but am still clueless
about the solution of my problem.

I am using :

childNodesBuffer = currentchildelem.cloneNode(true).getChildNodes();

where currentchildelem is an Element
childNodesBuffer is a NodeList

currentchildelem is :

<td>
<table>
<tr>.....</tr>
<tr>...</tr>
</table>
</td>

My problem is the node 'table' is not being put into the node list.
But if I have only text node like

<td>
sometext
</td>

Then it wors perfectly fine.

Any ideas for why is this happening ? (Even when I am doing a 'deep'
clone)

I am using Xerces-J parser and parsing XHTML.

Thanks in advance,
Anupam
 
A

anupamjain

i am still clueless about this. It has become a roadblock and is not
allowing me to go ahead. Any ideas of any kind from anybody?

Anupam
 
J

Joe Kesselman

From what little you've said, I don't see anything wrong. It sounds
like your problem may be how you're looking at the NodeList rather than
how you're setting it. Can you give us a short (10-line or so) test
program which demonstrates the problem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top