Skip Menu |

This queue is for tickets about the XML-Declare CPAN distribution.

Report information
The Basics
Id: 68434
Status: new
Priority: 0/
Queue: XML-Declare

People
Owner: Nobody in particular
Requestors: ilyuha1 [...] mail.ru
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.04
Fixed in: (no value)



Subject: No method to create XML::LibXML::Element's directly.
It's impossible to create XML::LibXML::Element objects, not attached to document. E.g. this code does not work: perl -MXML::Declare -E '$el = element "hello" => "world"; say $el- Show quoted text
>toString(1);'
Undefined subroutine &XML::Declare::element called at -e line 1. And this works: perl -MXML::Declare -E '$el = doc { element "hello" => "world"; }; say $el->toString(1);' <?xml version="1.0" encoding="utf-8"?> <hello>world</hello> But if i only want a 'hello' element, there is no way to create it directly.