#!/usr/bin/python -u import libxml2 doc = libxml2.parseFile("ex6.xml") res = doc.xincludeProcess() print "result:\n", doc.serialize() doc.freeDoc()