472,139 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How do I create a new Node using pulldom?


I'm using xml.dom.pulldom to parse through an XML file. I use
expandNode() to scrutinize certain blocks of it that I'm interested
in.
Once I find a block of XML in the input file that I'm interested in, I
need to add my own block <MyTag>.....</MyTagto the pulldom tree I'm
building in memory.

The documentation on PullDom is worse than atrocious. It is simply non-
existant. I can't even find a simple explanation of what the functions
are named and what arguments they take. Sheesh.
When I have a node N of the tree, I think that I can use
N.appendChild() to do what I want (just guessing from the function
name which I can see).

appendChild takes 1 argument -- a new node.

But I don't know how to create such a node.
Can someone out there please post a code fragment showing how to
create a pulldom node? The simpler and more commented it is the
better.

THANKS!!!
- Saqib
Jun 27 '08 #1
0 728

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Pinto | last post: by
7 posts views Thread by Wolfgang Kreuzer | last post: by
8 posts views Thread by jog | last post: by
9 posts views Thread by jab | last post: by
8 posts views Thread by David Thielen | last post: by

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.