On Jul 1, 8:02 am, name <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I try to parse a file with pyparsing and get this output:
>
> ['generic', 'host-01', 'host alias xyz', '10.0.0.1']
> - alias: host alias xyz
> - host_name: ['host-01']
> - ip_address: ['10.0.0.1']
> - use: ['generic']
Paul McGuire <[EMAIL PROTECTED]> wrote in news:be7af822-70d7-44fb-96fa-
[EMAIL PROTECTED]:
>
> Looks like this is a bug in asXML(). Note that if I reverse the use
> and host_name strings in the input and in your grammar, I get this XML
> output:
>
>
> host-01
> generic
> host alias xyz
>
On Jul 1, 8:02 am, name <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I try to parse a file with pyparsing and get this output:
>
> ['generic', 'host-01', 'host alias xyz', '10.0.0.1']
> - alias: host alias xyz
> - host_name: ['host-01']
> - ip_address: ['10.0.0.1']
> - use: ['generic']
Hi,
I try to parse a file with pyparsing and get this output:
['generic', 'host-01', 'host alias xyz', '10.0.0.1']
- alias: host alias xyz
- host_name: ['host-01']
- ip_address: ['10.0.0.1']
- use: ['generic']
generic
host-01
host alias xyz