Is there any LIKE query equivalent in XML?

Is there any LIKE query equivalent in XML?
I would like the display words starts with 'A' in flex list, vice versa. I send A as a input.
Any ideas?

Hi,
I don't know that one - but with slight modification I can filter nodes values also - not onlyl attributes:
var people:XML = <people>
   <person>
                    <firstName>Peter</firstName>
          </person>
   <person>
                    <firstName>Auguste</firstName>
          </person>
   <person>
                    <firstName>Gregory</firstName>
          </person>
   <person>
                    <firstName>Andy</firstName>
          </person>
</people>
(so we have nodes that have values - not attributtes)
and then e.g.:
var peopleList:XMLList = people.person.(firstName.charAt(0) == "A");
trace(peopleList);
(this is dynamic statement - you could replace "A" with variable reference, etc)
Edit;
I've googled interesting article you could read on that subject here:
http://www.senocular.com/flash/tutorials/as3withflashcs3/?page=4
hth,
regards,
Peter
Message was edited by: Peter Blazejewicz

Similar Messages

  • Is there any way to prevent web.xml from any change like java class?

    hi all,
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    hi,
    Not at development level. We want it after deploying the application on server .
    We want to create it (web.xml) at tomcat startup (or in any other web/app server ) before loading any context.
    Is there any way to run a simple java class(not servlet) on tomcat startup(before initializing the contexts)?
    Message was edited by:
    DP_java
    Message was edited by:
    DP_java

  • Is there any way to prevent web.xml from any change ?

    hi all,
    we have a filter in web.xml. Now we want to prevent it from any change in future. I mean after making a war(EAR) no one can change the filter in web.xml. if he chaged it then he will not be able to re deploy the application.Right now it is in web.xml so one can easily change it and then he can redeploy the application.
    Is there any way to prevent web.xml from any change after making EAR(WAR)?
    One can easily make a change in web.xml and redeploy the application to get the result. Now we want to restrict the web.xml as java class for any change after making EAR(or WAR).
    Could some one help me to do this?
    thanks,
    dinesh

    I think you could use some third party software to lock the folder like FolderLock, just make sure others ppl cannot access your file should be fined.
    This is my stupid solution only,cheers.

  • Is there any Java API equivalent to Javascript eval() method?

    Is there any Java API equivalent to Javascript eval() method?
    Regards
    Rakesh

    No there isn't however you can use Jython (or another scripting language of your choice) to reproduce this functionality.

  • Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?

    TimesTen Release 11.2.1.9.6 (64 bit Linux/x86_64)
    Command> dssize;
    PERM_ALLOCATED_SIZE:      51200000
      PERM_IN_USE_SIZE: 45996153
    PERM_IN_USE_HIGH_WATER:   50033464
    TEMP_ALLOCATED_SIZE:      2457600
    TEMP_IN_USE_SIZE:         19680
    TEMP_IN_USE_HIGH_WATER:   26760
    Is there any command/query/etc, which would allow to understand what database objects (for example tables) are consuming memory and how much of it?
    tried to use ttsize function, but it gives some senseless results – for example, for the biggest table, tokens, it produces following output (that this table is 90GB in size – what physically cannot be true):
    Command> call ttsize('tokens',null,null);
    < 90885669274.0000 >
    1 row found.

    Are you able to use the command line version of ttSize instead? This splits out how much space is being used by indexes (in the Temp section of the TT memory segment), which I think is being combined into one, whole figure in the procedure version of ttSize you're using. For example:
    ttSize -tbl ia my_ttdb
    Rows = 4
    Total in-line row bytes = 17524
    Total = 17524
    Command> create index i1 on ia(a);
    ttSize -tbl ia my_ttdb;
    Rows = 4
    Total in-line row bytes = 17524
    Indexes:
    Range index JSPALMER.I1 adds 5618 bytes
      Total index bytes = 5618
    Total = 23142
    Command> call ttsize ('ia',,);
    < 23142.0000000000 >
    1 row found.
    In 11.2.2 we added the procedure ttComputeTabSizes which populates system tables with detailed table size data, and was designed to be an alternative to ttSize. Unfortunately it still doesn't calculate index usage though, and it isn't in 11.2.1.

  • Is there any Sql Query Editor in SAP

    Is There any Option to write the sql query .
    like sql plus or toad in oracle.

    What is the transaction code for that.
    with out writing ABAP code i need to browse the table is it possible in SAP?

  • Is there any way to convert to XML object to file

    hi
    is there any method or class
    which convert the DOM object to file ...
    bye
    with regards
    elan

    TransformerFactory xformFactory  = TransformerFactory.newInstance();
    Transformer transformer = xformFactory.newTransformer();
    Source input = new DOMSource(doc.getDocumentElement());
    Result output = new StreamResult(new FileOutputStream("myfile.xml"));transformer.transform(input, output);

  • Is there any Page function equivalent to Word's brush icon that can paste paragraph style to independent paragraphs multiple times in a Page document?

    In Page Manual, I did find an instruction that allows us to do something similar, but it is so tedious having to go back and forth between dropdown commands.
    I want something simple like Microsoft Word's paint brush icon that simply let me copy the paragraph style (size of font, character style, spacing etc) and then just paste the style to other paragraphs independently - separated by subtitles with different font size and styles that I want to keep.
    I am using iMac with the latest Mountain Lion and Page 09 now.

    Once you have a style set up it is only a single action to apply it to any text.
    Personally, I never got "the hang" of using that paint brush in Word. Give me copy & paste style any day, which is what I used in AppleWorks. With styles in Pages it's even easier.

  • Is there any mac sw equivalent to photoshop

    I would like to edit some photos and the only sw I know is "Photoshop". I guess there is one that fits better in a mac. WOuld you please recommend?
    Greetings

    IGQ wrote:
    only sw I know is "Photoshop".
    Yes, Photoshop for Mac 
    Perfect Photo suite
    Acorn
    FOTOR is great and free on the APP STORE
    Corel Aftershot Pro (what I use)
    FX Photo Studio

  • Blob to xml is there any other fast way without decpricated functions.

    Hi,
    1)please tel me is there any good way of getting xml from blob column or this is good? (function should not be deprecated or future it should not be discuntinue and it should be efficeant way of getting value)
    2) also tel me which csid is good defalult DBMS_LOB.DEFAULT_CSID or any other
    and storeage will be blob that i can not change.
    create or replace
    FUNCTION BLOB2CLOB(L_BLOB BLOB) RETURN CLOB IS
    L_CLOB CLOB;
    L_SRC_OFFSET NUMBER;
    L_DEST_OFFSET NUMBER;
    L_BLOB_CSID NUMBER := DBMS_LOB.DEFAULT_CSID;
    V_LANG_CONTEXT NUMBER := DBMS_LOB.DEFAULT_LANG_CTX;
    L_WARNING NUMBER;
    L_AMOUNT NUMBER;
    BEGIN
    DBMS_LOB.CREATETEMPORARY(L_CLOB, TRUE);
    L_SRC_OFFSET := 1;
    L_DEST_OFFSET := 1;
    L_AMOUNT := DBMS_LOB.GETLENGTH(L_BLOB);
    DBMS_LOB.CONVERTTOCLOB(L_CLOB,
    L_BLOB,
    L_AMOUNT,
    L_SRC_OFFSET,
    L_DEST_OFFSET,
    1,
    V_LANG_CONTEXT,
    L_WARNING);
    RETURN L_CLOB;
    END;
    '<numbers>
    <number id= "1">one</number>
    <number id= "2">two</number>
    <number id="10">ten</number>
    <number id= "6">six</number>
    </numbers>'
    above xml is in abc table col blobcol (type is blob)
    select XMLCAST(XMLQuery ('for $num in /numbers/number
    where number($num/@id) > 5
    order by number($num/@id)
    return $num/@id
    passing by value XMLPARSE(CONTENT blob2clob(BLOBCOL) returning content)
    AS VARCHAR2(100))
    from abc;
    yours sincerly.
    Edited by: 944768 on Dec 29, 2012 1:21 AM

    Well, I was talking about XMLtype (type ) and its constructors. And that has nothing to do XPath or Xquery or deprication.
    I would suggest that you always use the most appropriate datatype for storing your data, i.e. use XMLtype for XML, clob for large text and blob for binary data.
    And for the use of (depricated) Xquery or Xpath functions and operators exists another forum, XML DB

  • Any setting example in congig.xml to create a NTRealm?

    Hi,
    Is there any setting example(in config.xml) for NTRealm since I am not able
    to create one from the admin console?
    Thanks!

    Hi,
    Is there any setting example(in config.xml) for NTRealm since I am not able
    to create one from the admin console?
    Thanks!

  • Is there any way to improve Query which searches XML data from a table??

    hi all,
    i have a table which have one column say 'colA' as Varchar(max) datatype which  i  save xml data and it have other cols too 
    Currently i am searching data inside this table using like operator
    eg:
    Select * from tablename where colA like ‘%<tagname>parameterstringvalue</tagname>%’
    when i check with the Execution plan i could see it Takes 82% for clusterd index scan ( primarykey col
    not ColA)
    i added new non clusterd index for the same with include col as ColA and i found nonclusterd index scan
    with same estimated I O cost and Extimated operator cost as clusterd index scan
    My Question is :-
    1. why didnt nonclusterd index seek come?
    2. In What way i can improve perfomance for such situvation? i had seen couple of post suggesting to rewrite the Query as SELECT
    * FROM myTable WHERE CONTAINS (myCol1, myCol2, "myString").
    I Try creating Full text index and found cost increased compared to the original Query ?
    3. As per my assumption the wild charecter ('%') in begining makes perfomance issue is there any option
    or an alternative for such case?

    hi...i can give a skeleton 
    --Table Structure------------
    Table1:-
    (colA - int(PK),
    ColB - Varchar(max),
    ColC-uniquieidentifier,
    ColD-datetime,
    ColE-Bit)
    It have clusterd index for ColA
    Table2:-
    (ColA-int(fk)
    colF-int(pk)
    colG-varchar(max),
    ColH-uniqueidentifier,
    colI-int,
    colJ-int
    ColK-date)
    -----------------Query Skeleton-------------------: 
    select Distinct
    s.colA,
    s.ColB,
    S.colC,
    S.colD
    from Table1 s with (nolock)
    left outer join table2 Q with (nolock) on s.colA=q.ColA
    where Q.ColA is null
    and s.colB like '%<tag>sometext</tag>%'
    and s.colD >='1/1/2010'
    and s.colD <='1/1/2014'
    i hope this will help to understand it clearly.........

  • Is there any way to tune this query? EXPLAIN PLAN included

    DB version:10gR2
    The below query was taking more than 3 seconds. The statistics are up to date for these tables. Is there any other way i could tune this query?
    SELECT COUNT(1)
    FROM
    INVN_SCOPE_DTL, ship_dtl WHERE ship_dtl.WHSE = INVN_SCOPE_DTL.WHSE (+)
    AND 'QC' = INVN_SCOPE_DTL.FROM_WORK_GRP (+)
    AND  'MQN' = INVN_SCOPE_DTL.FROM_WORK_AREA (+)
    AND  ship_dtl.START_CURR_WORK_GRP = INVN_SCOPE_DTL.TO_WORK_GRP (+)
    AND  ship_dtl.START_CURR_WORK_AREA = INVN_SCOPE_DTL.TO_WORK_AREA (+)
    AND  ship_dtl.WHSE = '930' AND  ship_dtl.OWNER_USER_ID = 'CTZDM'
    OR ship_dtl.OWNER_USER_ID = '*'
    AND ship_dtl.STAT_CODE >= '10'
    AND ship_dtl.STAT_CODE <= '20'
    ORDER BY ship_dtl.OWNER_USER_ID DESC,
    ship_dtl.CURR_TASK_PRTY ASC, INVN_SCOPE_DTL.DISTANCE ASC, ship_dtl.RLS_DATE_TIME ASC, ship_dtl.TASK_ID ASC;
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation                      |  Name               | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT               |                     |     1 |    86 |    86   (2)|
    |   1 |  SORT AGGREGATE                |                     |     1 |    86 |            |
    |   2 |   NESTED LOOPS OUTER           |                     |   898 | 77228 |    86   (2)|
    |   3 |    INLIST ITERATOR             |                     |       |       |            |
    |*  4 |     TABLE ACCESS BY INDEX ROWID| ship_dtl            |   898 | 31430 |    85   (2)|
    |*  5 |      INDEX RANGE SCAN          | ship_dtl_IND_4      |  2876 |       |     1   (0)|
    |   6 |    TABLE ACCESS BY INDEX ROWID | INVN_SCOPE_DTL     |     1 |    51 |     2  (50)|
    PLAN_TABLE_OUTPUT
    |*  7 |     INDEX UNIQUE SCAN          | PK_INVN_SCOPE_DTL  |     1 |       |            |
    Predicate Information (identified by operation id):
       4 - filter("ship_dtl"."WHSE"='930' AND "ship_dtl"."STAT_CODE">=10 AND
                  "ship_dtl"."STAT_CODE"<=20)
       5 - access("ship_dtl"."OWNER_USER_ID"='*' OR "ship_dtl"."OWNER_USER_ID"='CTZDM')
       7 - access("INVN_SCOPE_DTL"."WHSE"(+)='930' AND
                  "INVN_SCOPE_DTL"."FROM_WORK_GRP"(+)='QC' AND "INVN_SCOPE_DTL"."FROM_WORK_AREA"(+)='MQN'
    PLAN_TABLE_OUTPUT
                  AND "ship_dtl"."START_CURR_WORK_GRP"="INVN_SCOPE_DTL"."TO_WORK_GRP"(+) AND
                  "ship_dtl"."START_CURR_WORK_AREA"="INVN_SCOPE_DTL"."TO_WORK_AREA"(+))
           filter("ship_dtl"."WHSE"="INVN_SCOPE_DTL"."WHSE"(+))
    25 rows selected.

    William Robertson wrote:
    I notice an OR predicate in the middle of some AND predicates without explicit bracketing. Are you sure it does what you think it does?I underline this point.
    A conjuction (AND expression) has a higher priority and will be executed (logically) before the disjunction (OR expression)! So your select looks like this
    SELECT COUNT(1)
    FROM INVN_SCOPE_DTL, ship_dtl
    WHERE
          ( ship_dtl.WHSE = INVN_SCOPE_DTL.WHSE (+)
          AND 'QC' = INVN_SCOPE_DTL.FROM_WORK_GRP (+)
          AND  'MQN' = INVN_SCOPE_DTL.FROM_WORK_AREA (+)
          AND  ship_dtl.START_CURR_WORK_GRP = INVN_SCOPE_DTL.TO_WORK_GRP (+)
          AND  ship_dtl.START_CURR_WORK_AREA = INVN_SCOPE_DTL.TO_WORK_AREA (+)
          AND  ship_dtl.WHSE = '930'
          AND  ship_dtl.OWNER_USER_ID = 'CTZDM'
    OR   ( ship_dtl.OWNER_USER_ID = '*'
          AND ship_dtl.STAT_CODE >= '10'
          AND ship_dtl.STAT_CODE <= '20'
    ;This might be want you want, but I doubt it very much. Please add parenthesis', to get it working the way it should be.
    Edited by: Sven W. on Oct 16, 2008 3:25 PM

  • Is there any way to read XML directly from a Web Page ??

    i have a url, which on sending request, shows XML in browser.
    Now i need to read this XML in browser and then manipulate it according to my need and display it on another page.
    actually the process is. :
    1) i have to first retrieve an xml from other site. (XML will only be shown in browser)
    2.)then i have to read the Xml and show it in according to my requirements.
    Is there any way to read XML directly from a Web Page ??
    is their logic to accomplish this.
    e.g in Servlet i can do somewhat like this :
    String wholeXml=Somemethod(url);
    Please Advice

    the average Java XML parser will accept an InputStream, so just open an URLConnection to the webpage, get the inputstream from it and feed that inputstream to the XML parser. If the URL has valid XML data, it will get parsed without problems.

  • Is there any way to access the files to be sent by XML bursting process?

    Hi All,
    I have following problem (11i, 5.6.3):
    - XML output will be created from report
    - bursting process will e-mail to multiple addresses after converting to PDF using RTF template
    - now I need to split the output again (like XML bursting does before sending out), but save on the server instead of emailing out
    Is there any way to achieve last point? Please note that in second step file will be split by supplier and in the third by invoice, so I definitely need to run bursting process twice.
    Regards
    Piotr

    iOS does not natively support normal file structures or servers, but there are third party apps you can get that do, such as FileBrowser.
    Regards.

Maybe you are looking for

  • Issuer of sso ticket is not authorized SAP gui logon

    Hello, Would you please brief me how to enable SSO between two ABAP systems for NWBC. We are not able to browse from source system to target system in NWBC, a logon prompt of second system is displayed for each browser session. What I did. Certified

  • IDOC Message type for open sales orders

    Hi We are trying to send the list of open sales orders of a customer in an IDOC to the customer. For example, if the customer has got 15 sales order to be delivered to him , he needs the details of all these 15 orders in an single IDOC Is there any m

  • Problem while exporting to PDF in the viewer

    I have a report developed in crystal report 2008.and i am using java SDK  to launch it in crystal report viewer. Once i try to export it to PDF from viewer the font face changes differently for example if my font is Arial Narrow it changes to ArialNa

  • Help with Moodle on Mac OS X server - PhP issue

    I am a server newbie.  I am setting up a server on a mac for the primary purpose of running a website for my students to use.  I have a hosted site now, but the version of php they offer is not high enough to run moodle.  I want to install moodle 2.4

  • Flash Professional CC. Interactive map. Mistake.

    Help me correct mistake in it please. Error 1172 Definition could not be found. http://rghost.ru/59743234