XMLTextNode

NAME LibXML::Class::Attr::XMLTextNode - descriptor for xml-text attributes

DESCRIPTION

Consumes LibXML::Class::Attr::Node, but doesn't support namespacing and would throw LibXML::Class::X::Attr::NoNamespace if any of namespace-related methods is called.

Attribute

  • Bool $.trim

    If True then the text from XML would be trimmed. Remember that despite the text content of an XML element is collected from all its #text nodes, only the white spaces at the start and at the end are trimmed. I.e., for the following node:

    <elem>
        <foo />
        word1
        <bar />
        word2
        <baz />
    </elem>
    

    The resulting text after trimming would be "word1\n \n word2". This is not a big deal as de-/serialization must normally operate over non-formatted XML files. Otherwise most common use for this flag would be for simple cases like this one:

    <someValue>
        Indented text
    </someValue>
    

SEE ALSO

COPYRIGHT

(c) 2023, Vadim Belman <[email protected]>

LICENSE

Artistic License 2.0

See the LICENSE|../../../../LICENSE file in this distribution.

LibXML::Class v0.0.1

General purpose XML de-/serialization for Raku

Authors

  • Vadim Belman

License

Artistic-2.0

Dependencies

LibXML:ver<0.10.0>:auth<zef:dwarring>AttrX::Mooish:auth<zef:vrurg>:api<1.0.0+>:ver<1.0.3+>Hash::Merge:ver<2.0.0>:auth<github:scriptkitties>:api<2>

Provides

  • LibXML::Class
  • LibXML::Class::Attr
  • LibXML::Class::Attr::Node
  • LibXML::Class::Attr::XMLish
  • LibXML::Class::CX
  • LibXML::Class::Config
  • LibXML::Class::Descriptor
  • LibXML::Class::Document
  • LibXML::Class::HOW::AttrContainer
  • LibXML::Class::HOW::Configurable
  • LibXML::Class::HOW::Element
  • LibXML::Class::HOW::ElementRole
  • LibXML::Class::HOW::ElementSeq
  • LibXML::Class::HOW::Explicit
  • LibXML::Class::HOW::Imply
  • LibXML::Class::HOW::Named
  • LibXML::Class::ItemDescriptor
  • LibXML::Class::NS
  • LibXML::Class::Node
  • LibXML::Class::Types
  • LibXML::Class::Utils
  • LibXML::Class::X
  • LibXML::Class::XML

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.