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 file in this distribution.