xmlvar 2 review

Download
by rbytes.net on

xml2var is part of SoL System Tools

License: GPL (GNU General Public License)
File size: 8K
Developer: Sherryl Manalo and Martin Willner
0 stars award from rbytes.net

xml2var is part of SoL System Tools. xml2var is an XML-file parser, which converts XML-tags to shell variables.

Here are some key features of "xml2var":
xml2var is a main part of the SoL boot technology. It offers a fast and easy way to use XML based configuration files for shell (BASH) scripts. xml2var is used in the SoL boot technology and in SoLrus, the SoL update system.

Example:

A test.xml file could look like this:

< ?xml version="1.0" encoding="UTF-8" standalone="yes"? >
< package >
< name val="xml2var"/ >
< maintainer val="antitachyon"/ >
< version tag="1.0"/ >
< /package >

xml2var converts this XML data into shell (bash) variables. The result looks like this:

package_name_val[0]="xml2var";
package_maintainer_val[0]="antitachyon";
package_version_tag[0]="1.0";

For more examples and practical use of xml2var please vist the SoL documentation pages: SoL Documentation

Requirements:
expat-library version >= 1.95.2.

xmlvar 2 search tags