Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   XML (https://www.delphipraxis.net/46-xml/)
-   -   Delphi Suche nach Teilstring in Textknoten (https://www.delphipraxis.net/21162-suche-nach-teilstring-textknoten.html)

Conni 28. Apr 2004 16:12


Suche nach Teilstring in Textknoten
 
Nochmal hallo zusammen,

ich möchte Textknoten selektieren, welche in ihrem Text einen bestimmten Teilstring beinhalten.

Folgendes habe ich ausprobiert, funktioniert aber nicht, da Funktion "contains()" scheinbar unbekannt:

var
knoten: ixmldomnode;
ergknotenliste: ixmldomnodelist;

s:= '//CELL[contains(.,"Nr.")]';
ergknotenliste:= knoten.selectNodes(s);

Ich bitte um Hilfe!!!

BluesKid 29. Apr 2004 11:58

Re: Suche nach Teilstring in Textknoten
 
Moin moin

schau dir mal

Delphi-Quellcode:
function Pos(Substr: string; S: string): Integer;
in der OH an.

schönen Gruß

Sam


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:58 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz