Solved

createNode/createElement

Posted on 2003-11-22
2
1,346 Views
Last Modified: 2008-01-09
Hi,

When i use createNode or createElement to create a node or an element the default namespace is added automatically.  I dont want any namespace for the node at all.  Can i do that?

0
Comment
Question by:charulathak
2 Comments
 
LVL 26

Accepted Solution

by:
rdcpro earned 50 total points
ID: 9804169
createElement shouldn't be creating a namespace node...but if a parent node has one, I think the child node will have one too, even if you use createElement.  To explicitly create an element node in a namespace you have to use createNode()

What happens if you try something like (JScript syntax):
 
createNode(1, "foo", null);

Regards,
Mike Sharp
0
 

Author Comment

by:charulathak
ID: 9805341
If the parentnode has a namespace then the same is attached to the new node also.  thanks for pointing in the right direction

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now