diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-29 14:15:08 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-29 14:15:08 +0000 |
| commit | 35347922850c0c3435e7ed55597aba02d219d68c (patch) | |
| tree | fa20b95112cdc7d5fc4aed97b30241c4e94ab677 /bindings/python/examples | |
| parent | 2e9e814b0900dae14e291ee7708ee92b4035c019 (diff) | |
| download | lasso-35347922850c0c3435e7ed55597aba02d219d68c.tar.gz lasso-35347922850c0c3435e7ed55597aba02d219d68c.tar.xz lasso-35347922850c0c3435e7ed55597aba02d219d68c.zip | |
[Bindings] accept simple string in string<->xmlNode converter
Some use case ask for passing simple libxml content node (i.e just an
UTF-8 string) when a method argument or a field of the xmlNode* type.
This commit add a static method in bindings/utils.c named
lasso_string_fragment_to_xmlnode which does this transform by trying to
parse an XML document then by trying to parse a well balanced XML
fragment of only one node (if there is more than one node such as in the
string " xxx <tag/> yyy ", we free the node list and return NULL).
Diffstat (limited to 'bindings/python/examples')
0 files changed, 0 insertions, 0 deletions
