Hi Christian, On Wed, 2 Jan 2013 17:00:48 +0100 Christian Recktenwald <module-authors-cont...@citecs.de> wrote:
> Hi, > > I'd like to provide some module code which converts given data > structures (e.g.: output of system commands like "ip addr list", > ifconfig, dmidecode and config files e.g. nagios config, > /etc/(passwd|group|shadow) to XML. > I also have a module allowing for application config files to > be written in XML. > > So I thought of: > XML::Import::NagiosCfg > XML::Import::IPAL > XML::Import::DMIdecode > XML::Import::Passwd > XML::Import::Group > XML::Import::Shadow > and > XML::Application::Config > > As there are to come more XML import filters with time > I'd add them into the namespace hierarchy using > the XML::Import:: prefix. > Not sure if it helps you, but I have been using the XML::Grammar::* sub-namespace for various custom XML grammars: * http://www.shlomifish.org/open-source/projects/XML-Grammar/ * https://metacpan.org/search?q=xml%3A%3Agrammar * https://metacpan.org/release/XML-GrammarBase - you may wish to use this as the basis for your modules, because it can save you on having to write a lot of boilerplate, but one problem is that at the moment https://metacpan.org/module/XML::GrammarBase::Role::XSLT::Global is using XML::LibXSLT's deprecated ->output_string for outputting to a string and I need to allow it to use either ->output_as_bytes or ->output_as_chars() (as a runtime option). By XML::Application do you mean an XML grammar or do you mean like one of the software applications/programs under the App:: - https://metacpan.org/search?q=app%3A%3A ? Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Why I Love Perl - http://shlom.in/joy-of-perl Chuck Norris doesn’t make mistakes. (Su‐Shee) He corrects God. (Shlomi Fish) Please reply to list if it's a mailing list post - http://shlom.in/reply .