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.
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 518
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
>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.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.