473,320 Members | 2,112 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,320 software developers and data experts.

how to Merge to xml document ?

Hello,

I've to merge a peace of xml in another xml document.
Here is an example:

The doc:
<layout>
<win x="0">
<visible>false</visible>
<text>coucou</text>
</win>
</layout>

The other xml peace :
<layout>
<win x="10">
<visible>true</visible>
<backcolor rgb="25,25,25">
</win>
</layout>

The merge result should be:
<layout>
<win x="10">
<visible>truevisible>
<text>coucou</text>
<backcolor rgb="25,25,25">
</win>
</layout>

I can do that with some recursives loops but I come in that newsgroup
to ask if there are some tools in .Net API which manage such operation ??
Or if .Net does not have such operator, is there a external library that can do that ??

Thank you for your lights ;o)
cyrille
Jan 31 '06 #1
2 2452
Hello

I would use the XmlDocument object. You can load both file in 1 line of code
and change the XmlNodes arround. Give it a try ^^

--
Francois Beaussier

"# Cyrille37 #" <cy*******@free.fr> a écrit dans le message de news:
%2****************@TK2MSFTNGP09.phx.gbl...
Hello,

I've to merge a peace of xml in another xml document.
Here is an example:

The doc:
<layout>
<win x="0">
<visible>false</visible>
<text>coucou</text>
</win>
</layout>

The other xml peace :
<layout>
<win x="10">
<visible>true</visible>
<backcolor rgb="25,25,25">
</win>
</layout>

The merge result should be:
<layout>
<win x="10">
<visible>truevisible>
<text>coucou</text>
<backcolor rgb="25,25,25">
</win>
</layout>

I can do that with some recursives loops but I come in that newsgroup
to ask if there are some tools in .Net API which manage such operation ??
Or if .Net does not have such operator, is there a external library that
can do that ??

Thank you for your lights ;o)
cyrille

Feb 1 '06 #2
# Cyrille37 # wrote:
Hello,

I've to merge a peace of xml in another xml document.


The XML Diff and Patch GUI Tool

http://msdn.microsoft.com/library/de...xmldiffgui.asp

Contents

Introduction
An Overview of the XML Diff and Patch API
XML Diff and Patch Meets Winforms
Working with XML DiffGrams
Other Features of the XML Diff and Patch Tool

Feb 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve M | last post by:
I'm trying to do invoke the mail merge functionality of MS Word from a Python script. The situation is that I have a template Word document, and a record that I've generated in Python, and I want...
2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
8
by: Squirrel | last post by:
Hi everyone, I've created a mail merge Word doc. (using Office XP) , the data source is an Access query. Functionality I'm attempting to set up is: User sets a boolean field to true for...
0
by: Lauren Wilson | last post by:
Hi folks, I am using the following code to merge data from an Access table to a pre-defined Word 2000 merge document. It al works fine except for ONE problem -- after the merged document...
9
by: Neil Ginsberg | last post by:
I have a strange situation using Access to automate a Word mail merge. Using Access 2000 and Word 2000, the code opens Word, opens the document in Word, sets a table in the calling Access...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
4
by: lesperancer | last post by:
I have 3 tables (office97) tblQuote quoteNbr tblDetails ( quote : 1 <-> M: quoteDetails) quoteNbr detailLine product value
1
by: mr k | last post by:
Hi, I wanted to use mail merge with forms but Text form fields are not retained during mail merge in Word, I got the code from Microsoft but it doesn't remember the text form field options such as...
7
by: giladp1 | last post by:
I found Albert Kallal's great "Super easy Word Merge" code in his site at: http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html Thanks Albert so much for sharing this. I am looking...
1
by: Esther Lane | last post by:
Hello! First off, many many thanks to Albert who wrote the Mail Merge code for MS Access I am using. It has been working beautifully for a few years. However, my client just (without notice!)...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.