searching xml-elements

B

Berg

Hello!
I have the following XML-record:
<?xml version="1.0" encoding="UTF-16"?>
<?xml-stylesheet href="car.css" type="text/css"?>
<carDoc>
<car>
<name>saab</name>
<color>silver</color>
</car>
<car>
<name>BMW</name>
<color>silver</color>
</car>
<car>
<name>sherokee</name>
<color>black</color>
</car>
<car>
<name>audi</name>
<color>metallic blue</color>
</car>
<car>
</carDoc>

I´ll try to design the form, where we can search data in xml element(s).
Elements are in xml files, not in database.
For example, if we search data from "name"-element with value "saab", the
result should be in the following format:
"name: saab", "color: silver"
Next example, search with value "s*", result: "name: saab", "color: silver",
"name: sherokee", "color: black"
Last example, search with value "*ud*", result: "name: audi", "color:
metallic blue"

How can I perform that kind of search?
Thanks in advance for help!
 
V

virgul

Hi,

I think the better idea is to go on infopathdev.com and go in the
example page. He has an example about how to do that!

So say thanks Greg!


++

Thierry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top