Chapter 13. xFS: Filesystem Information in XML

Most filesystems allow users to create directories to organize file storage into hierarchies. These hierarchical structures map very easily to XML. In this chapter, we develop a Python utility for converting filesystem information into XML.

Having a facility to view a filesystem as an XML file is of more than just academic interest. Once in XML, we can contemplate:

  • Displaying the XML in an XML-aware Web browser

  • Transforming the XML to HTML, using XSL and related technologies

  • Using the xgrep utility to search filesystem information

  • Displaying or editing the filesystem information in the C3 utility

  • Developing filesystem processing applications by using Pyxie or, indeed, any XML processing library

The ...

Get XML Processing with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.