Click here to Skip to main content
15,915,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to compare 2 very simple XML files?<oem> Pin
Christian Graus16-May-02 20:39
protectorChristian Graus16-May-02 20:39 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
16-May-02 20:40
suss16-May-02 20:40 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Black Cat16-May-02 21:27
Black Cat16-May-02 21:27 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
16-May-02 22:50
suss16-May-02 22:50 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Black Cat17-May-02 0:07
Black Cat17-May-02 0:07 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
17-May-02 0:36
suss17-May-02 0:36 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Christian Graus17-May-02 1:00
protectorChristian Graus17-May-02 1:00 
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
17-May-02 4:40
suss17-May-02 4:40 
3. Do you want to check if the two files have the same set of nodes but may be in different order, and each node may have the same number of children but may be in different order? What about attributes, you want to compare that too?

A simple recursive function will probably not solve this problem. Consider the following extreme case:


< node ...>
< node ...>
< node ...>
< node ...>
...
< /node>
< /node>
...
< /node>
< node ...>
...
< /node>
< node ...>
< node ...>
< node ...>
...
< /node>
...
< /node>
< /node>
...
< /node>


That is, all nodes have the same name but its content may be different. If factor into the effort of comparing attributes (they can also be the same but in different order), camparing two nodes will be a nightmare (at least). It takes someone with your determination to do it. Wink | ;)

What do we call the kind of problems we are too stupid to solve? NP-Complete? Laugh | :laugh:
GeneralRe: How to compare 2 very simple XML files?<oem> Pin
Christian Graus17-May-02 0:59
protectorChristian Graus17-May-02 0:59 
GeneralProblem with PropertySheet in the Dialog Pin
Eugene Pustovoyt16-May-02 19:44
Eugene Pustovoyt16-May-02 19:44 
GeneralRelease ,Debug Problem... Pin
Neha16-May-02 19:13
Neha16-May-02 19:13 
GeneralRe: Release ,Debug Problem... Pin
Prem Kumar16-May-02 19:26
Prem Kumar16-May-02 19:26 
GeneralRe: Release ,Debug Problem... Pin
Neha16-May-02 19:50
Neha16-May-02 19:50 
GeneralRe: Release ,Debug Problem... Pin
l a u r e n16-May-02 21:42
l a u r e n16-May-02 21:42 
GeneralRe: Release ,Debug Problem... Pin
Ravi Sudhakar17-May-02 1:35
Ravi Sudhakar17-May-02 1:35 
Questionhow to change asp to htm? Pin
16-May-02 17:47
suss16-May-02 17:47 
AnswerRe: how to change asp to htm? Pin
Chris Maunder16-May-02 18:14
cofounderChris Maunder16-May-02 18:14 
GeneralRe: how to change asp to htm? Pin
Carlos Antollini16-May-02 18:23
Carlos Antollini16-May-02 18:23 
GeneralRe: how to change asp to htm? Pin
16-May-02 18:25
suss16-May-02 18:25 
GeneralRe: how to change asp to htm? Pin
Carlos Antollini16-May-02 18:29
Carlos Antollini16-May-02 18:29 
GeneralRe: how to change asp to htm? Pin
16-May-02 19:02
suss16-May-02 19:02 
GeneralRe: how to change asp to htm? Pin
Nish Nishant16-May-02 19:29
sitebuilderNish Nishant16-May-02 19:29 
GeneralRe: how to change asp to htm? Pin
16-May-02 20:06
suss16-May-02 20:06 
GeneralRe: how to change asp to htm? Pin
Nish Nishant16-May-02 19:30
sitebuilderNish Nishant16-May-02 19:30 
GeneralDocument names in defualt Window menu (MDI) Pin
Eric Lee16-May-02 17:05
Eric Lee16-May-02 17:05 

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.