Debugger Not Showing Element (ElementTree) Child Items

Hi,

Trying to use lxml - it's working fine, parses my XML file, but the debugger doesn't show sub-items (list of them actually) inside an Element. Is this a known limitation, or is there a way around it?

Thanks!

0
I may be wrong about this being the root cause, but it seems the Element object doesn't expose attributes like, say, a dictionary does. I.e. the keys() and items() methods exist for the Element object, but doesn't return anything.
0

Or you may be 100% right :). I'm not fully sure, but if I check keys() or items() I get a single item … which is odd, because it has a list of items (child XML items), but they don't show up in the debugger. Yet, if you access them by “number” (i.e. [3]), they are there. So odd - and making debugging difficult :(.

Thanks!

0

请先登录再写评论。