Z
Zach Brown
I'm totally stuck on this... I've got an xml fragment that looks like:
<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" resulting in this:
<profile id="1">
<meta>
<groupID>100</groupID>
</meta>
<data>
<field id="businessStage" date="8/15/2007">Shipping Product</field>
<field id="ticker" date="8/15/2007">MyTICK</field>
</data>
</profile>
Basically where I'm at now i either get the whole document returned or just
the fields. Clearly I'm just starting out with experimenting with XQuery
but i'm totally stuck trying to do what I thought was going to be an easy
task.
Any help or thoughts on this would be super appreciated.
Regards,
Zach
<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" resulting in this:
<profile id="1">
<meta>
<groupID>100</groupID>
</meta>
<data>
<field id="businessStage" date="8/15/2007">Shipping Product</field>
<field id="ticker" date="8/15/2007">MyTICK</field>
</data>
</profile>
Basically where I'm at now i either get the whole document returned or just
the fields. Clearly I'm just starting out with experimenting with XQuery
but i'm totally stuck trying to do what I thought was going to be an easy
task.
Any help or thoughts on this would be super appreciated.
Regards,
Zach