473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

childNode(true) and subtree

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
2 1266
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520"...
0
by: muralidharan | last post by:
WebForm1.aspx Code: <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <ComponentArt:TreeView id="TreeView1" Height="520"...
6
by: Jan Krouwer | last post by:
I have a treeview which is populated from a relational database. In order to copy part of the tree, I need to add to the database the relationship of the part of the tree to be copied but with new...
1
by: Kristofer Andersson | last post by:
I have a service that returns XML in this format under the soap body: <AVAILABILITYReply> <wrappernode> <childnode></childnode> <childnode></childnode> <childnode></childnode> </wrappernode>...
0
by: Eric Hoch | last post by:
Hello, I'm writing a TypeConverter for a class which inherits arraylist, but deserializing it always results in an arraylist, which causes an InvalidCastException. If anyone can point out what...
8
by: Shawn B. | last post by:
Greetings, I'm creating a little program that acts as a glorified Registry explorer. The TreeView doesn't allow you to show a plus sign unless a node has child nodes, so I need to determine...
22
by: delraydog | last post by:
It's quite simple to walk to the DOM tree going forward however I can't figure out a nice clean way to walk the DOM tree in reverse. Checking previousSibling is not sufficient as the...
4
by: sirjohnofthewest | last post by:
If I possessed the power to sway the mind of every user in the world to delete all forms of Internet Explorer I would die a happy man. Hi guys, I frequently visit this site to get answers to my...
5
Sl1ver
by: Sl1ver | last post by:
Treeview has a function on "Afterselect" worked perfectly but when i implemented drag drop function on the treeview, it required a mousedown action. Now u have to click on the node and then click on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.