Extract node(s) that contain a particular text

Hi,
I have a XML document (stored in CLOB) and I want to search for a text within the document and I want it to return ALL nodes that contain that text (%text%).
One more thing: I don't know the xml structure.
Any idea?

I want it to return ALL nodes that contain that text (%text%).Hope this gives you the clue:
SQL> with t as (
  select xmltype('<a><b>Some text</b><c>Not a test</c><d>Some other text</d></a>') xml from dual
select xmlquery ('//*[ora:matches(text(),"text")]' passing t.xml returning content) matches from t t
MATCHES                                  
<b>Some text</b><d>Some other text</d>   
1 row selected.

Similar Messages

  • E4X : How to get elements that contain a string pattern in the node name?

    Is there a way to extract children from an XMLList where the node name of a child contains a string pattern?
    For example :
    <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>
    How to get the elements of record that have a node name that contains the string "blah"?

    var rec:XML = <record>
         <XblahX/>
         <cow/>
         <YblahY/>
    </record>;
    var r:RegExp = /blah/;
    var elems:XMLList = rec.children().(localName().search(r)>-1);
    trace(elems.toXMLString())

  • Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice

    Is there any way to tell which formulas a particular cell is in, reverse look-up style? That is, is there a way to search somehow for which formulas in a sheet contain a particular cell in them without opening all of them up? If not, it would be nice.
    I'm fixing a Numbers document that I use in business daily that's become overly complicated, but while I want to clear/delete a number of cells in it to clean it up, I'm not sure if those cells are being used as source for other formulas on the page. I don't have to open all my formulas one by one to see if that cell is in there, do I?! That'd be a huge amount of work if I wanted to eliminate say 10 cells to search each formula on the page to see if it is in there or watch all the cells when I delete that cell to see if the numbers change! There's got to be an easier way! Right click doesn't seem to be any help.
    I don't want to damage my daily tool to make it cleaner and reorganize it. Is there really no way to do a reverse look-up of which formulas a particular cell is in?! Any time I click on a formula it highlights all the CELLS in that formula. Why can't I (or can I?) do the reverse and see all the FORMULAS that contain a particular cell?
    As a Numbers document ages or gets used frequently, you can sometimes forget which cells are tied to which formulas. You just look for the results of your formulas. Would be a nice thing to be able to do. Thoughts? Work-arounds? Answers?

    Answer would be no unless application provided such feature. Numbers does not as far as I know.
    Note that even if you have complete list of formulae used in a table, identifying formulae referencing any given cell is not simple.
    E.g., cell T20 is referenced not only in
    =T20+1
    but also in
    =SUM(T)
    =SUM(20:20)
    =SUM(S19:U22)
    =OFFSET(S1,19,1,1,1)
    =INDIRECT("T"&(10*2))
    In order to identify such formula, we have to actually evaluate it to see if it references the given cell. Especially such formula as OFFSET() and INDIRECT() may not be found by static parser because their parameters can be dynamic.
    Sorry to be the bearer of bad tidings.
    H

  • How can I find an ID file that contains a text...?

    I've been working with InDesign for a long time. So, I have a lot of .indd files, from version 1 up to CS3.
    I need to find a file(s) that contains a specific text. E.g. the name of a person, that I'm sure is somewhere in my thousands of ID files.
    It's impossible to open all the files until I locate that text.
    In Windows Explorer, there's a way to search a word or phrase in a file, but it only returns doc, txt, rft, and other text files, even pdf. But not indd.
    Can somebody help me, please?
    Thanks,
    Hirao

    Have you tried changing the extension on your .indd files to .txt? It's
    a binary format, but there's a lot of plain text in there. The name
    you're looking for, or part of it, is probably in there somewhere.
    Search for the shortest possible text string. Some words are not continuous.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • Finding tables that contain a column

    Hi all,
    I am a relatively new SQL user and am trying to figure out how to find all tables that contain a particular column, eg, 'cust_id'. I have tried a bunch of different things and searched on Google but I think I don't quite have/understand the syntax I need.
    Also, how would I display a list of all the columns in all the tables?
    Thanks!

    Hi,
    apex wrote:
    Thanks for the input! I got my first question working.
    I am still trying to understand basic ideas in SQL, eg what is the all_tab_columns in Raj's link, as usually I call something from a particular table. All_tab_columns is a view in the sys schema. There are several tables and views in the sys schema whose names start with user_ or all_ (or dba_, but you may not have privileges to see those) which are collectively called the Data Dictionary . They contain information about the database itself, including the tables in the database.
    It states there that the ANALYZE command can be used to gather statistics for this view, but I have not been able to get it working.
    Eg, in Oracle SQL Developer, I type in "help <analyze>" but it doesn't tell me what the syntax of this command is, I had to use Google which gives the following
    To estimate statistics:
    ANALYZE TABLE tablename ESTIMATE STATISTICS SAMPLE 30 PERCENT;
    To compute statistics:
    ANALYZE TABLE tablename COMPUTE STATISTICS;
    But when I try the last one it just says
    table CUSTOMERS analyzed.
    but I don't see any output, and if I try to use ANALYZE all_tab_columns; it gives me an error message. When you analyze a table, a message like "table CUSTOMERS analyzed" is all you expect to see. The main purpose of anlyzing isn't to produce a report for you to read (as helpful as thant might be) but to update the data dictionary, so that Oracle knows how to do queries efficiently. For example, if you have a query like
    SELECT  *
    FROM    patients
    WHERE   birth_date  = DATE '1981-07-28'
    AND     state_abbr  = 'NY';How does the system decide whether to look for rows with the right birth_date first, or the right state? The statistics in the data dictionary might tell it that birth_date has many more ditinct values, so looking for a particular birth_date first will narrow down the search much faster than looking for a particular state.
    By the way, the ANALYZE command has been deprecated. Unless you're using a very old version of Oracle, you should be calling the dbms_stats package instead:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm#CIHBIEII
    I am using Sam's teach yourself SQL in 10 minutes which is very good at the very specific commands and functions it describes but doesn't really orient me to the language, doesn't explain how to use the help functions, or any treatment of tasks not contanied in the book. If someone can recommend another source would appreciate it. Much thanks!That's the frustrating thing about books; you can't ask them questions. (On the other hand, that's one of the nice things about this forum.)
    I can understand why the book doesn't say much about analyzing. The book is about SQL (e.g., how to create a table or write a query). Statistics are not in the scope of that book. Actually, they're not really in the scope of this forum, either. If you have questions about statistics, you're better off posting them in the "Database - General" forum:
    General Database Discussions

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • Copy and paste text that contains 1/2

    '''ALL''' text from any Firefox webpage that contains the character "1/2"… when pasted into a word processing document (Appleworks v. 6.2.9, in this case) inserts MULTIPLE 1/2 spaces.
    All individual text characters are thus separated by two (2) 1/2 spaces and word spacings are three (3) 1/2 spaces.

    The way to do it in previous versions (at least in version 9) was by
    right-clicking the field and selecting Duplicate. This created copies of the
    fields in the same place as the original, but also with the same name, and
    therefore the same value. You will need to rename them if you want them to
    be unique. If you need to do this very often, a script might be a better
    solution.

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • Copy Paste text that contains cross-references destroys them

    Hi folks,
    Using ID CS 5.5.
    Working on a book file that contains ca. 30 documents.
    Copying (or cutting) and pasting any text that includes a cross-reference to another document in the book breaks the cross-reference.  This happens even if pasting directly back into the same location.  Cross-references to locations within the same document are not affected.
    Is this a known issue?  Is there some kind of work around?  It seems like too big a bug to not already be solved.
    Thanks.
    EDIT: working on this further, I realize it's actually much, much worse than I've described.  Copying and pasting crossrefs across documents can sometimes destroy all cross refs in all documents in the book.

    painstakingly change each setting on the control tab.
    Painstakingly is your only option other than using something like this: http://www.xmedit.com/
    -DH

  • How to parse text file (.eml) to get index of line, that contains Subject, From field, and base64 decoded Body

    Hello, Dear Colleagues.
    Help me please with next deal.
    As input I have .eml file:
    x-sender: [email protected]
    x-receiver: ***************************
    Received: from ***** with Microsoft SMTPSVC(7.5.7601.17514);
    Fri, 20 Mar 2015 12:43:03 +0200
    In-Reply-To: <********@LocalDomain>
    To: *****************************
    Bcc:
    Subject: Incident ID#: 117 Something wrong, something right, something missing
    Message-ID: <*****************************@LocalDomain>
    From: [email protected]
    Date: Fri, 20 Mar 2015 12:42:55 +0200
    Content-Type: multipart/related; boundary="=_related ********************"
    References: <*******************************C@LocalDomain>
    MIME-Version: 1.0
    X-KeepSent: ****************************; name=$KeepSent; type=4
    X-Mailer: Lotus Notes Release 8.5.2FP3 July 11, 2011
    X-Disclaimed: 54023
    Return-Path: [email protected]
    X-OriginalArrivalTime: 20 Mar 2015 10:43:03.0590 (UTC) FILETIME=[A48E9C60:01D062FA]
    --=_related **********************=
    Content-Type: multipart/alternative; boundary="=_alternative &**************"
    --=_alternative ******************
    Content-Type: text/plain; charset="KOI8-R"
    Content-Transfer-Encoding: base64
    U29tZXRoaW5nIHdyb25nLCBzb21ldGhpbmcgcmlnaHQsIHNvbWV0aGluZyBtaXNzaW5nDQpTb21l
    dGhpbmcgYmxhY2ssIHNvbWV0aGluZyBsaWdodCwgc29tZXRoaW5nIGRpZmZlcmVudA0KRG9uJ3Qg
    eW91IGV2ZXIgZmVlbCB5b3UgbmVlZCB0byBzcGVhayB0byBtZSB0aGF0IHdheT8NClNvbWV0aGlu
    ZyBibGFjaywgc29tZXRoaW5nIGxpZ2h0LCBzb21ldGhpbmcgZGlmZmVyZW50DQpTb21ldGhpbmcg
    d3JvbmcsIHNvbWV0aGluZyByaWdodCwgc29tZXRoaW5nIG1pc3NpbmcNCkRvbid0IHlvdSBldmVy
    IGZlZWwgeW91IG5lZWQgdG8gc3BlYWsgdG8gbWUgdGhhdCB3YXk/IA==--=_alternative ******************
    Content-Type: text/plain; charset="KOI8-R"
    Content-Transfer-Encoding: base64
    Because position of lines changes due to email type, as output I want to get:
    1). index of line that contains: Subject, i.e. "Subject: Incident ID#: 117 Something wrong, something right, something missing"
    2). index of line that contains "From", i.e. "From: [email protected]"
    3). base64 - decoded text (body of email)
    Thanks for your help.
    Have a nice day.

    jrv,
    your script, unfortunately, always return "String not found".
    Because you file is probably not constructed the same as the copy you posted.  I was just showing you how.  You will need to adjust to the actual file.
    Outlook can open and convert  EML files. 
    ¯\_(ツ)_/¯

  • When I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP

    when I start firefox browser an erroe message appear that contain this text "the procedure entry point_except_handler4_common could not be located in the dynamic link library msvcrt.dll" I am using windows XP in English
    == This happened ==
    Every time Firefox opened
    == start mozila firefox

    This issue can be caused by a problem with the file c:\windows\system32\dwmapi.dll
    The file dwmapi.dll is a Vista file and should not be present in Windows XP.
    See also [tiki-view_forum_thread.php?forumId=1&comments_parentId=417674]

  • Is there any way to display a file that contains text and pictures

    Hi all,
    I was wondering if java has any way to display a file that contains both text and pictures. I have tried using the RTFEditorKit and using an RTF file and it only diplays the text contained in the file and omits the pictures all together.
    code:
    import java.awt.*;
    import java.io.*;
    import javax.swing.*;
    import javax.swing.text.rtf.RTFEditorKit;
    public class Test
         JScrollPane scroll;
         JEditorPane edit=new JEditorPane();
         RTFEditorKit kit=new RTFEditorKit();
         public Test()
              final JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         edit.setEditorKit(kit);
         edit.setEditable(false);
         try
              kit.read(new FileReader(new File("Installation.rtf")),edit.getDocument(),0);
              catch(Exception e)
                   JOptionPane.showMessageDialog(null, e);
         frame.getContentPane().add(new JScrollPane(edit));
         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              frame.setBounds(0,0,screenSize.width, screenSize.height);
         frame.show();
         public static void main(String[] args)
    new Test();
    Please help!
    thanks in advance,
    Denise

    Not good as that usually means the project itself was corrupt.
    Any chance you sync'd to Creative Cloud? That's the only way I know of that backs up your PS Touch (PSDX) files.

  • Help! I can send emails from my ipad2 that contain text - but they're unable to send if I attach any pictures! So frustrating! I have an iPhone

    Help! I can send emails from my ipad2 that contain text - but they're unable to send if I attach any pictures! So frustrating! I have an iPhone

    I have an iPhone &amp; can send pictures via email without issue but I can't on ipad2. Any ideas why?? Thx!

  • I cannot send a photo nor a text message that contains a photo

    I cannot send a photo nor a text message that contains a photo from my iphone.  My cellular is on & my Wi-Fi.  I have tried sending a photo with both on, WiFi off & cellular on, and WiFi on with cellular on.  What else can I try?

    Try a reset: hold down the home button along with the sleep/wake button until you see the apple, then let go. (No data loss)

  • Smart Folders That Omit Files Contained In Particular Folders

    I would like to create a smart folder that contains all files that have a filename matching a certain string that are not contained in a list of particular folders e.g. everything that has ".pdf" in the filename that is not contained in folders Downloads or Music.
    I do not want to permanently exclude these folders from Spotlight's indexing just omit search results that yield files contained in certain folders.
    Is there a way to do this?
    Thanks

    Folder has not been a criteria available for searching. There is a raw query item for the folder, but it specifically states that it cannot be used in a search.
    I'm not aware of a workaround.

Maybe you are looking for

  • Best Practice to Setup an application to work with both oracle and db2 db

    Hi, We have an application that currently supports both oracle and db2 databases . It is currently using JPA with eclipselink as backend mechanism and we want to move to ADFBc as our backend . So what is best practice to do this? I came across an old

  • Undue Syntax error in transformation routine

    Hi, A routine is reported to be incorrect (error RSTRAN 523)  during the check of the transformation. However, a check on the source code in the editor returns no errors. I've implemented the oss note 980548, but I still face the problem. Do you have

  • Itunes Store does not start up. Rest of itunes is ok.  Solution?

    Greetings, Called Apple on my itunes store problem with iMac. Was told by one guy it would cost 49 $ CHF € ?? or whatever.  Called again and was told to reinstall my OSX 10.6.  Seems too drastic. Also was told that maybe setting up another account wo

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys, I have a situation where user picks a date from a date picker in tabular form. So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM. I have gone through th

  • Need Expertise Advice

    Hai, IDOC to JDBC (Staging table) IDoc is pushed in to XI. XI maps IDoc to staging table structure XI does the look up of other database tables while mapping.           How to do the database look up??? XI inserts data in to staging table with the st