[Gambas-bugtracker] Bug #1339: gb.xml: Fix and document Mode argument

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Jun 1 20:30:02 CEST 2018


http://gambaswiki.org/bugtracker/edit?object=BUG.1339&from=L21haW4-

Tobias BOEGE reported a new bug.

Summary
-------

gb.xml: Fix and document Mode argument

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : XML components


Description
-----------

Prompted by https://lists.gambas-basic.org/pipermail/user/2018-June/064404.html,
I had a look into gb.xml and saw that the Mode argument to e.g. XmlElement.GetChildrenByAttributeValue
is handled by a custom GB_MatchString implementation in gb.xml. It has two problems:

  1. It doesn't handle the new gb.Match flag [1].
  2. It ignores unknown modes and assumes they are gb.Binary.

Shouldn't there be a way to call String.Comp from the GB API, and treat the mode
as something opaque?

[1] http://gambaswiki.org/wiki/cat/comp






More information about the Bugtracker mailing list