Need help to retrieve the value of an xml tag.

Hi all

Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

I use the following client:
-----------------------------------

SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options


////////////////////////////////// XML Schema ///////////////////////

Start
() dbms_xmlschema.registerSchema
"http://www.oradev.com/chipsxml.xsd,"
' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
targetNamespace = "http://www.oradev.com/chipsxml.xsd."
xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
version = "1.0" >

< feature name = 'Field1' >
< complexType >
<>sequence
< element name = "UTI" >
< complexType >
<>sequence
< element name = "U01" type = "string" / >
< element name = "U02" type = "string" / >
< element name = "U03" type = "string" / >
< element name = "U03a" type = "string" / >
< element name = "U03b" type = "string" / >
< element name = "U03c" type = "string" / >
< element name = "U04" type = "string" / >
< element name = "U05" type = "string" / >
< / sequence >
< / complexType >
< / item >
< / sequence >
< / complexType >
< / item >
< / schema > ',
(TRUE, TRUE, FALSE, FALSE);
end;


A table that has several column.

CREATE TABLE chipsxmltable1)
Identification number, XMLDATA XmlType)
XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
ELEMENT 'field1 ';


Insert the query in chipsxmltable.

INSERT INTO (VALUES) chipsxmltable
XmlType.CreateXml ("<?") XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
Y < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
((< / samp: field1 > '));


To display the data in a field with the structure:
--------------------------------------------

1. motion:
----------
Select * from chipsxmltable1;

Output:
-------


ID XMLDATA
---------- -----------------------------------------------------------------
1 <? XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
No. < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
< / samp: field1 >


2 query: (both the query shows the same result)
----------

SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


Output:
--------

XMLDATA
-----------------------------------------------------------------
<? XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
No. < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
< / samp: field1 >


To display the data as a single string without structure using "getstringval()":
---------------------------------------------------------------------------------

3 query
---------

Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

Output:
-------

CHIPS - XML
---------------------
NoNoYYYYYY


To display the data as a single string without structure using "getclobval()":
---------------------------------------------------------------------------------

4 query
-------

Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

Output:
--------

CHIPS - XML
-----------------
NoNoYYYYYY


To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
-------------------------------------------------------------------------------------------------------------

6.query:
---------

Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


Output:
--------

CHIPS - XML
---------------------------------------



The queries above are not fetch the value.



To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
------------------------------------------------------------------------------------------------------------------

7 query:
----------

Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


Output:
--------

X
-



The queries above are not fetch the value.


My question is:
--------------------
How to extract the values of xml tag when the value are inserted through xml schema?


My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

Very cordially,
Godwin Castro C.V.

Hello

You must declare the namespace of each element used in the XPath expression, like this:

SQL> select extractvalue( XMLDATA
  2                     , '/samp:Field1/UTI/U01'
  3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
  4  from chipsxmltable1 x
  5  ;

XMLDATA
--------------------------------------------------------------------------------
No
 
SQL> select extract( XMLDATA
  2                , '/samp:Field1/UTI'
  3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
  4                ).getstringval() "XMLDATA"
  5  from chipsxmltable1 x
  6  ;

XMLDATA
--------------------------------------------------------------------------------

  No
  Y
  Y
  Y
  Y
  Y
  Y
  Y

 

Please see EXTRACT and EXTRACTVALUE documentation:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

Kind regards.

Tags: Oracle Development

Similar Questions

  • Need help to retrieve the XML file

    Hello

    I'm new to xml query and I need help badly. I have a file xml with the following content. I need help to extract data as:

    beginTimelocalDnmeasObjLdnhdlcRxErrAborthdlcRxErrCRChdlcRxErrLackOfBufs
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1240010200
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1000
    2015 07-28 T 14: 45:00 + 03:00ERSGSN01MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1000

    and the XML data I have are:

    <? XML version = "1.0" encoding = "UTF-8"? >

    <? XML-stylesheet type = "text/xsl" href = "MeasDataCollection.xsl"? >

    " < measCollecFile xmlns =" http://www.3GPP.org/FTP/specs/archive/32_series/32.435#measCollec ">

    < fileFormatVersion = "32.435 V9.0" fileHeader vendorName = "Ericsson" >

    < fileSender / >

    < measCollec beginTime = "2015-07 - 28 T 14: 45:00 + 03:00" / >

    < / fileHeader >

    < measData >

    < managedElement localDn = "ERSGSN01" / >

    < measInfo measInfoId = ' E1/T1, hdlc' >

    < job jobId = "Meas_E1T1_all" / >

    < duration granPeriod = "PT900S" endTime = "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < duration repPeriod = "PT900S" / >

    < p measType = "1" > hdlcRxErrAbort < / measType >

    < p measType = "2" > hdlcRxErrCRC < / measType >

    < p measType = "3" > hdlcRxErrLackOfBufs < / measType >

    < p measType = "4" > hdlcRxErrMaxFrameLen < / measType >

    < p measType = "5" > hdlcRxErrNonOctetAlign < / measType >

    < p measType = "6" > hdlcRxErrQueue < / measType >

    < p measType = "7" > hdlcRxOK < / measType >

    < p measType = "8" > hdlcRxOctets < / measType >

    < p measType '9' = > hdlcTxOK < / measType >

    < p measType = "10" > hdlcTxOctets < / measType >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.8.6.1" >

    < p r = "1" > 2400 / < r >

    < p r '2' = > 1020 / < r >

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.3.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < measValue measObjLdn="MagId.SlotId.E1/T1Trunk.FractionId=2.9.4.1" >

    < p r = '1' >/< r > 0

    < p r = "2" >/< r > 0

    < p r = "3" >/< r > 0

    < p r = "4" >/< r > 0

    < p r = "5" > </r > 0

    < p r = "6" >/< r > 0

    < p r = "7" >/< r > 0

    < p r = "8" > 0 </r >

    < p r '9' = > 295 / < r >

    < p r = "10" > 4130 / < r >

    < / measValue >

    < / measInfo >

    < / measData >

    < fileFooter >

    < measCollec = endTime "2015-07 - 28 T 15: 00:01 + 03:00" / >

    < / fileFooter >

    < / measCollecFile >

    Help, please. I tried to select a value using the following xml query which does not lead to any output:

    WITH t AS (SELECT xmltype (bfilename('SGSN_STAT_ERICSSON', 'A20150728.1445+0300-20150728.1500+0300_Meas_E1T1_all.52'), nls_charset_id('UTF-8')) FROM dual xmlcol)

    SELECT beginTime, localDn, measObjLdn, hdlcRxErrAbort, hdlcRxErrCRC, hdlcRxErrLackOfBufs

    T, XMLTABLE

    (XMLNAMESPACES ('http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec' as 'ns1'), )

    ' / measCollecFile'

    passage xmlcol

    columns

    beginTime PATH VARCHAR2 (32) ' / measCollec/@beginTime',

    localDn PATH VARCHAR2 (32) ' / measData/managedElement@localDn',

    measObjLdn PATH VARCHAR2 (32) ' / measData/measInfo/measValue@measObjLdn',

    ["hdlcRxErrAbort PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="1 ']',

    ["hdlcRxErrCRC PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="2 ']',

    "[" hdlcRxErrLackOfBufs PATH VARCHAR2 (32) ' / measData/measInfo/measValue/r[@p="3 ']"

    )

    Sincere greetings

    Either way, using an XQuery FLWOR expression:

    select x.*
    from xmltable(
           xmlnamespaces(default 'http://www.3gpp.org/ftp/specs/archive/32_series/32.435#measCollec')
         , 'for $h in /measCollecFile
              , $v in $h/measData/measInfo/measValue
            return element row {
              $h/fileHeader/measCollec/@beginTime
            , $h/measData/managedElement/@localDn
            , $v/@measObjLdn
            , element r1 {$v/r[@p="1"]}
            , element r2 {$v/r[@p="2"]}
            , element r3 {$v/r[@p="3"]}
            }'
           passing xmltype(bfilename('TEST_DIR', 'test.xml'), nls_charset_id('AL32UTF8'))
           columns beginTime           timestamp with time zone path '@beginTime'
                 , localDn             varchar2(32)             path '@localDn'
                 , measObjLdn          varchar2(80)             path '@measObjLdn'
                 , hdlcRxErrAbort      number                   path 'r1'
                 , hdlcRxErrCRC        number                   path 'r2'
                 , hdlcRxErrLackOfBufs number                   path 'r3'
         ) x ;
    
  • Need help to retrieve the magnetic border

    As the title says, I need help to get the magnetic border thing (I don't know what his name). It helps a lot when I am rearraging my dekstop icon so that they are all neatly. Its the sticky feeling when you put an icon next to each other. I installed Stardock Fences before and which could lead to the missing or disabled?

    Hello

    • Right-click on an empty part of the desktop
    • Leave the mouse on the view
    • Click Align icons on the grid

    Tricky

  • Need help to retrieve the Satellite Pro C850 - 1 k 3

    Hello

    I'm new to this forum, but I really need someone's help that my laptop has had a virus on it, and I have to do a complete uninstall of windows 8, (it was preinstalled, so I don't have a restore disc)

    Every time I try to uninstall windows it says that some files are missing and to insert a disc of recovery of some sort that I did not.

    How can I do this?

    Thanks in advance for assistance.
    PS: I tried to create a recovery with a blank dvd disk but it says insert USB pen, I did not.

    > I tried to create a recovery with a blank dvd disk but it says USB pen insert, I did not.
    Usually, you can choose between USB flash memory and the DVD disc.
    Did you change this option before trying to create the recovery media?

    > When I try to uninstall windows it says that some files are missing and insert a disc of recovery of some sort that I did not.

    I have no idea what you tried to do, but the fact is that if you want to retrieve the laptop, you must use either the Toshiba recovery media (USB key or DVD disc) or recovery of HARD drive option, you can try:
    More details [here: http://aps2.toshiba-tro.de/kb0/TSB2A03ES0000R01.htm]

  • Need help to select the value of the affected line

    Hello! I need help to write a statement Select returns a value of the respective line in a table. I have a table that contains an id and a name of entity and a table of addresses with the lines of address, city, province/state, country, etc, which is linked through the identifier. There may be several lines in this table for any entity id given etc. which are distinguished by a type of address for example Mailing, billing, payment, shipping,. I'm writing a view that returns the name of the entity, the city and the State. I want to use the address of delivery, if it exists, otherwise, I want the broadcast address. One of these types of addresses will still exist, and it is possible that both will exist. I'm just back to SQL after a prolonged absence and am not familiar with some of the new features. I'm also new to the Oracle community. We are on Oracle 11.2. Any help would be greatly appreciated. Thank you!!

    P.S. I posted this question a couple of weeks and got some responses. But I can't find the post. I thought I posted it here, but who knows! As I said, I'm new on this.

    Hello

    Here is an example of how to join another table to results of Top - N all:

    WITH got_r_num AS

    (

    SELECT deptno, job, ename, sal, hiredate

    Rank () OVER (PARTITION BY deptno

    CONTROL OF CASE work

    WHEN PRESIDENT", THEN"A ".

    WHEN 'MANAGER' THEN 'B '.

    END

    ) AS r_num

    FROM scott.emp

    WHERE job IN ('MANAGER', 'PRÉSIDENT')

    )

    SELECT d.deptno, d.dname

    r.ename, r.job, r.sal, r.hiredate

    Got_r_num r

    JOIN scott.dept d.deptno d = r.deptno

    WHERE r.r_num = 1

    ORDER BY d.deptno

    ;

  • Need help to reset the values and toggle items based on a value

    Experts,
    I have a problem with the set_item_property
    Here's the background. I have a form with a single block, and a canvas. He has 10 points, depending on the value of the first element, the remaining items can be enabled or disabled.

    I wrote a trigger "pre-record", whereas before the outputs in the new record based on the value of the first element of the new record the other elements in the new record are enabled or disabled.

    The problem is any value of the box, if I put it in set_item_property ('blockname.item_name ', set', property_false), sound very good, but in a new record, when I tried to
    activate the same element to help set it set_item_property('blockname.item_name',enabled,'property_true) it does not work.

    In singles, I can do as property_false but not back to property_true.

    And when I used the command set_item_property ('blockname.item_name ', on', ") to reset the value back to its design time value form is to throw an error
    withMessage ' FRM-41046'.»

    Guys I need your help on this. Please let me know how can I this and why the error message when I try to reset the value.

    Property_false value ENABLED also affect the Update_allowed/Navigable FALSE at the same time. You must set these properties to return true explicitly, if that's what you hear ' market do not. Search for 'Propagation of changes to property' in Froms help for more details.

  • Help to retrieve the values of list delimited by the

    Hi all

    I have a procedure similar to that below and I'll send IN parameters from a screen of Apex.
    procedure getData (p_param1 in varchar2, p_param2 in varchar2)
    is
    begin
    
    
    for x in (select col1, 
                  from table
                  where colx = param1
                  and coly in (param2)
                  )
                  
    ....
    
    end;
    It works fine until the user chooses several values on the page of the Apex (that's a multiple selection list box). The values are passed to the procedure in a colon delimited list, it looks like
    VALUE1:VALUE2:VALUE3
    My question is, how can I analyze the values while the where clause looks like.
    ...
    where colx = param1
    and coly in ('VALUE1','VALUE2')
    ...
    or something like that?


    Thanks for any help.

    -Chris

    Hi, Chris,.

    If param2 is "John: Scott: Tom ', then

    WHERE   INSTR ( ':' || param2 || ':'
                  , ':' || coly   || ':'
                  ) > 0
    

    produces the same results as

    WHERE   coly IN ('John','Scott','Tom')
    

    If that's all you need to do with param2, I can't make a list of each element.

  • Need help to retrieve the password for user account Windows 8.

    I need help!

    I have configured my windows 8 "admin" or "user account" password for over a year now and I don't remember what it is. I tried to download a new antivirus on the computer software but it takes the administrators password to make changes to this laptop.

    How can I know what is this password and how do I solve the problem in order to be able to install new software?

    Thanks in advance

    Josh

    Hello

    "What to do if you forget your password Windows 8/8.1"

    http://Windows.Microsoft.com/en-us/Windows/what-do-forget-Windows-password#1TC=Windows-8

    If you have forgotten your Windows password, there are several ways to recover or reset:

    • If your PC is on a domain, your system administrator must reset your password.

    • If you use a Microsoft account, you can reset your password online. For more information, see the Web to reset your password page.

    • If you use a local account, use your index of password as a reminder.

    If you've tried these suggestions and still unable to connect:

    • If you have Windows 8.1, you will need to reinstall Windows.

    • If you have Windows RT 8.1, you will need to contact the manufacturer of your PC.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • Need help with setting the value of the variable in the callable statement in the OPS

    Hi all

    I use a callable statement in my code, I put the value as below.

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ("+

    ":1)" +

    "; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    but the problem is when the value of 1 is NULL, I'm not able to call the procedure, it is not inserting data into the table, but when the value of 1 is not null, it is able to call the procedure and inserting the data correctly.

    Please help me urgent.

    Hello

    Please make changes as below

    If (empRow.getLinenum (). ToString ()! = null)

    {

    String updateStmt = "BEGIN TEST_PKG. MAIN_PROCEDURE ('+': 1) «+»; END; « ;

    CallableStatement cstmt is getDBTransaction (.createCallableStatement(updateStmt,1));.

    cstmt.setString (1, empRow.getLinenum () m:System.NET.SocketAddress.ToString ());

    }

    Also check out the link Oracle Application Framework Dilip Articles: education prepared - controller

    Thank you

    Dilip

  • need help to get the value using the REGEXP_REPLACE function.

    I am trying to extract the value placed between "< listitems >... < / listitems >" but I am unable to get these value using the REGEXP_REPLACE function.
    select REGEXP_REPLACE('<InputParameters></ParamSet><listitems>14545454</listitems></ParamSet></InputParameters>'
    ,'(<InputParameters>.*<listitems>)(.*)(</listitems>.*<InputParameters>)'
    ,'\2') from dual;
    required output:
     1454554
    Can someone please help me achieve this goal.

    Hello

    You forgot the / before the last InputParameters. If fix you that, your code will work.

    Here is a slightly different way:

    SELECT  REGEXP_REPLACE ( '14545454'
                     , '^.*?(.*?).*$'
                     , '\1'
                     )     AS listitems
    FROM    dual
    ;
    

    Least to type, the less likely you will have to make typos.
    If there are 2 (or more) elements of listitmes, 1 will be returned.

    From Oracle 11.1, you can also use REGEXP_SUBSTR. I have Oracle 10.2 avaialable now, so I can test the following, but I think you'd say:

    SELECT  REGEXP_SUBSTR ( '14545454'
                     , '(.*?)'
                     , 1
                     , 1
                     , NULL
                     , 1
                     )     AS listitems
    FROM    dual;
    

    When it comes with the text that is or looks to, XML, consider using XML functions.

  • Need help to retrieve the Satellite L755 - 16 c

    My laptop Toshiba Satellite L755 - 16 c, have system image to recover in original configuration, its does not work now, when you try to run it, a pop window shows that window cant restart in Windows recovery environment to complete the recovery operation. I tried with the DVD I created before also now not working is not with it, the same message coming from recovery.

    I tried to create a new recovery media recovery media creator by a pop window shows only "window looking TRMCLchr.exe cant find, which may changed or moved.

    Please help me solve the problem to return the laptop to original configuration

    Originally posted by Francis B Payyappiilly
    ... When you try to run it, a pop window shows this window can not restart in Windows recovery environment to complete the recovery operation. I tried with the DVD I created before also now not working is not with it, the same message coming from recovery.

    Hello

    This is all a bit confusing to me. If you have created a recovery media in the past, you should be able to reinstall the recovery image using this media.
    To be honest I don't understand exactly what is happening and what message is displayed on the screen.
    Can you please write what you can see on the screen? Message description full please.

    Start your laptop and enter the BIOS. By default the BIOS settings and restart your machine. Press F12 at first upward and choose the boot for your recovery media device and start the installation with ENTER.

    Please describe exactly what happens when you do this.

  • Need help to find and replace grep using Xml tags!

    Hello world

    I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).

    Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.

    My expectation is the value of these update without deleting the XML tag.

    Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.

    Before running the Script: After running the Script:                                                                                                             

    Screen Shot 2016-09-17 at 5.03.18 pm.pngScreen Shot 2016-09-17 at 5.09.31 pm.png

    Code:

    var flgGREP="[$]\\d+[.]\\d+"
    var Price="$24.10"
    myLine=app.selection[0];
    FindReplaceValue(flgGREP,Price,myLine);
    function FindReplaceValue(findValue,replaceValue,Sapps){
        app.findGrepPreferences = app.changeGrepPreferences = null;  
        app.findGrepPreferences.findWhat = findValue;  
        app.changeGrepPreferences.changeTo = replaceValue;
        Sapps.changeGrep(); 
    }
    

    -yajiv

    This is because the XML (opening and closing of the representations) tag is a special character but a generic.

    So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.

    However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.

    Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).

    Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:

    var root = app.activeDocument.xmlElements[0];
    var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" );
    var tag;
    
    while ( tag = copy_frame_tags.pop() ) {
         tag.contents=="00.00" && tag.contents="24.10";
    }
    

    HTH

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • Need help to set the values of the scrolling effects in Muse

    Hello

    I'm working on a new Web site and I have a created a strip behind my menu I want to scroll down and line up with the menu to each anchor point for every article on the site of the only page I've created. I applied the correct values for the scrolling to the first anchor point successfully, but now I have a problem of adjustment to get the same effect for the second anchor.

    Help, please. I've included a link to my site published the catalyst for the company.

    Thank you!!

    Paul Normanhttp://indicted-scrolltest-1-7-15-2015.businesscatalyst.com

    When you use the scroll effect, you don't have the ability to create more than two "key frames" (first motion motion / final). The effect sought to achieve would need to have several "key frames".

    The effect of what you want, you need to create several bars and making them appear and disappear for each sector.

    Or you could PIN just the bottom bar to a specific location on your site, unfortunately there is no movement that you are after,

    but it can be positioned correctly.

  • I need help to retrieve the windows defender in my cpu

    Some time ago, I had spyware doctor™ as my antivirus program, it seems somehow I deleted windows Defender, yesterday, I received a messagein my cpu "expired" so I've updated but still does not work, I checked in the Security Center and he showed me a white page that says windows defender;" but I can't open the cause my processor cannot find this program... How can I get it back? I followed the solution that microsoft it but still does not... u can help me please? Oh, it shows the error code is not if safe on the last digit 80070008 im...

    Again I want to thank you for your help and for having the patience again, I followed the steps you recommended. I typed services.msc in Start menu and when I found the winddefend service, is not specified if is automatic or manual startup type, there empty, when I double click on it, it showed me the following message:
                                                                                     the system cannot find the specified file
                                                                                     
    but there is a startup message blue on the left upper side of the service window, when I click on it to start after a few seconds of download (2 or 3), he has shown the following message:
                                                                                    Windows failed to start service on the local computer winddefend
    error 126: the specified module could not be found
    I don't know what else to do, can u please help me with this once more? I don't want to be a pain in the neck, but I really want to fix this processor. do I have to erase everything on my cpu and restart everywhere? He could return to the original values?, Oh another thing... when I click on the icon to vote useful how support is... I click it is only cero and 1 options or there are higher scores? If yes tell me how I mark your top help... I hope I hear from you soon... and once again thank you for the time spend you in my problem Mr. Ajay K.

  • Need help to retrieve the Satellite L750

    Hello

    My laptop fell to the ground. HARD drive has been damaged. Not bootable.

    I could only recover file recovery disk HARD of L: (recovery partition). Because a copy of the record of recovery disk on another PC and the HARD drive was completely unreadable

    I have no recovery discs.

    How can I recover the folder HDDrecovery BONES? (Already bought new HARD drive)

    Thanks for your help

    Hello

    Unfortunately, you cannot start file recovery image installation. It works a little different.
    What you can try is to read http://aps2.toshiba-tro.de/kb0/HTD4103KB0000R01.htm and check if you can somehow create recovery media follows instructions described here.

Maybe you are looking for