On 24 août 01:11, Ammar wrote:
> Salut Sylvain,

Bonjour Ammar,

> I would like to use your tool xmldiff which is written in Python to compare
> two XML files. I have tried to google about it but unfortunately, I
> couldn't find enough information. Based on the description in the manual
> page, that this tool figures out the differences between two similar XML
> files. I don't understand the meaning of "similar" in that sentence. Shall
> the tags be in the same order or it doesn't matter? And how could I
> generate it to highlight the difference between the 2 input files? I meant
> the tags which don't match, the tags found in the first file and not found
> in the 2nd one, the tags found in the 2nd file but not in the 1st one.
> 
> I would appreciate if you could answer my questions.

"Similar" doesn't mean anything special, beside that you won't get valuable
output if the diffed files are too differents. Currently tags order matters, 
though it should not be that hard to normalize (eg sort) document so it
doesn't.

xmldiff outputs diff using either its own representation or XUpdate. It also
incluses a small "xmlrev" script which calls xmldiff then uses xsltproc + a
xsl transformation to display diff in HTML as you seem to wish.

Also notice that this project is only minimally maintained by us since we 
don't have a lot of time to spend on it. Though as you can see, we're willing
to help users, and welcome contributions ;)

PS: CCing the mailing list where discussions about xmldiff should go.
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to