I'm dealing with SOAP data and found that this meets my needs: $self->ua->post_p(@_)->then(sub { *SOAP::Deserializer->deserialize(shift->result->dom)->result* });
That generates a complex Perl data structure -- exactly what I want. I reckon there's a way to re-implement this with Mojo? On Sun, Feb 24, 2019 at 11:47 AM Stefan Adams <s1037...@gmail.com> wrote: > Is it possible to recursively convert an XML string into a Perl data > structure with Mojo::DOM? > > Something like: > > <a> > <x><m>M1</m><n>N1</n></x> > <x><m>M2</m><n>N2</n></x> > <y><m>M3</m><n>N3</n></y> > </a> > > Into: > > {a => {x => [{m => 'M1', n => 'N1'}, {m => 'M2', n => 'N2'}], y => [{m => > 'M3', n => 'N3'}]} > > > -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To post to this group, send email to mojolicious@googlegroups.com. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.