Please explain how to handle
iam reading some value from a file and write to another file.In the reading file contains
<edm:fromReference>268520629#268771030</edm:fromReference>
<edm:OrderItem>
<edm:Order orderID="1024560"/>
<edm:fromReference>1024560</edm:fromReference>
<edm:fromLegalEntity legalEntityID="01000908">
<edm:Identifier>01000908</edm:Identifier>
</edm:fromLegalEntity>
</edm:OrderItem>
these following i want output 1024560 (<edm:fromReference>) inside order item .......in the above case(<edm:fromReference>) comes two times but inside<edm:OrderItem>&</edm:OrderItem>i only need.....these are differnt lines.....can any body please help with code
OK...do you know what XML is? Are you aware that the text you posted in XML?
Well, it is.
OK, now what you're asking for is a way to get data out of the XML you posted. Well, that's called parsing! What you're doing is parsing! Even if you don't want to call it parsing, that's what you're doing!
So the question isn't, do you want or need an XML parser; the question is whether you're going to write your own or reuse another.
It looks like you're dead set on writing your own, presumably with lots of hardcoded stuff for the issue at hand. Fair enough. The way a person would do this is by searching the text for strings that have special meaning, then keeping track of the data you tease out of it, until you find the data you're looking for. You've already started to do that.
Given the requirements you've described, you're going to have to keep track of tags you've already seen, in a boolean variable that indicates whether you're "inside" a particular pair of opening and closing tags. Then you get to keep track of whether you've found a particular datum. Combine that datum with the flag and you've got your output. I've already told you how to do this.
You can use regular expressions to make this easier. I've already told you about that too.
Personally, I have no desire to write poor code. So I'm not going to do this for you. But I've given you plenty of information to learn how to do it yourself, and you're free to ask about the details.
So good luck!
Similar Messages
-
Can someone please explain how to download all my songs from cloud without having to tick each cloud individually
Music > iTunes Store > Music Quick Links > Purchased > Not in My Library > Download All.
tt2 -
I am having email problems with the new Mountain Lion. stmp, imap, etc. I have looked up google info and It is confusing when it comes to TS, SSL also, please explain how to set it up so my email goes out and comes in securely. Help
Incoming Mail (IMAP) Server - requires SSL:
imap.gmail.com
Use SSL: Yes
Port: 993
Outgoing Mail (SMTP) Server - requires TLS:
smtp.gmail.com (use authentication)
Use Authentication: Yes
Use STARTTLS: Yes (some clients call this SSL)
Port: 465 or 587
Account Name:
your full email address (including @gmail.com) Google Apps users, please enter username@your_domain.com
Email Address:
your full Gmail email address ([email protected]) Google Apps users, please enter username@your_domain.com
Password:
your Gmail password
The Quick Answer
Follow the instructions below to set up IMAP1 access in most email clients.
Google Apps users, please follow the default instructions unless otherwise noted, replacing 'your_domain.com' with your actual domain2 name.
this is all greek to me. WHAT IS STARTTLS? On the first page of Apple set up there is a TLS certificate and it is marked NONE- should I change it to the long APPLE CERT option? The next page under ADVANCED: THERE IS A BOX SSL MARKED. Then IMAP Path Prefix - I put stmp.gmail.com.. is that right? Port 993 can use this one? as 456 doesn't work and 587 said it wasn't safe. Under AUTHENTICATION I used PASSWORD. Should I have used external client cert TLS?
Please help me set this up securely. ThanksApple - Support - Mail Setup Assistant
-
I just purchased a new laptop, so consequently had to buy Itunes Match to get all of my music back. Now everything is in the cloud, and I can't play them and cannot make a cd. Please explain how I can get my library out of the cloud and keep them on my computer so they are available when I want them? Wow.......why have you made everything so difficult now?
SKF5656 wrote:
I just purchased a new laptop, so consequently had to buy Itunes Match to get all of my music back.
No you didn't.
Now everything is in the cloud
Except for anything you did not purchase in iTunes Store.
Only you iTunes purchases are in the cloud.
Reada the article that brenden dv posted to copy your iTunes library to new computer. -
In Pages 09 we can do Mail Merge and Import Styles from a document. Can someone please explain how we can do this with the new version of Pages 5.1. Even Apple solutions are only valid for Pages Version 09. What a DOWN GRADE! Thank god Pages 09 is still there.
…and the other 98 missing features.
Just use Pages '09, which should be in your Applications/iWork folder.
Rate/review Pages 5 in the App Store.
Peter -
Please explain how the method CHECK_CHANGED_DATA works?
Hi experts,
Can any of you experts please explain how the method <b>CHECK_CHANGED_DATA</b>
of <b>CL_GUI_ALV_GRID</b> class works ?
Thanks in advance
regards,
AshwinDATA: l_valid TYPE c.
Data grid1 type ref to cl_gui_alv_grid.
CALL METHOD grid1->check_changed_data IMPORTING e_valid = l_valid.
This method checks if any data is changed on the grid if there any editable fields .
And updates the changed values
Message was edited by:
Chandrasekhar Jagarlamudi -
Can somebody please explain how to format and then reinstall Mac lion10.7 without cd
can somebody please explain how to format and then reinstall Mac lion10.7 without cd
You will need either an Ethernet or Wifi Connection to the Internet - USB Mobile device is not supported.
If you already have Lion installed you can boot to Recovery with Command R and use the Disk Utility to erase the Macintosh HD and then reinstall the OS from the Mac OS X Utilities.
You will need the Apple Id used for purchase if the Mac did not ship with Lion installed originally.
If you want to repartition the HDD you can use the Recovery Disk Assistant to make a recovery USB drive
http://support.apple.com/kb/DL1433
http://support.apple.com/kb/HT4848
As Always - Back up the Mac before erasing unless you are confident there is absolutely nothing on the mac that you might possibly need later.
If the machine is a 2011 build or later you might be able to boot to Internet Recovery with Command Option R -
Could you please explain how to work with Outlier Correction
could you please explain how to work with Outlier Correction
Hi sr,
Actually an outlier correction is an historical value that lies the tolerance lane.
the apo sys calculate this tolerance lane on the basis of the sigma factor.
It then correct any historical value that lies outside the upper or lower band of this tolerance lane.
So, that it corresponds to the calculated ex- post value for that point in time.
this option is available in Master forecast profile /sapapo/mc96b in Univariate profile( control parameters) tab.
If you have set the outlier correction indicator, then the sys first calculate an ex-post forecast with the selected forecasting techniques.
In the next step, the sys calculates a tolerance threshold T.
where T is calculated as T = sigma * MAD (Mean Absolute Deviation)
Here the Sigma factor defines the width of the tolerance rangefor automatic outlier correction.
it defines the permissible number of standard deviations.
A small sigma factor means a low tolerance, and a large number of outliers that are detected and corrected.
The default Sigma factor is 1.25.
If you set the Sigma factor, SAP recommends that you set it betw 0.6 and 2.
I hope this is helpful for you.
Regards,
Pullaiah -
Hi guys, can you please explain how to perform automatic system scan with CleanApp - it looks like it wants me to manually chose files to delete and I just want an automatic scan (like cleanmymac does)
Slowness...First Try using Disk Utility to do a Disk Repair, as shown in this link, while booted up on your install disk.
You could have some directory corruption. Let us know what errors Disk Utility reports and if DU was able to repair them. Disk Utility's Disk Repair is not perfect and may not find or repair all directory issues. A stronger utility may be required to finish the job.
After that Repair Permissions. No need to report Permissions errors....we all get them.
Here's Freeing up Disk Space.
DALE -
Hi there,
i have Q i have excel file it need to be block with password. Could you please explain how i make password protect to Excel document
ThanksOn the File menu, click Save As.
On the Tools menu, click General Options.
Do either or both of the following:
If you want users to enter a password before they can view the workbook, type a password in the Password to open box, and then click OK.
If you want users to enter a password before they can save changes to the workbook, type a password in the Password to modify box.
NOTE Unlike passwords you specify in the Password to open box, passwords you specify in the Password to modify box are not encrypted. These passwords are only meant to give specific users permission to modify workbook data. For optimal password security, it's best to assign both passwords. An encrypted password to access the workbook, and one to provide specific users with permission to modify its content. IMPORTANT Use strong passwords that combine uppercase and lowercase letters, numbers, and symbols. Weak passwords don't mix these elements. Strong password: Y6dh!et5. Weak password: House27. Use a strong password that you can remember so that you don't have to write it down.
If you want to use a different encryption type, click Advanced, click the type you want in the Choose an encryption type list, and then click OK.
If needed, specify the number of characters you want in the Choose a key length box.
NOTE Document property encryption is enabled by default for most encryption types and providers. It prevents unauthorized users from viewing summary and custom file properties (such as the author or any custom file information) in theProperties dialog box. When users right-click the password-protected file, and then click Properties, information won't be available on the Summary tab and Customtab. Authorized users, however, can open the file and view all file properties (Filemenu, Properties command). To disable document property encryption, clear theEncrypt document properties check box.
Click OK.
When prompted, retype your passwords to confirm them.
Click Save.
If prompted, click Yes to replace the existing workbook.
NOTE You can also secure a workbook with a password on the Security tab of the Options dialog box (Tools menu, Options command). -
Could someone please explain how to check for flashback, to a beginner?
Could someone please explain how to check for flashback, to a beginner? Thanks.
Install all of the available software updates. If you have flashback it will be automatically removed.
-
Please Explain how to use extensions..
We are using Agile D2R PIP, we do have some cutomizations. to enable the Extensions, we need change the following extensions to True.
<Property name="ABCSEXTENSION.PREPROCESSABM">false</Property>
<Property name="ABCSEXTENSION.POSTPROCESSABM">false</Property>
<Property name="ABCSEXTENSION.PREPROCESSEBM">false</Property>
<Property name="ABCSEXTENSION.POSTPROCESSEBM">false</Property>
My question is to extend the Provider ABCS service, i will prefer set true for PREPROCESSEBM and POSTPROCESSABM.
But In Environment A we have the properties like below
<Property name="ABCSEXTENSION.PREPROCESSABM">false</Property>
<Property name="ABCSEXTENSION.POSTPROCESSABM">true</Property>
<Property name="ABCSEXTENSION.PREPROCESSEBM">true</Property>
<Property name="ABCSEXTENSION.POSTPROCESSEBM">false</Property>
In Environment B the properties are like below,
<Property name="ABCSEXTENSION.PREPROCESSABM">true</Property>
<Property name="ABCSEXTENSION.POSTPROCESSABM">true</Property>
<Property name="ABCSEXTENSION.PREPROCESSEBM">true</Property>
<Property name="ABCSEXTENSION.POSTPROCESSEBM">false</Property>
But the functionality on both Environments is same. Can you please explain me how really extension processes works in the two cases..?
Thanks
SKPlease refer to:
http://docs.oracle.com/cd/E20713_01/doc.11112/e17364.pdf
13.1.2. Introduction to Enabling Provider ABCS for Extension
http://docs.oracle.com/cd/E23549_01/doc.1111/e17363/chapter06.htm#BABEAIFG
6.5 Process Extensions
As 'ABCSEXTENSION.PREPROCESSABM' is different, compare input/output payload of ABCS extension service in both environment for the difference.
Also check PreprocessABMSequence in ABCS and what's done inside your ABCS extension service.
What's the Prov ABCS service you r referring to?
Regards,
Faiz -
Can you please explain how this query is fetching the rows?
here is a query to find the top 3 salaries. But the thing is that i am now able to understand how its working to get the correct data :How the data in the alias table P1 and P2 getting compared. Can you please explain in some steps.
SELECT MIN(P1.SAL) FROM PSAL P1, PSAL P2
WHERE P1.SAL >= P2.SAL
GROUP BY P2.SAL
HAVING COUNT (DISTINCT P1.SAL) <=3 ;
here is the data i used :
SQL> select * from psal;
NAME SAL
able 1000
baker 900
charles 900
delta 800
eddy 700
fred 700
george 700
george 700
Regards,
Renu... Please help me in understanding the query.
Your query looks like anything but a Top-N query.
If you run it in steps and analyze the output at the end of each step, then you should be able to understand what it does.
Given below is some brief information on the same:
test@ora>
test@ora> --
test@ora> -- Query 1 - using the non-equi (theta) join
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p1.sal AS p1_sal, p1.NAME AS p1_name, p2.sal AS p2_sal,
12 p2.NAME AS p2_name
13 FROM psal p1, psal p2
14 WHERE p1.sal >= p2.sal;
P1_SAL P1_NAME P2_SAL P2_NAME
1000 able 1000 able
1000 able 900 baker
1000 able 900 charles
1000 able 800 delta
1000 able 700 eddy
1000 able 700 fred
1000 able 700 george
1000 able 700 george
900 baker 900 baker
900 baker 900 charles
900 baker 800 delta
900 baker 700 eddy
900 baker 700 fred
900 baker 700 george
900 baker 700 george
900 charles 900 baker
900 charles 900 charles
900 charles 800 delta
900 charles 700 eddy
900 charles 700 fred
900 charles 700 george
900 charles 700 george
800 delta 800 delta
800 delta 700 eddy
800 delta 700 fred
800 delta 700 george
800 delta 700 george
700 eddy 700 eddy
700 eddy 700 fred
700 eddy 700 george
700 eddy 700 george
700 fred 700 eddy
700 fred 700 fred
700 fred 700 george
700 fred 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
700 george 700 eddy
700 george 700 fred
700 george 700 george
700 george 700 george
43 rows selected.
test@ora>
test@ora>This query joins PSAL with itself using a non equi-join. Take each row of PSAL p1 and see how it compares with PSAL p2. You'll see that:
- Row 1 with sal 1000 is >= to all sal values of p2, so it occurs 8 times
- Row 2 with sal 900 is >= to 9 sal values of p2, so it occurs 7 times
- Row 3: 7 times again... and so on.
- So, total no. of rows are: 8 + 7 + 7 + 5 + 4 + 4 + 4 + 4 = 43
test@ora>
test@ora> --
test@ora> -- Query 2 - add the GROUP BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
700 32 32 4 700 1000
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>Now, if you group by p2.sal in the output of query 1, and check the number of distinct p1.sal, min of p1.sal etc. you see that for p2.sal values - 800, 900 and 1000, there are 3 or less p1.sal values associated.
So, the last 3 rows are the ones you are interested in, essentially. As follows:
test@ora>
test@ora> --
test@ora> -- Query 3 - GROUP BY and HAVING
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT p2.sal AS p2_sal,
12 COUNT(*) as cnt,
13 COUNT(p1.sal) as cnt_p1_sal,
14 COUNT(DISTINCT p1.sal) as cnt_dist_p1_sal,
15 MIN(p1.sal) as min_p1_sal,
16 MAX(p1.sal) as max_p1_sal
17 FROM psal p1, psal p2
18 WHERE p1.sal >= p2.sal
19 GROUP BY p2.sal
20 HAVING COUNT(DISTINCT p1.sal) <= 3;
P2_SAL CNT CNT_P1_SAL CNT_DIST_P1_SAL MIN_P1_SAL MAX_P1_SAL
800 4 4 3 800 1000
900 6 6 2 900 1000
1000 1 1 1 1000 1000
test@ora>
test@ora>
test@ora>That's what you are doing in that query.
The thing is - in order to find out Top-N values, you simply need to scan that one table PSAL. So, joining it to itself is not necessary.
A much simpler query is as follows:
test@ora>
test@ora>
test@ora> --
test@ora> -- Top-3 salaries - distinct or not; using ROWNUM on ORDER BY
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
900
test@ora>
test@ora>
test@ora>And for Top-3 distinct salaries:
test@ora>
test@ora> --
test@ora> -- Top-3 DISTINCT salaries; using ROWNUM on ORDER BY on DISTINCT
test@ora> --
test@ora> with psal as (
2 select 'able' as name, 1000 as sal from dual union all
3 select 'baker', 900 from dual union all
4 select 'charles', 900 from dual union all
5 select 'delta', 800 from dual union all
6 select 'eddy', 700 from dual union all
7 select 'fred', 700 from dual union all
8 select 'george', 700 from dual union all
9 select 'george', 700 from dual)
10 --
11 SELECT sal
12 FROM (
13 SELECT DISTINCT sal
14 FROM psal
15 ORDER BY sal DESC
16 )
17 WHERE rownum <= 3;
SAL
1000
900
800
test@ora>
test@ora>
test@ora>You may also want to check out the RANK and DENSE_RANK analytic functions.
RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions123.htm#SQLRF00690
DENSE_RANK:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions043.htm#SQLRF00633
HTH
isotope -
Please Explain How To Install Windows 7 Onto A Samsung XP941 M.2 Drive
I have seen a dozen posts saying that this drive is bootable on the X99 platform (ASUS X99-E WS) and another dozen people say that it isn't. Someone at ASUS support said that some of the XP941s are bootable and others are not. WTF? How is that possible if they are all the same? Will some please explain exactly what steps to take to install Windows? I have all the latest drivers and BIOS. THe drive is already installed for storage.
The question really boils down to: Does the Asus X99-E WS support M.2 NGFF PCIe 3.0 x4, which is what is required for the XP941. M.2 support is too wide and uninformative, it may be limited to x2 and then the XP941 will not be bootable. Asus should be able to answer that. If it does not support it, then you have to either return the XP941 or use the ASRock X99 Extreme 11 motherboard or the Asus Rampage V Extreme, since both do support x4 if you need a bootable XP941.
The Samsung m.2 XP941 is an OEM disk. This means you are on your own. There is no support from Samsung, there is no warranty and Samsung Magician does not support it.
The companies that sell the XP941 to consumers, sell it as a replacement disk.
Maybe this can be helpful: http://vip.asus.com/forum/view.aspx?board_id=1&model=X99-DELUXE&id=20141028220241736&page= 1&SLanguage=en-us
The Asus site mentions on the Specifications page for the X99-E WS:
Intel® X99 chipset : *1
1 x SATA Express port, gray, compatible with 2 x SATA 6.0 Gb/s ports
1 x M.2 x4 Socket 3, gray, , with M Key, type 2260/2280 storage devices support (PCIE mode)
8 x SATA 6Gb/s port(s), gray, *2
Intel® Rapid Storage Technology supports*3
ASMedia® SATA Express controller : *4
1 x SATA Express port, gray, compatible with 2 x SATA 6.0 Gb/s ports
ASMedia® SATA Express controller :
1 x eSATA 6Gb/s port(s), gray, compatible with 2 x SATA 6.0 Gb/s ports
so it should work with a bootable XP941. -
Iphone 6 3 UK please explain how to use internet while not using wifi
when i bought my iphone 6 i placed my sim in to my phone from my previous blackberry. i have credit but no plan as im on pay as you go. despite not having a plan i still have internet when i turn mobile data on when im outside my house. it doesnt work well so can anyone explain how this works if there taking money from my credit and the best plan for me internet wise thanks
How do I ask a question on the forums?
SQL and PL/SQL FAQ
interesting code.
so what exactly is your problem?
Maybe you are looking for
-
System is not generating a spool request for Dep.?
Hi, When I am running a test run with 'planned posting run' system is not giving me any error but when I am executing it in a "repeat run" system comes up with a message "!! This processing can only be carried out as background processing !! But when
-
INCLUDING NEW VALUES in materialized view log
CREATE MATERIALIZED VIEW products_mv REFRESH FAST ON COMMIT AS SELECT SUM(list_price - min_price), category_id FROM product_information GROUP BY category_id; Could anybody tell me why INCLUDING NEW VALUES are necessary in materialized view log for su
-
Signature Reasons disappeared with upgrade to Acrobat XI
Our legal department uses the Certify with Visible Signature a lot. They have all created a number of custom Reasons, which they also use a lot. Today we upgraded a couple of them from Acrobat 9 to Acrobat XI, and their custom reasons are gone. How
-
BPC 7.5 NW Business Process Flow for setting a workstatus
Hi all, I implement a BPF which calls me the workstatus-screen to set any workstatus. I developed my BPF and give over some parameters from my step region (plant) and BPF instance (time). In the workstatus-screen I try setting workstatus with this fl
-
We need to have paging in the E-text Report . Below are the Requirments For a Company A there might be 8 Accounts and we want to show just 5 on one page and next 3 on the 2nd page followed by total . Please can some one help me to acheive this . A "P