[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.6 Invoking xml2ag

This program will convert any arbitrary XML file into equivalent AutoGen definitions, and invoke AutoGen. The template used will be derived from either:

The base-name for the output will similarly be either:

The definitions derived from XML generally have an extra layer of definition. Specifically, this XML input:
 
<mumble attr="foo">
  mumble-1
  <grumble>
  grumble, grumble, grumble.
</grumble>mumble, mumble
</mumble>
Will get converted into this:
 
mumble = {
  grumble = {
    text = 'grumble, grumble, grumble';
  };
  text = 'mumble-1';
  text = 'mumble, mumble';
};
Please notice that some information is lost. AutoGen cannot tell that "grumble" used to lie between the mumble texts. Also please note that you cannot assign:
 
grumble = 'grumble, grumble, grumble.';
because if another "grumble" has an attribute or multiple texts, it becomes impossible to have the definitions be the same type (compound or text values).

This section was generated by AutoGen, the aginfo template and the option descriptions for the xml2ag program. It documents the xml2ag usage text and option meanings.

This software is released under the GNU General Public License.

8.6.1 xml2ag usage help (-?)  
8.6.6 base-name option (-b)  
8.6.21 define option (-D)  
8.6.7 definitions option  
8.6.13 equate option  
8.6.5 lib-template option (-l)  
8.6.9 load-functions option (-F)  
8.6.8 load-scheme option (-S)  
8.6.15 loop-limit option  
8.6.2 output option (-O)  
8.6.4 override-tpl option (-T)  
8.6.11 select-suffix option (-o)  
8.6.19 show-defs option  
8.6.20 show-shell option  
8.6.10 skip-suffix option (-s)  
8.6.12 source-time option  
8.6.3 templ-dirs option (-L)  
8.6.16 timeout option (-t)  
8.6.18 trace-out option  
8.6.17 trace option  
8.6.22 undefine option (-U)  
8.6.14 writable option  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Bruce Korb on May 5, 2003 using texi2html

Viewable With Any Browser   AutoGen Home