[xml] get contents literally (or strip outer element tags)?



Hi,

I'm using libxml2 2.6.31 with Python 2.4. I try to get from:

  <a>some <b>content</b> is &in; here</a>

the content of "a" unchanged:

  some <b>content</b> is &in; here

However, with the get_contents and children methods, I don't get
that literally. Is there a method for that? If not, does libxml2
provide for a convenient method to strip the "a" element tags?

Many thanks in advance!
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]