Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: GPI Triggers Pin
Stuart Dootson4-Jun-09 22:41
professionalStuart Dootson4-Jun-09 22:41 
QuestionMerging Xml files Pin
siva4554-Jun-09 21:36
siva4554-Jun-09 21:36 
AnswerRe: Merging Xml files Pin
Stuart Dootson4-Jun-09 22:44
professionalStuart Dootson4-Jun-09 22:44 
GeneralRe: Merging Xml files Pin
siva4554-Jun-09 23:02
siva4554-Jun-09 23:02 
GeneralRe: Merging Xml files Pin
Stuart Dootson4-Jun-09 23:08
professionalStuart Dootson4-Jun-09 23:08 
GeneralRe: Merging Xml files Pin
led mike5-Jun-09 4:17
led mike5-Jun-09 4:17 
GeneralRe: Merging Xml files Pin
Stuart Dootson5-Jun-09 4:29
professionalStuart Dootson5-Jun-09 4:29 
GeneralRe: Merging Xml files Pin
led mike5-Jun-09 5:08
led mike5-Jun-09 5:08 
QuestionWhat are the equvalent functions in WINCE? Pin
kapardhi4-Jun-09 21:07
kapardhi4-Jun-09 21:07 
AnswerRe: What are the equvalent functions in WINCE? Pin
«_Superman_»4-Jun-09 21:21
professional«_Superman_»4-Jun-09 21:21 
GeneralRe: What are the equvalent functions in WINCE? Pin
kapardhi4-Jun-09 21:49
kapardhi4-Jun-09 21:49 
Questionrecover encrypted file from NTFS partition Pin
amr1234-Jun-09 21:06
amr1234-Jun-09 21:06 
QuestionAdding Library in MS Visual Studio C++--2008 Pin
shyampasari4-Jun-09 20:51
shyampasari4-Jun-09 20:51 
AnswerRe: Adding Library in MS Visual Studio C++--2008 Pin
«_Superman_»4-Jun-09 21:00
professional«_Superman_»4-Jun-09 21:00 
AnswerRe: Adding Library in MS Visual Studio C++--2008 Pin
Stuart Dootson4-Jun-09 23:03
professionalStuart Dootson4-Jun-09 23:03 
QuestionHow to create a drive mount? Pin
Peter Weyzen4-Jun-09 20:47
Peter Weyzen4-Jun-09 20:47 
AnswerRe: How to create a drive mount? Pin
«_Superman_»4-Jun-09 20:58
professional«_Superman_»4-Jun-09 20:58 
GeneralRe: How to create a drive mount? Pin
Peter Weyzen4-Jun-09 21:06
Peter Weyzen4-Jun-09 21:06 
GeneralRe: How to create a drive mount? Pin
«_Superman_»4-Jun-09 21:12
professional«_Superman_»4-Jun-09 21:12 
AnswerRe: How to create a drive mount? Pin
KarstenK5-Jun-09 1:42
mveKarstenK5-Jun-09 1:42 
AnswerRe: How to create a drive mount? Pin
The Yariv5-Jun-09 19:13
The Yariv5-Jun-09 19:13 
GeneralRe: How to create a drive mount? Pin
aaverian12-Jun-11 10:57
professionalaaverian12-Jun-11 10:57 
QuestionXML [modified] Pin
p_19604-Jun-09 19:34
p_19604-Jun-09 19:34 
AnswerRe: XML Pin
Stuart Dootson4-Jun-09 22:49
professionalStuart Dootson4-Jun-09 22:49 
The first thing you need to do is understand the contents of the two different files and how they should co-exist under a single root element (for that is a requirement of XML). One options could be:

<Root>
   <first-file>
      <!-- Put the contents of the first file here -->
   </first-file>
   <second-file>
      <!-- Put the contents of the second file here -->
   </second-file>
</Root>


But really, it depends on your requirements!!!

BTW - if you're asking technically how you might do it? Use MSXML or libxml to read the two files in. You then have access to the DOM of each XML file. Create a third DOM by combining the two existing DOMs in the way you've decided is best. Write out that third DOM to a file and voila! you have a merged XML file!

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: XML Pin
siva4554-Jun-09 23:09
siva4554-Jun-09 23:09 

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.