By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,617 Members | 1,600 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,617 IT Pros & Developers. It's quick & easy.

childNode(true) and subtree

P: n/a
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

Apr 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

an********@gmail.com wrote:
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


Apr 16 '06 #2

P: n/a
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?
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Apr 17 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.