Answer by kailash19 for Extracting only the values of xml removing the xml tag
Based on your requirement, you can try this.I have used the file provided by you in example.we are here defining the root key contents in XML(or renaming it), you need to choose a key which will not be...
View ArticleAnswer by jshy for Extracting only the values of xml removing the xml tag
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...
View ArticleAnswer by Tudor Constantin for Extracting only the values of xml removing the...
The most brutal way is:use strict;use warnings;use feature 'say';my $text = '<title> hello <name> hi </name> <street> id </street> this is xml file </title>' ;$text...
View ArticleAnswer by choroba for Extracting only the values of xml removing the xml tag
You can use XML::XSH2:open file.xml ;echo (/title) ; # hello hi id this is xml fileecho /title/text() ; # hello this is xml file
View ArticleExtracting only the values of xml removing the xml tag
I have a xml file for example,<title> hello <name> hi </name> <street> id </street> this is xml file </title>Here the parent node is title. I am going to extract the...
View Article