Hello,

have some XML parsing problem.

In
http://wiki.forum.nokia.com/index.ph...ith_XML_Filter

it is described how to parse something like this:

Code:
<userdata>
	<name>Sittiphol Phanvilai</name>
	<namethai>สิทธิพล พรรณวิไล</namethai>
	<address>
		<city>Bangkok</city>
		<state>-</state>
		<country>Thailand</country>
	</address>
	<pet type="Dog" name="Richie"/>
</userdata>
But what can i do if i have a list?

Code:
<usertable>
<userdata1>
	<name>Sittiphol Phanvilai</name>
	<xyz>sdsdsd</xyz>
</userdata1>
<userdata2>
	<name>Sittiphol Phanvilai</name>
	<xyz>sdsdsd</xyz>
</userdata2>
</usertable>

I tried something like this but i didnt work:

Code:
<filters>
    <filter id="xpathfilter">
      <list>
        <foreach>
          <xpath>/usertable/*</xpath>
          <item>
            <name><xpath>name()</xpath></name>
            <value>
				<list>
					<foreach>
					  <xpath>/magazin/*</xpath>
					  <item>
						<name><xpath>/usertable/*name()</xpath></name>
						<value><xpath>/usertable/*text()</xpath></value>
					  </item>
        		    </foreach>
      			</list>
			</value>
          </item>
        </foreach>
      </list>
    </filter>
  </filters>
It doesnt work :-(
At the end i want to get this array:

usertable(userdata1 => (name = "aaa", xyz = "sdsd"), userdata1 => (name = "aaa", xyz = "sdsd"));

So that I can use: usertable[userdata1][name] ...

I'm looking forward to a solution, worked 3 hours now and I'm very sad :-(

Greetz Yuri