Please don't top post.
Zach Brown <> wrote in
<pI0xi.63926$fJ5.31293@pd7urf1no>:
> "Pavel Lepin" <> wrote in message
> news:fa0to6$mkb$...
>> Zach Brown <> wrote in
>> <D8Mwi.61895$fJ5.36078@pd7urf1no>:
>>> <profile id="1">
>>> <meta>
>>> <groupID>100</groupID>
>>> </meta>
>>> <data>
>>> <field id="businessStage" date="8/15/2007">Shipping
>>> Product</field> <field id="businessStage"
>>> date="8/14/2007">Development</field> <field
>>> id="businessStage" date="8/13/2007">Research</field>
>>> <field id="ticker" date="8/15/2007">MyTICK</field>
>>> <field id="ticker" date="5/15/2005>TICK</field
>>> </data>
>>> </profile>
>>>
>>> And, i was hoping that i could write an xquery
>>> expression that would select basically the whole
>>> document minus any fields whose date didn't match
>>> "8/15/2007"
>>
>> So what's the problem? Process all the nodes recursively,
>> omitting the ones that fit your criteria:
[snip]
> I've only been working around with xquery for the last
> week.
It's the second XQuery I've ever written, so 'only last
week' sounds like an awful lot of time to do some reading
to me.
> For some reason, all the stuff that i've managed to find
> not once mentioned user defined functions. Powerful.
You've been reading the wrong stuff then. The XQuery spec is
reasonably good as a reference, and definitely worth
skimming over. If that's too hard for you, I'm fairly
certain IBM's developerWorks has some good introductory
reading in its XQuery library:
http://www.ibm.com/developerworks/xml
--
"Patience is a minor form of despair, disguised as
virtue." -- Ambrose Bierce