source: xml_util.py @ 0:2f43cb89e87c

Revision 0:2f43cb89e87c, 349 bytes checked in by andre.hagenbruch@rub.de, 8 years ago (diff)

Initial commit for version 0.2

Line 
1#!/usr/bin/env python
2# encoding: utf-8
3"""
4elm_builder.py
5
6Created by Andre Hagenbruch on 2009-03-20.
7Copyright (c) 2009 University Library Bochum. All rights reserved.
8"""
9
10from lxml import etree
11
12def xml2cdata(tree):
13        return '<![CDATA[' + etree.tostring(tree, pretty_print = True) + ']]>'
14
15def main():
16        pass
17
18
19if __name__ == '__main__':
20        main()
21
Note: See TracBrowser for help on using the repository browser.