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)   
|