Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

createNode/createElement

Posted on 2003-11-22
2
Medium Priority
?
1,505 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 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Loops Section Overview
Suggested Courses

824 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