Solved

createNode/createElement

Posted on 2003-11-22
2
1,332 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

22 Experts available now in Live!

Get 1:1 Help Now