#!/usr/bin/perl use strict; use warnings; use XML::Twig; XML::Twig->new( twig_roots => { span => sub { $_->set_tag( 'naps')->flush; }, expandable => sub { XML::Twig::Elt->new( expanded => 'this is an expanded element')->print; }, }, twig_print_outside_roots => 1, ) ->parsefile( \*DATA); __DATA__
Edit Information: Name: Last Name: DOB: Occupation: Gender: