Describe information of the /proc file system on your Linux box in XML format.

The /proc file system gives information about the system. We provide same information in XML format.

xmlproc version 0.07 (2001-08-27) (download)

Perl version of program translating information given by the /proc file system in XML format for Linux kernel version 2.4.x. This is Alpha version.

Examples
> xmlproc /proc/cpuinfo /proc/filesystems
<?xml version="1.0"?>
<!DOCTYPE proc SYSTEM "proc.dtd">
<proc date="998765432:unix">
<cpuinfo>
<processor>0</processor>
<vendor_id>unknown</vendor_id>
<cpu_family>4</cpu_family>
<model>0</model>
<model_name>unknown</model_name>
<stepping>unknown</stepping>
<fdiv_bug>no</fdiv_bug>
<hlt_bug>no</hlt_bug>
<sep_bug>no</sep_bug>
<f00f_bug>no</f00f_bug>
<coma_bug>no</coma_bug>
<fpu>yes</fpu>
<fpu_exception>yes</fpu_exception>
<cpuid_level>-1</cpuid_level>
<wp>yes</wp>
<flags></flags>
<bogomips>33.18</bogomips>
</cpuinfo>
<filesystems>
<filesystem type="nodev">sockfs</filesystem>
<filesystem type="nodev">shm</filesystem>
<filesystem type="nodev">pipefs</filesystem>
<filesystem type="nodev">proc</filesystem>
<filesystem>ext2</filesystem>
<filesystem>msdos</filesystem>
<filesystem>vfat</filesystem>
<filesystem>iso9660</filesystem>
<filesystem>umsdos</filesystem>
<filesystem>ntfs</filesystem>
<filesystem type="nodev">autofs</filesystem>
<filesystem type="nodev">nfs</filesystem>
<filesystem type="nodev">devpts</filesystem>
</filesystems>
</proc>
> xmlproc /proc/swaps
<?xml version="1.0"?>
<!DOCTYPE proc SYSTEM "proc.dtd">
<proc>
<swaps>
<swap>
<filename>/dev/hda6</filename>
<type>partition</type>
<size>208804</size>
<used>60</used>
<priority>-1</priority>
</swap>
</swaps>
</proc>
> xmlproc /proc/uptime
<?xml version="1.0"?>
<!DOCTYPE proc SYSTEM "proc.dtd">
<proc>
<uptime>
<uptime_system>977.73</uptime_system>
<uptime_idle>840.88</uptime_idle>
</uptime>
</proc>
Manpage
XMLPROC(1)     User Contributed Perl Documentation     XMLPROC(1)


NAME
       xmlproc - Format file of the /proc file system in XML.

SYNOPSIS
       xmlproc [--dtd-local] [path ...]

       xmlproc [--dtd] [--version] [-h] [--help] [--man]

Options
       --dtd
            Prints DTD for XML output.

       --dtd-local
            Prints DTD in output. (locally DTD)

       --version
            Prints version string.

       -h   Prints usage.

       --help
            Prints help message.

       --man
            Prints manpage.

       path This version of xmlproc supports paths below.

            /proc/{pid} /proc/{pid}/cmdline /proc/{pid}/cwd
            /proc/{pid}/environ /proc/{pid}/exe /proc/{pid}/fd
            /proc/{pid}/fd/{id} /proc/{pid}/maps /proc/{pid}/root
            /proc/apm /proc/cmdline /proc/cpuinfo /proc/dma
            /proc/filesystems /proc/locks /proc/meminfo

AUTHOR
       HANAI Mitsuru, xmlinux@geocities.co.jp

Copyright Information
       This program is copyright 2000-2001, HANAI Mitsuru.  You
       are free to use it for any purpose, commercial or
       noncommercial, provided that if you redistribute the
       source code this statement of copyright remains attached.

BUGS
       The current version is under construction.


XMLinux Home
E-Mail: xmlinux@geocities.co.jp