Re: is there a way to compare two xml files to see if they are equal with libxml++?



thank you very much for you response. I think that for now i will use standard c++ ifstream function and compare string by string.


2013/8/2 Kjell Ahlstedt <kjell ahlstedt bredband net>
I'm almost certain that neither libxml++ nor the underlying C library libxml2 contains a function that compares XML files.

If you want to test for exact equality, I suppose you can use the Unix/Linux command diff or a similar command. If you want to ignore insignificant differences, like some white space, it gets more complicated.

Kjell

2013-08-01 22:24, Pablo Madoery skrev:
is there a way to compare two xml files to see if they are equal with libxml++? 
or i have to use standard c++ functions to check line by line

Thanks






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]