How to convert a data set into a xml data and vice versa
i am new to oracle with xml..
my aim is to convert a data set into a xml data and vice versa..
my work is as follows...
my query:
select rggpk,rggcode,rggname from ms_regiongeo
to convert a data set into a xml*
select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual;
(this works fine and output of this query is as follows..)
<ROWSET>
<ROW>
<RGGPK>201</RGGPK>
<RGGCODE>Asia</RGGCODE>
<RGGNAME>Asia</RGGNAME>
</ROW>
<ROW>
<RGGPK>1</RGGPK>
<RGGCODE>OTH</RGGCODE>
<RGGNAME>Others</RGGNAME>
</ROW>
<ROW>
<RGGPK>21</RGGPK>
<RGGCODE>COB</RGGCODE>
<RGGNAME>Africa and Yemen</RGGNAME>
</ROW>
<ROW>
<RGGPK>2</RGGPK>
<RGGCODE>AUS</RGGCODE>
<RGGNAME>Australia</RGGNAME>
</ROW>
<ROW>
<RGGPK>23</RGGPK>
<RGGCODE>IND</RGGCODE>
<RGGNAME>Indian Sub Continent</RGGNAME>
</ROW>
<ROW>
<RGGPK>24</RGGPK>
<RGGCODE>TVM</RGGCODE>
<RGGNAME>North America</RGGNAME>
</ROW>
</ROWSET>
and to reverse this process, I tried a query like this..*
select EXTRACTVALUE (XML_DATA,'ROWSET/ROW/RGGPK') as EMP_ID
from(
select XMLType(trim(replace(dbms_xmlgen.getXML('select rggpk,rggcode, rggname from ms_regiongeo'),'<?xml version="1.0"?>',''))) XML_DATA from dual
)tab1but failed.. and raised with an eror: ORA-19025
help me..
regards,
john
Hi-
my aim is to convert a data set into a xml data You can refer to the below posts
Adding namespace to XML output
Re: how to convert table data in xml format based on the xsd.
Similar Messages
-
How to change view in iPhone from vertical to horizon and vice versa?
How to change view in iPhone from vertical to horizon and vice versa?
Not all applications will go from Portrait to Landscape. Changing just requires you to turn the device. However, if you have the orientation lock activated, then it will not change to landscape. To check, look in the status bar and see if you can see a small lock shaped icon near the battery icon. If you do, then orientation lock is activated. To turn it off, swipe upwards from the bottom of the iPhone screen to bring up Control Center. The orientation lock is the last icon on the top row to the right. Tap on it to turn it off. White is on, black is off.
-
How to convert the TEXT file into an XML using plsql code
Hi all ,
I need to convert an TEXT file into an XML file how can i do it
Below is my sample TEXT file .
TDETL00000000020000000000000120131021115854ST2225SKU77598059 0023-000000010000
I want the above to be converted into the below format
<?xml version="1.0" encoding="UTF-8"?>
<txt2xml>
<!-- Processor splits text into lines -->
<processor type="RegexDelimited">
<regex>\n</regex>
<!--
This is used to specify that a message should be created per line in
the incoming file;
NOTE: this was designed to work with all the processors, however it
only works correctly with 'RegexDelimited' processors (check the
enclosing top processor type)
-->
<maxIterationsPerMsg>1</maxIterationsPerMsg>
<!-- For lines beginning with FHEAD (File Header) -->
<processor type="RegexMatch">
<element>FHEAD</element>
<regex>^FHEAD(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,Type,Date</element>
<regex>^(\d{10})(\w{4})(\d{14})$</regex>
</processor>
</processor>
<!-- For lines beginning with TDETL (Transaction Details) -->
<processor type="RegexMatch">
<element>TDETL</element>
<regex>^TDETL(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,TransControlNumber,TransDate,LocationType,Location,ItemType,Item,UPCSupplement,InventoryStatus,AdjustReason,AdjustSign,AdjustQty</element>
<regex>^(\d{10})(\d{14})(\d{14})(\w{2})(\d{4})(\w{3})([\w ]{13})([\w ]{5})(\d{2})(\d{2})([+-]{1})(\d{12})$</regex>
</processor>
</processor>
<!-- For lines beginning with FTAIL (File Tail) -->
<processor type="RegexMatch">
<element>FTAIL</element>
<regex>^FTAIL(.*)</regex>
<processor type="RegexMatch">
<element>OriginalLine</element>
<regex>(.*)</regex>
<consumeMatchedChars>false</consumeMatchedChars>
</processor>
<processor type="RegexMatch">
<element>LineSeq,TransCount</element>
<regex>^(\d{10})(\d{6})$</regex>
</processor>
</processor>
</processor>
</txt2xml>
ThanksSorry, that doesn't make much sense.
The XML you gave is a configuration file for txt2xml utility. It doesn't represent the output format.
Are you a user of this utility? -
How can user view Central Person ID by Personnel Number and Vice Versa?
Dear Experts,
We are not using Concurrent Employment, but since Talent Management requires to use the Central Person object, we have created the relative objects for the employees. What I want to know is, how can user view the Central Person ID by a personnel number and vice versa easily?
Thanks,
StevenNot User friedly
This logic is in Function Group HRTMC_PPOM, screens 0700 and 0710.
You can copy it to Z and change search.
In transaction OOFRAMEWORKCUST for scenario TMC_PPOM change Report in "Tab Page in Scenario for each Object Type" from HRTMC_PPOM to new Z*. -
I always add new phone numbers on my iPhone Contacts, while new email addresses are always added on my Mac Contacts. The result is that I dont have my recent email contacts on my phone, while on the Mac I dont have the recent phones.
I would like to have ONE common list of contacts (same for iPhone & Mac) which will be AUTOMATICALLY updated for both, once I add a new entry.
I am not sure how to do this with syncing, I am afraid I wll lose my old contacts. Can I do this with iCloud?Hello there, Seta.
You are correct that this can be done with iCloud. The following Knowledge Base article provides some great instruction for syncing contacts:
iOS: How to transfer or sync content to your computer
http://support.apple.com/kb/ht1296
Particularly:
Contacts, Calendars, Bookmarks, and Notes
You can sync contacts, calendars, bookmarks, and notes with other applications on your computer. This allows you to keep all your information in sync across multiple computers and iOS devices. The settings for these items are all in the Info tab for your iOS device in iTunes. With your iOS device connected to the computer, select your iOS device. Then click the Info tab.
For details on syncing content on your iOS device with your computer, click the sections below.
Contacts
To sync contacts with your computer, choose "Sync Contacts with" within iTunes for Windows, or "Sync Contacts" in OS X v10.8, or "Sync Address Book Contacts" in OS X v10.7 and earlier.
You can sync your contacts with:
Microsoft Outlook 2003, Microsoft Outlook 2007, Microsoft Outlook 2010 (Windows XP, Windows Vista, Windows 7, and Windows 8)
Windows Address Book (Windows XP)
Windows Contacts (Windows Vista, Windows 7, and Windows 8)
Address Book (Mac OS X v10.7 and earlier)
Contacts (Mac OS X v10.8)
Microsoft Entourage 2004, Microsoft Entourage 2008, or Microsoft Outlook 2011 for Mac
Notes:
When syncing contacts, you can choose to sync all of your contacts or only selected groups. The option to sync selected items may not show up until after the first sync.
You can select a group of contacts to which all new contacts created on your iOS device will be added.
Additional options for syncing include syncing your contacts with Yahoo or Gmail/Google Mail. You will need to configure it with the user name and password for your Yahoo or Google account.
Thanks for reaching out to Apple Support Communities.
Cheers,
Pedro. -
Data from R/3 to APO and vice versa
Hi,
Does anyone know what data is usually sent from R/3 to APO and from APO to R/3?
ThanksHi Disha,
could you please let me know what is PPM and also what data is transferred back to R/3? -
While inserting numeric data into a character datatype field and vice versa
Sir,
I have a very basic qiestion.Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?Iam using Oracle Database 10g Enterprise edition.Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?
Oracle tries an automatic conversion, when possible. Post an example of a character type data inserted into a numeric column. -
How to connect an non-hana-ewm with an Hana-ECC and vice versa
Hello,
for our migration project planning I am wondering how to connect EWM on SAP with ECC on Hana and vice versa.
As it is, both systems are (productive) on non - hana with actual SAP-Release and have to be migrated.
The background of my question: we may be not able do the "big bang" thing to migrate ERP ECC607 and EWM (with special Add-Ons) at one point to Hana (DMO) and therefore may need an interim solution. I checked ETL and LTS as "connectors" but they - from my point of view - are one-way solutions from EWM to ECC/Hana -not bidirectional.I Found some questions concerning the same theme in the net but no solution at all till now..
How about BODS ? (Didnt work with it yet)
Best regards,
RonaldGreat. So I have to either install OS X, or buy a new mcahine. Can OS X run on a G3 without grinding to a halt?
By the way, I cannot get the iPod to even mount when connected via firewire. The USB/firewire PCMCIA card does not have drivers for OS 9. I thought that this support was built into OS 9. The USB port works (although the iPod will not mount when connected via USB either). Any ideas?
Thanks -
How to convert an NWDI project into a Local project?
Hi Experts,
Please tell me " how to convert an NWDI project into a Local project? "
If you cHi Srini
1. Copy/Paste Webdynpro components in the new project as was suggested before
2. Or create new project, copy _comp folder from old project to the new one. But, do not forget to update .dcdef & .project files manually after this. You have to set the correct project name in .dcdef and set the correct local project path in .project.
BR, Sergei -
How to convert trailing minus sign into the leading minus sign
Hi
Can any plz tell me How to convert trailing minus sign into the leading minus sign? I mean in PI the amount filed shows like 150.00- i want to convert that into -150.00.
Thanks
GovindaHi Shabarish,
The code works but what if the input is something like [ 10.000-] i.e. with some spaces before 10.000- and the output as per your code comes as [- 10.000]. How do we tackle such cases if there is inconsistency in data i.e. some values come as [ 10.000-] i.e. spaces before the number and some values as [12.000-].
The output of this will come as
[- 10.000]
[-12.000]
How to make it as
[-10.000]
[-12.000]
Regards,
Shaibayan -
How to convert a protected document into a PDF?
Hello,
I need to develop a plugin that needs to convert a protected document in office format into a pdf. I looked into the sdk and found the method AVConversionConvertToPDFWithHandler (). But can this method also apply the digital rigths of the protected document to the newly created pdf?
Is there any other way to convert a protected document into a pdf and at the same time apply the rights to the pdf? I don't want to use Adobe LiveCycle for digital rights management.
What are the requirements to develop a DRM plugin for acrobat?
Please Help!
Thanks in advance!The AVConversion APIs will use Office itself to perform the conversion (well, the rendering part). I would ASSUME that when Office opens the document, it will ask for any necessary passwords or other information to determine if the user has the rights to view and/or process the content of the document. If they do, then the conversion will succeed otherwise it will fail. The PDF will not have any DRM applied to it, since we don't know anything about the Office DRM options.
If you wish to apply DRM to the PDF, you will need to do that yourself or using tools such as LiveCycle Rights Management.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Tue, 29 Nov 2011 02:26:37 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: How to convert a protected document into a PDF?
How to convert a protected document into a PDF?
created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4051919#4051919 -
Hi,
I have done googling for how to convert org.dom4j.Document into org.w3c.dom.Document , but could not get any usefull data.
If any one is having solution or any idea, please reply.
Thanks in advance
<!--Session data-->Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.
-
How to convert a PDF file into a full editable WORD file?
Hi,
I tried to convert a pdf file into word but it is not fully editable. I can edit the title from the main page and that's it. The rest of the word document is saved as image. I tried editing teh pdf file but that one is not working either.
Please help on how to convert a PDF file into a full editable WORD file.
Thank youNot all PDF files are created equal. When a PDF file is created with Adobe Tools it is usually "tagged" with information about the fonts the images, the layout etc... This way when the PDF is saved to a new format like PPT or DOC then the results are usually usable. However, if you have a PDF file that was not tagged for some reason then run the Accessibility tools on the PDF to acquire some basic tagging. This may get you a better result. Also if you have a PDF that is an image, then you may want to run OCR on it.
-
How to convert my MM alias into an AppleID to use it with iCloud?
I used MobileMe and created a mail that became my Apple ID. Then I created an alias that became my main e-mail so now with iCloud I wish that aslias could become my Apple ID. I don't care to loose the first Apple ID but "How to convert my MM alias into an AppleID to use it with iCloud?"
You cannot convert an alias to Apple ID.
You can transfer your MM to iCloud with your main Apple ID.
There will be your alias as well.
Regards -
How to convert an int variable into String type
hi everybody
i want to know how to convert an interger variable into string variable
i have to implement a code which goes like this
Chioce ch;
for(int i=0;i<32;i++)
// here i need a code to convert the int variable i into a string variable
ch.add(String variable);
how do i convert that int variable i into a String type variable??
can anyone help me?Different methods:
int a;
string s=a+"";or
String.valueOf(int) is the better option because Int.toString() generated an intermediate object to get the endresult
Ema
Maybe you are looking for
-
How to change the type of Case selector
Hallo, I'm running LV 6i on NT4.0. I have a Case structure with several strings as cases, lets say stringA (Standard), stringB, stringC, stringD and so on. So my Case selector is of type string. That works fine so far. Now I want to change that struc
-
Is there a step by step somewhere for using the iCloud Beta?
Windows 7 64bit / iTunes 10.4.80 Is there a step by step somewhere for using the iCloud Beta? I assume we can activate it after reading Apple advertizing on the Beta and 10.4.80. I don't see anything on iTunes that would get me there - Thank you fo
-
I have restored my desktop a1744x and when i went to activate my product key it says its invalid
need help
-
Hi, what is impact of following scenario. GR date and qty 20/05/2008 and material A:qty: 100 material B:qty: 100 MIRO: on 30/05/2008 qty: 100 during miro creation in that particular plant there was only 50 qty of material A ( rest of the stock is c
-
TS1702 Lost pictures and txt when upgrade to iOS
How do I retrieve pics and text messages after update to iOS