Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML WIldCard Search 1

Status
Not open for further replies.

borntorun

MIS
Oct 16, 2003
82
GB
Hi,

I need to do an xml wild card search of a document and then return in array all those that are similar

So say the user puts in France

I have to search

FR
Fr
France
FRANCE

Thanks.

Any pointers.

I then need to say whether this is top level or lower level

My xml document has two levels.

Country

Region

It has to search both and then return also the level it is in.

This is using javascript.

Thanks.
 
Post XML.

Jon

"I don't regret this, but I both rue and lament it.
 
HI,

This is my dummy xml

<type>
<default>test1</default>
<next>testing</next>
<next>tests</next>
</type>
- <type>
<default>test2</default>
<next>tested</next>
<next>tester</next>
</type

I need to do a wildcard search and return those that say have 2 in them.

When they are below the default i have to try and maintain that relationship when i populate my activex component.
 
If it is testing on the default tag, say, use the predicat like this.
[tt] "default[starts-with(translate(.,'FR','fr'),'fr')]"[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top