Solved

createNode/createElement

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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

Suggested Solutions

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

762 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