View an XML file in Midnight Commander as a filesystem.
+WHAT'S NEW in version 0.3.2 (2013-11-19)
+ Refactored collection of text and comments nodes.
+
WHAT'S NEW in version 0.3.1 (2013-11-18)
Fixed a bug in directories permissions.
"""
-__version__ = "0.3.1"
+__version__ = "0.3.2"
__author__ = "Oleg Broytman <phd@phdru.name>"
__copyright__ = "Copyright (C) 2013 PhiloSoft Design"
__license__ = "GPL"
attr_text = _attrs2text(attrs)
print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/attributes" % (
len(attr_text), subpath_encoded)
+ text = _collect_text(element)
+ if text:
+ print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/text" % (
+ len(text), subpath_encoded)
_list(element, subpath)
- if path:
- text = _collect_text(node)
- if text:
- print "-r--r--r-- 1 user group %d Jan 1 00:00 %s/text" % (
- len(text), path.encode(default_encoding, "replace"))
def mcxml_list():
"""List the entire VFS"""