Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: Vertical Tab (\x0b) in XML::LibXML

by ikegami (Pope)
on Jul 25, 2014 at 04:04 UTC ( #1094989=note: print w/replies, xml ) Need Help??

in reply to Re^2: Vertical Tab (\x0b) in XML::LibXML
in thread Vertical Tab (\x0b) in XML::LibXML

I get an error for that too.
  • Comment on Re^3: Vertical Tab (\x0b) in XML::LibXML

Replies are listed 'Best First'.
Re^4: Vertical Tab (\x0b) in XML::LibXML
by choroba (Bishop) on Jul 25, 2014 at 08:42 UTC
    #!/usr/bin/perl use warnings; use strict; use XML::LibXML; my $doc = 'XML::LibXML::Document'->createDocument('1.0', 'utf-8'); $doc->setDocumentElement(my $root = $doc->createElement('root')); $root->appendText("\x0b"); print $doc->toString;


    <?xml version="1.0" encoding="utf-8"?> <root> </root>

    No errors, no warnings. Maybe a different version of the underlying C library?

    Update: Thanks anonymous. 2.9.1, 2.0018 here.

    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      I am me I am

      #!/usr/bin/perl -- use warnings; use strict; use XML::LibXML; print join "\n", XML::LibXML::LIBXML_DOTTED_VERSION(), XML::LibXML::LIBXML_VERSION(), XML::LibXML::LIBXML_RUNTIME_VERSION(), $XML::LibXML::VERSION, ;;;; my $doc = 'XML::LibXML::Document'->createDocument('1.0', 'utf-8'); $doc->setDocumentElement(my $root = $doc->createElement('root')); $root->appendText("\x0b"); print $doc->toString; __END__ 2.9.0 20900 20900 2.0014<?xml version="1.0" encoding="utf-8"?> <root> </root>

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1094989]
[Discipulus]: Eily i'm testing a failure: i ok if i get bad results.. perhaps there is another way to do it...
[Discipulus]: in other words: i have a contructor that carps on missing arguments and I want to test that it fails correctly, without carping out in the test output

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2018-01-22 11:34 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (233 votes). Check out past polls.