Re: XML module question?

2021-07-16 Thread Bruce Gray
> On Jul 15, 2021, at 11:02 PM, William Michels via perl6-users > wrote: (and I re-ordered): > Any help appreciated, > Thanks, Bill. > REFERENCE: https://unix.stackexchange.com/q/166675/227738 > I'm trying to put an answer together for SO, and I keep running into the same > difficulty. Give

Re: XML module question?

2021-07-16 Thread David Warring
The XML::Writer module side-steps any ordering issues by directly serializing data structures to xml: $ raku -M XML::Writer -e'say XML::Writer.serialize: :wpt[ :lat<42>, :long<69>, "blah" ]' blah On Sat, Jul 17, 2021 at 4:48 AM Bruce Gray wrote: > > On Jul

Re: XML module question?

2021-07-16 Thread Bruce Gray
David, Aha! I am very glad to be wrong! $ raku -MXML::Writer -ne 'print XML::Writer.serialize: :wpt[ :lat(.words[5].subst(";")), :lon(.words[8]), :time[.words.head(3).join(" ")] ];' lat_lon.txt 11-06-2014 - 10:49:06PM 11-06-2014 - 10:49:49PM 11-06-2014 - 10:50:35PM 11-06-2014 - 10:51:21PM 11-0