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

Owner: Nobody in particular
Requestors: ilyuha1 [...]

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

Subject: No method to create XML::LibXML::Element's directly.
Download (untitled) / with headers
text/plain 518b
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
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to