Click here to Skip to main content
15,917,456 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionpassing nodes thru webservice Pin
biaali12-Sep-06 23:12
biaali12-Sep-06 23:12 
QuestionCan some body help me this? Pin
oohungoo9-Sep-06 18:22
oohungoo9-Sep-06 18:22 
AnswerRe: Can some body help me this? Pin
Michael Dunn9-Sep-06 18:59
sitebuilderMichael Dunn9-Sep-06 18:59 
GeneralRe: Can some body help me this? Pin
led mike11-Sep-06 5:51
led mike11-Sep-06 5:51 
GeneralRe: Can some body help me this? Pin
Michael Dunn11-Sep-06 7:46
sitebuilderMichael Dunn11-Sep-06 7:46 
AnswerRe: Can some body help me this? Pin
Dustin Metzgar11-Sep-06 3:44
Dustin Metzgar11-Sep-06 3:44 
AnswerRe: Can some body help me this? Pin
biaali12-Sep-06 23:08
biaali12-Sep-06 23:08 
QuestionAdvanced merge of xml documents Pin
Patric_J9-Sep-06 4:36
Patric_J9-Sep-06 4:36 
Hi I need to merge several versions of xml documents which contain different data. I can't just append one document to another, instead it need to substitute elements which are the same (meaning having same tag in a hierarchy). One file will have higher precedence than the other and would substitute the data of the other one if same tag. I think an example would explain better than words.

<?xml version="1.0"?>
<!-- Old version, low precedence -->
<movies>
<movie name="Snakes on a Plane">
<director>David Ellis</director>
<year>2006</year>
<rating>M</rating>
</movie>
<movie name="The Descent">
<rating>R</rating>
<year>2005</year>
<director>Neil Marshall</director>
</movie>
</movies>

<?xml version="1.0"?>
<!-- Newer version, higher precedence -->
<movies>
<movie name="Snakes on a Plane">
<director>David R. Ellis</director>
<country>USA</country>
<rating>R</rating>
</movie>
<movie name="Finding Nemo">
<rating>G</rating>
<year>2003</year>
<director>Andrew Stanton</director>
</movie>
</movies>

<?xml version="1.0"?>
<!-- Merged version -->
<movies>
<movie name="Snakes on a Plane">
<director>David R. Ellis</director>
<year>2006</year>
<rating>R</rating>
<country>USA</country>
</movie>
<movie name="The Descent">
<rating>R</rating>
<year>2005</year>
<director>Neil Marshall</director>
</movie>
<movie name="Finding Nemo">
<rating>G</rating>
<year>2003</year>
<director>Andrew Stanton</director>
</movie>
</movies>

Notice in the merged version that for example director for Snakes on a Plane been updated and country added to same movie. Is there any way to do this using standard tools, like C#/.NET or SQLServer 2005 or some other library/product? Or do I need to implement this myself? Thanks for any pointers, Patric

/Patric
My C# blog: C# Coach
AnswerRe: Advanced merge of xml documents Pin
led mike11-Sep-06 5:55
led mike11-Sep-06 5:55 
QuestionHow to read attribites from xml and put them in a dropdownlist in Html? Pin
oohungoo8-Sep-06 15:22
oohungoo8-Sep-06 15:22 
QuestionHow to Xml.Serialize an ArrrayList Pin
kozu8-Sep-06 11:34
kozu8-Sep-06 11:34 
AnswerRe: How to Xml.Serialize an ArrrayList Pin
Dustin Metzgar12-Sep-06 4:06
Dustin Metzgar12-Sep-06 4:06 
Questionmicrosoft.xmldom Pin
messages8-Sep-06 4:27
messages8-Sep-06 4:27 
AnswerRe: microsoft.xmldom Pin
led mike8-Sep-06 4:49
led mike8-Sep-06 4:49 
GeneralRe: microsoft.xmldom Pin
messages8-Sep-06 5:08
messages8-Sep-06 5:08 
QuestionXml question ... [modified] Pin
devboycpp8-Sep-06 4:08
devboycpp8-Sep-06 4:08 
AnswerRe: Xml question ... Pin
Dustin Metzgar8-Sep-06 4:46
Dustin Metzgar8-Sep-06 4:46 
GeneralRe: Xml question ... Pin
devboycpp8-Sep-06 5:08
devboycpp8-Sep-06 5:08 
GeneralRe: Xml question ... Pin
Dustin Metzgar8-Sep-06 5:46
Dustin Metzgar8-Sep-06 5:46 
AnswerRe: Xml question ... Pin
led mike8-Sep-06 4:48
led mike8-Sep-06 4:48 
QuestionRe: Xml question ... Pin
devboycpp8-Sep-06 5:37
devboycpp8-Sep-06 5:37 
AnswerRe: Xml question ... Pin
led mike8-Sep-06 6:00
led mike8-Sep-06 6:00 
GeneralRe: Xml question ... Pin
devboycpp8-Sep-06 5:52
devboycpp8-Sep-06 5:52 
GeneralRe: Xml question ... Pin
led mike8-Sep-06 6:03
led mike8-Sep-06 6:03 
AnswerRe: Xml question ... Pin
BoneSoft8-Sep-06 5:57
BoneSoft8-Sep-06 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.