From: titash n. <tit...@gm...> - 2006-04-19 11:24:41
|
Hi, I have the following document structure in a single doc - content.xml. <Para> <p>Some Text</p> <p></p> </Para> <Para> <p>Some Text</p> <p></p> </Para> <Para> <p>Some Text</p> <p></p> </Para> <Para> <p>Some Text</p> <p></p> </Para> .... .... This document is stored in a exist DB. The path is /db/content. Now I am trying to extract each of those <Para></Para> into individual documents and store it in the DB. I am trying to do something as shown below - for $r in doc('/db/content/sym.xml') return if ($r/section[2]) =09then =09remove($r,2) =09else =09<dummy /> This obviulsy isnt working, and I am not sure how to go about doing this. Any hints will be most helpful. Thanks and regards Titash Neogi |