Assembling XML in Perl
问题 I'm needing to make API calls to a NetApp filer. I know what raw XML I need to send: <? xml version="1.0" encoding="utf-8" ?> <!DOCTYPE netapp SYSTEM "file:/etc/netapp_filer.dtd"> <netapp version="1.7" vfiler="somevfiler" xmlns="http://www.netapp.com/filer/admin"> <nfs-exportfs-list-rules> <pathname>/vol/path/to/somewhere</pathname> </nfs-exportfs-list-rules> </netapp> Having started assembling as 'plain text', I've been trying to 'do it better' with XML::Twig . But I'm having difficulty with