Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

createNode/createElement

Posted on 2003-11-22
2
Medium Priority
?
1,488 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

688 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