Quantcast
Channel: Extracting only the values of xml removing the xml tag - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by jshy for Extracting only the values of xml removing the xml tag

$
0
0
use strict;use warnings;use features qw/say/;use Mojo::DOM;my $dom = Mojo::DOM->new('<title> hello <name> hi </name> <street> id </street> this is xml file </title>');say $dom->all_text;# hello hi id this is xml filesay $dom->at('title')->all_text;# hello

You get the idea


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>