home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.oracle      Overblown overpriced overengineered SHIT      2,288 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 294 of 2,288   
   Frank to Dimon   
   Re: Help me!!! Search XML Data with Orac   
   29 Aug 03 17:49:07   
   
   From: fvanbortel@netscape.net   
      
   Dimon wrote:   
   > Hi! how me do this task :   
   >   
   >   
   >   
   > i have table with field containts XML data, for example :   
   >   
   >   
   >   
   >    
   >   
   > 

       >       > Non Edit       >       > Non Edit Par       >       >

       >       >

       >       > Edit       >       > Edited Par       >       >

       >       >

       >       > Mandatory       >       > Mandatory Par       >       >

       >       >
       >       >       >       > i do:       >       >       >       > 1) ctx_ddl.create_section_group('autogroup', 'AUTO_SECTION_GROUP');       >       > 2) create index revision_index on revision (attributes_xml) indextype is       > ctxsys.context parameters ('filter ctxsys.null_filter section group       > autogroup');       >       >       >       > and now i want select records with "Par" in , and i do:       >       >       >       > select xml_field from revision where contains (xml_field, '"Par" within       > value') > 0;       >       >       >       > i get records with "Par", "Mandatory Par" and "Edited Par" in tag       > , but i want get "Par" only!!! i don't want effect type of Like,       > i want search exact.       >       >       >       > help me please... any idea ? ....       >       >       > --       > Posted via http://dbforums.com              You use a ConText search; use a regular instead:       select xml_field from revision where xml_field = 'Par';              --       Regards, Frank van Bortel              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca