[Gambas-user] gb.xml feature request

adamnt42 at ...626... adamnt42 at ...626...
Sun Apr 5 04:58:05 CEST 2015


@Adrien Prokopowicz ?

I ask for an enhancement to XMLNode (and descendants). Currently the TextContent property returns the concatenated text of the currenode and all child nodes thereof.  What I want to get is the text of the current node only, ignoring any child nodes.

  Dim sText as String
  Dim hElt as XMLElement ' = some node
  sText = hElt.GetLocalTextContent()

i.e. a new method to return just the local node text.

I think this requires modifying the serializer class GBGetXMLTextContent() method to avoid descending in to the child nodes but it is far beyond my C++ abilities and the attempts I made are too embarrassing to reveal. :-(

tia
bruce

-- 
B Bruen <adamnt42 at ...3379... (sort of)>




More information about the User mailing list