project:xml:application:config
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| project:xml:application:config [2015/01/29 12:12] – created 109.192.164.44 | project:xml:application:config [2015/09/10 19:04] (current) – 91.89.129.106 | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| Examples: | Examples: | ||
| + | <file txt .myApplication.xml> | ||
| + | <?xml version=" | ||
| + | <!-- Stand: Fri Mar 16 13:36:58 CET 2012 --> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | < | ||
| + | <option name=" | ||
| + | <option name=" | ||
| + | <option name=" | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| - | <code> | + | <file txt example.pl> |
| - | use strict; | + | # |
| - | use XML:: | + | |
| - | my $cfg = new(" | + | use strict; |
| - | my $login | + | use XML:: |
| - | my $passwd = $cfg-> | + | use Data:: |
| - | </code> | + | my $xmlfilename = $ENV{HOME}."/ |
| + | |||
| + | my $cfg = XML:: | ||
| + | my $login | ||
| + | my $passwd = $cfg-> | ||
| + | |||
| + | my $optionscount | ||
| + | |||
| + | print " | ||
| + | |||
| + | for (my $i=1; $i <= $optionscount; | ||
| + | my $name = $cfg-> | ||
| + | my $value = $cfg->find(" | ||
| + | $options-> | ||
| + | print " | ||
| + | } | ||
| + | |||
| + | print Dumper($options); | ||
| + | </ | ||
| + | |||
| + | ===== bugs & wish list ===== | ||
| + | |||
| + | * Replace XML::XPath by XML:: | ||
| + | * The < | ||
| + | * Some variable replacement mechanism. Like <basedir value="/ | ||
| + | * Hierarchical config file processing: / | ||
| + | * ~ - expansion for xml-cfg-filename in new() would be nice (2015-09-10) | ||
| + | |||
| + | === fixed bugs === | ||
| + | * The .deb-package lacks the dependency of libxml-xpath-perl (2015-02-23) (fixed in 0.2.3.2) | ||
| + | * manpage: missing like break in SYNOPSIS, (fixed in 0.2.3.2) | ||
| + | * manpage: broken constructor call in SYNOPSIS (fixed in 0.2.3.2) | ||
| + | * manpage: xpaths with leading / in SYNOPSIS (fixed in 0.2.3.2) | ||
| + | * manpage: ~ - expansion is suggested, change examples to $ENV{HOME} (fixed in 0.2.3.2) | ||
project/xml/application/config.1422529979.txt.gz · Last modified: 2015/01/29 12:13 (external edit)