473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Adopt Node in C#

Hey All,
I am wondering if C# supports AdoptNode at all?
So far, I only see that XmlDocument supports ImportNode, which ends up returning a copy of the element. Instead, I want to import the actual object without making a copy.

Here is an example of what I am trying to do:

public Ident CreateIdent() {
//need to create a new Ident
Ident ident = new Ident();
ident.SetXml() //there is more to this, but note that the ident object contains xml.
//add the ident to the document, and return the ident
//Not sure how to do this. But in java it's something like:
XmlElement Idents = RunXPath("Idents");
idents.AdoptNode(ident.Xml);
return ident;
}

otherwise, it seems you have to use import, which returns you another node, then I would have to create a new Ident based off that node, and return that. Seems like a lot of extra overhead.

Also, does C# support Dom Level 3, because that is what has the specification for AdoptNode I believe.

Anyway, any information is much appreciated.

Thanks,
Nelson
Jun 23 '08 #1
1 1129
Anyone have any ideas?

Thanks.
Jun 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: J Peterman | last post by:
Im having a nightmare trying to understand these nodes and linked lists. I've posted my code for my node.h, node.cpp, linkedlist.h and linkedlist.cpp files in separates replies. Can someone...
2
by: Ralf Wahner | last post by:
Dear Masters of XSLT Could I ask you for a clue on the following question? I'd like to use XSLT to transform an XML source file to LaTeX. In the following small example the <para> Element...
6
by: Chuck | last post by:
What's the difference between using "catalog node" and catalog admin node"? -- Chuck Remove "_nospam" to reply by email
5
by: Jeroen Ceuppens | last post by:
I need to put a new node at the end of the tree, that end is not te lowest in de list but the deepest (the one with the most + before it) Node A Node 1 Node 2 Node 3 Node 4: Deepest Node B:...
0
by: Henrik Juul | last post by:
How do I adopt my default printers settings to another control? I'm using a 3.part reporting-control which must use the default printers settings like margin, orientation.... How do I do that? ...
0
by: Scott Abel | last post by:
Wednesday, October 18 at 1pm EST/10am PT, Ann Rockley, CEO of The Rockley Group ,will join a panel of leading documentation experts, including Jeannette Eichholz of GE Healthcare, for a free...
3
by: Kane | last post by:
When you create node 1 you allocate memory and link it Again when you create node 2 you would allocate memory for that node in a different section of the code. Is there more efficient way where I...
2
by: Erik Hollensbe | last post by:
Per http://cpan.org/misc/cpan-faq.html#How_adopt_module: I intend to adopt X12::Parser, which is a module to parse the ANSI X12 format for data exchange, which is used by large organizations such...
12
by: Ant Grinyer | last post by:
Having worked in software development for over 15 years in many organisations using different development methodologies such as waterfall, RUP, Scrum and XP, I'm still not sure if there is a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.