You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changed REXML::Functions to a REXML::FunctionsClass instance for thread safety and removed unused REXML::Functions.text, .processing_instruction, .variables, and .namespace_context
Fixed XPath name functions (name(), local-name(), namespace-uri())
Uses the first node in document order without skipping unnamed nodes (e.g. name(root/node()) returns "" instead of "node" when a text node comes first)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Incompatible changes
Dropped support for Ruby 2.5 (Ruby 2.6 or later is now required)
Removed unused
REXML::QuickPath(rexml/quickpath)REXML::QuickPathshould be deprecated or removed #250Changed
REXML::Functionsto aREXML::FunctionsClassinstance for thread safety and removed unusedREXML::Functions.text,.processing_instruction,.variables, and.namespace_contextSwitched available XPath function checks from a denylist to an allowlist
REXML::Functionsis no longer supportedStopped falling back to
XPath.matchfor unregistered XPath functions inFunctionsClass#send(now returns[])FunctionsClass#send#364Changed XPath to always return node-sets in document order
XPath.match/XPath.firstfor reverse axes such asancestor::andpreceding::to match the XPath 1.0 specificationStopped matching prefixed attributes by their local name only
Attributes#[],#get_attribute, andElement#attributeno longer returnx:bfor"b"; use the qualified name ("x:b") or a namespaceAttributes#keysnow returns qualified names (e.g."xmlns:x","x:b")Validated XPath variable values and fixed
id()return valueTypeError, predicates on non-nodeset variables return[], and unimplementedid()returns[]instead ofnilRemoved non-working XPath
namespace::axis handling[]instead of raisingNoMethodErrorChanged XPath
modoperator to use truncating remainder (Numeric#remainder) and returnNaNformod 0ZeroDivisionErrorfor a zero divisorReturned
Infinity/NaNfrom XPathstring(),floor(), andceiling()instead of raisingFloatDomainErrorImprovements
Improved performance
last()#339Made REXML Ractor-compatible
Deprecated unused
REXML::Text.read_with_substitution(useREXML::Text.unnormalizeinstead)REXML::Text.read_with_substitution#363Supported parenthesized XPath expressions and
abbreviateof parenthesesSupported
string-length()XPath function without an argumentAccepted processing instructions in the internal DTD subset
Accepted non-ASCII names, combining characters, and extenders in DOCTYPE, processing instructions, DTD declarations, elements, and attributes
Accepted any XML whitespace around XPath operators
and,or,div, andmodRejected underscored XPath function names (e.g.
local_name()) in strict mode (default mode keeps the alias for backward compatibility)Improved documentation
Element#attributecorrectly #151Fixes
Fixed an issue when executing
REXML::Parsers::SAX2Parser#parsewithout specifying#listenREXML::Parsers::SAX2Parser#parsewithout specifying#listen#302Fixed infinite entity expansion by detecting circular references
REXML::ParseExceptioninstead ofSystemStackErrorFixed parsing XPath expressions with string literals containing parentheses and brackets
Fixed XPath
normalize-space()functionFixed XPath functions not to return a primitive value wrapped in an array
Fixed XPath
selfaxis nodeset positionFixed
XMLDeclbeing included in XPathdescendant::node()resultsdescendant::node()match result #331Fixed XPath name functions (
name(),local-name(),namespace-uri())name(root/node())returns""instead of"node"when a text node comes first)Fixed
substring-after()XPath function not to use Regexp matchsubstring-after()XPath function #355Fixed
REXML::Element#attributewhen a namespace URI has multiple bindingsElement#attributefails to find attribute when namespace URL is duplicated #346Avoided stack exhaustion in
REXML::Formatters::Default#write_elementfor deeply nested documentsExplicitly required
"set"inxpath_parser.rbStopped substituting entities with an empty value
Fixed
REXML::Formatters::Prettymutating text nodes while pretty printingRejected invalid character references in entity expansion
REXML::ParseExceptionFixed XPath
lang()not to match a language prefix that is not a sublanguageFixed RELAX NG validation of documents with XML declarations
Fixed XPath
substring()with a start before the first character andround()for negative halvessubstring('12345', 0)now returns"12345"instead of"1234", andround(-2.5)returns-2instead of-3Fixed XPath comparisons between a node-set and a boolean, number, or string
10 > @price), boolean comparisons, and string comparisonsPreserved whitespace before word operators after XPath predicates
Fixed XPath unary minus parsing with leading or separating spaces
"-"," - - ") now raisesREXML::ParseExceptionRenamed the XPath test fixture
xp.tsttoxp.txtFormatted small floats without scientific notation in XPath
string()string(0.00001)now returns"0.00001"instead of"1.0e-05"Fixed XPath parsing of expressions and literals containing line breaks
Fixed XPath matching for the predefined
xmlnamespace and empty stringsThanks
NAITOH Jun
Sutou Kouhei
tomoya ishida
Burdette Lamar
John Hawthorn
Sai Asish Y
Vít Ondruch
JinHyuk Sung
KBS
Wleeaf
FFspiky
Sourya Singh
Gal Be
bardrop
Moksh Upadhyay
Akshay Kumar Sharma
botamochi0x12
Hiroya Fujinami
Brian
pboling
gemmaro
Dickson Wu
This discussion was created from the release REXML 3.4.5 - 2026-12-04.
All reactions