1 XML Virtual FileSystem for Midnight Commander
5 View an XML file in Midnight Commander as a filesystem.
8 WHAT'S NEW in version 1.1.2 (2015-01-10)
9 Changed link to installation instructions.
11 WHAT'S NEW in version 1.1.1 (2014-07-17)
12 Fix a bug in removing excessive namespaces (lxml).
14 WHAT'S NEW in version 1.1.0 (2013-11-26)
15 Show comment(s) before the root element.
17 WHAT'S NEW in version 1.0.0 (2013-11-23)
18 With lxml.etree-based implementation show only child namespaces
19 (calculated as combined namespaces minus parent's namespaces).
21 WHAT'S NEW in version 0.3.0 (2013-11-16)
22 Initial release. Implementation based on minidom.
26 Home page: http://phdru.name/Software/mc/xml.html
27 Download: http://phdru.name/Software/mc/xml
28 git clone http://git.phdru.name/extfs.d.git
29 git clone git://git.phdru.name/extfs.d.git
31 Installation instructions: http://phdru.name/Software/mc/INSTALL.html
34 The VFS represents tags as directories; the directories are numbered to
35 distinguish tags with the same name; numbering also helps to sort tags by their
36 order in XML instead of sorting them by name. Attributes, text nodes and
37 comments are represented as text files; attributes are shown in a file named
38 "attributes", attributes are listed in the file as name=value lines (I
39 deliberately ignore a small chance of newline characters in values); names and
40 values are reencoded to the console encoding. Text nodes and comments are
41 collected in a file named "text", stripped and reencoded. The filesystem is
44 Implementation based on minidom doesn't understand namespaces, it just shows
45 them among other attributes. ElementTree-based implementation doesn't show
46 namespaces at all. Implementation based on lxml.etree shows namespaces in a
47 separate file "namespaces".
49 It is useful to have a top-down view on an XML structure but it's especially
50 convenient to extract text values from tags. One can get, for example, a
51 base64-encoded image - just walk down the VFS to the tag's directory and copy
52 its text file to a real file.
54 The VFS was inspired by a FUSE xmlfs: https://github.com/halhen/xmlfs
58 Oleg Broytman <phd@phdru.name>
61 Copyright (C) 2013-2015 PhiloSoft Design