Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   XML (https://www.delphipraxis.net/46-xml/)
-   -   Delphi Suche im XML mit Wildcards (https://www.delphipraxis.net/85392-suche-im-xml-mit-wildcards.html)

Alfonso 30. Jan 2007 09:07


Suche im XML mit Wildcards
 
Ich möchte gerne mit msxml eine Suche dieser Art machen:

node.selectsinglenode('custom/field[@name="UR_APN_*"]')
dieses geht jedoch nicht. Die Suche nach
node.selectsinglenode('custom/field[@name="UR_APN_XYZ"]')
liefert jedoch ein Ergebnis.

Ist sowas überhaupt möglich, nach einem Teilstring zu suchen?

Gruß
Alfonso

marabu 30. Jan 2007 09:36

Re: Suche im XML mit Wildcards
 
Hallo Alfonso,

probiere es so:

XML-Code:
 node.selectsinglenode('custom/field[starts-with(@name, "UR_APN_")]')
Grüße vom marabu

Alfonso 30. Jan 2007 10:30

Re: Suche im XML mit Wildcards
 
Danke, es tut!


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:57 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