Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/autogen/autogen.html/ drwxr-xr-x | |
| Viewing file: Select action/file-type: Next: snprintfv, Previous: getdefs Invocation, Up: Add-Ons [Contents][Index] 8.7 Invoking xml2agThis program will convert any arbitrary XML file into equivalent AutoGen definitions, and invoke AutoGen. The template used will be derived from either:
One or the other must be provided, or the program will exit with a failure message. 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,
using the
Next: snprintfv, Previous: getdefs Invocation, Up: Add-Ons [Contents][Index] |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0086 ]-- |