diff options
| author | scoder <none@none> | 2007-07-25 21:21:41 +0200 |
|---|---|---|
| committer | scoder <none@none> | 2007-07-25 21:21:41 +0200 |
| commit | fb8a747ba0190bcfcbdbdd3e4d4e7a2b8123cb31 (patch) | |
| tree | a5a7acf46b78e80eecded6b38c59d1f334f220bc /src/lxml/public-api.pxi | |
| parent | 0f370ec2edef5cfb04f9d2ddf20d97bef1653fd7 (diff) | |
| download | python-lxml-fb8a747ba0190bcfcbdbdd3e4d4e7a2b8123cb31.tar.gz | |
[svn r2695] new C-API functions hasText() and hasTail()
--HG--
branch : trunk
Diffstat (limited to 'src/lxml/public-api.pxi')
| -rw-r--r-- | src/lxml/public-api.pxi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lxml/public-api.pxi b/src/lxml/public-api.pxi index f4d4079e..4bb4e4a5 100644 --- a/src/lxml/public-api.pxi +++ b/src/lxml/public-api.pxi @@ -50,6 +50,12 @@ cdef public _Document documentOrRaise(object input): cdef public _Element rootNodeOrRaise(object input): return _rootNodeOrRaise(input) +cdef public int hasText(xmlNode* c_node): + return _hasText(c_node) + +cdef public int hasTail(xmlNode* c_node): + return _hasTail(c_node) + cdef public object textOf(xmlNode* c_node): if c_node is NULL: return None |
