Need help please DBMS_XMLQUERY
Hello ,
i am trying to generate a xml in a db orcle 9i release Release 9.0.1.4.0 so i don not have many of the new functionality
the code i am trying to execute is the foolowing
DECLARE
p_entityid LONG;
p_entitylegalname VARCHAR2(100);
p_businesstradenameone VARCHAR2(100);
p_businesstradenametwo VARCHAR2(100);
p_businesstradenamethree VARCHAR2(100);
p_dunsnumber NUMBER;
queryctx DBMS_XMLQUERY.ctxtype;
RESULT CLOB;
BEGIN
queryctx :=
SYS.DBMS_XMLQUERY.newcontext
('select :p_EntityID EntityID, :p_EntityLegalName EntityLegalName ,
cursor( select :p_BankAccountID BankAccountID ,
:p_BankCode BankCode
from dual ana) AS dt
from dual ana');
SYS.DBMS_XMLQUERY.setrowsettag(queryctx, 'CreateEntityRequest');
SYS.DBMS_XMLQUERY.setrowtag(queryctx, 'Entity');
SYS.DBMS_XMLQUERY.setbindvalue(queryctx, 'p_EntityID', 1);
SYS.DBMS_XMLQUERY.setbindvalue(queryctx, 'p_EntityLegalName', ' prueba');
SYS.DBMS_XMLQUERY.setbindvalue(queryctx, 'p_BankAccountID', 23);
SYS.DBMS_XMLQUERY.setbindvalue(queryctx, 'p_BankCode', '123');
RESULT := SYS.DBMS_XMLQUERY.getxml(queryctx);
printclobout(RESULT);
SYS.DBMS_XMLQUERY.closecontext(queryctx);
END;
these give me the following xml
| <?xml version = '1.0'?>
| <CreateEntityRequest>
| <Entity num="1">
| <ENTITYID>1</ENTITYID>
| <ENTITYLEGALNAME> prueba</ENTITYLEGALNAME>
| <DT>
| <DT_ROW num="1">
| <BANKACCOUNTID>23</BANKACCOUNTID>
| <BANKCODE>123</BANKCODE>
| </DT_ROW>
| </DT>
| </Entity>
| </CreateEntityRequest>
the problem that i have is it writes this tag <DT_ROW num="1"> that i do not want an also it puts in the tag <Entity num="1"> the num="1"
does sono one know how remove it
i am desperate many thanks
ana
Hello
I've read about the same problem on different places and everyone provides an alternative instead of the real solution.
After reading soms specs on the Oracle website, I found this simple solution:
dbms_xmlquery.setrowidattrname(query_ctx, NULL); -- default num
dbms_xmlquery.setrowidattrvalue(query_ctx, NULL);
Simply clear the default attribute (which is a constant of xmlquery) and it's value and you are set.
Kind Regards
Bjorn Ongenae
iAdvise Consulting
Similar Messages
-
How can I add a new Template to My Templates in Pages? I've read most of the discussions on the subject but it doesn't work for me. By the time I reach the Templates folder, I only see templates for Numbers and not for Pages. Need help, please. Thanks
Si vous avez utilisé la commande Save As Template depuis Pages, il y a forcément un dossier
iWork > Pages
contenant Templates > My Templates
comme il y a un dossier
iWork > Numbers
contenant Templates > My Templates
Depuis le Finder, tapez cmd + f
puis configurez la recherche comme sur cette recopie d'écran.
puis lancez la recherche.
Ainsi, vous allez trouver vos modèles personnalisés dans leur dossier.
Chez moi, il y en a une kyrielle en dehors des dossiers standards parce que je renomme wxcvb.template quasiment tous mes documents Pages et wxcvb.nmbtemplate à peu près tous mes documents Numbers.
Ainsi, quand je travaille sur un document, je ne suis pas ralenti par Autosave.
Désolé mais je ne répondrai plus avant demain.
Pour moi il est temps de dormir.
Yvan KOENIG (VALLAURIS, France) mercredi 23 janvier 2011 22:39:28
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
I am trying like **** to download itunes 10.6.3 (64 bit - Windows 7) and I keep getting "the installer was interrupted before the requested operations for iTunes could be completed. Your systems has not been modified." I NEED HELP, PLEASE!
I got it figured out myself... yaaaaay for me!
-
After my iphone4S update to 7.0.6, it have a problem that keep searching network then no service show on display. Can't call. I have try check sim card, reset network settings, and restore my iphone. Still not working at all. Need help please.Urgent.TQ
Izit software or hardware? Confuse:(
Only can use wifi now.
Any way thanks guys for ur suggestion:) amishcake and simes -
Bought a new macbook and want to manually manage music onto my iphone 4s (as it is already full of music from old windows laptop) but when i click 'manually manage' and then 'apply' i get the message saying it will erase everything already on there. Need help please!
Before you sync your iPhone make sure that all the music that was synced to your phonereviously has been copied to your iTunes on the new MacBook Pro. Then when you connect your phone you will be able to either sync all music or select only those playlists that you want on the phone.
-
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Contact iTunes
Contact iTunes -
Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.
Hello Vaidas Vaidas,
It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
Apple ID: Changing your password
http://support.apple.com/kb/ht5624
What is preventing you from changing your password? Any error messages or prompts?
Thank you for using Apple Support Communities.
All the best,
Sterling -
i dont know how i got my photos to my ipod touch from my pc and now i wanna delete them but couldn't. so need help. please let me know.
To turn off auto sync - launch iTunes and go to Edit>Preferences>Devices - check the box at the bottom that says - Prevent iPod, iPhones and iPads from syncing automatically. Click OK and then quit iTunes.
Connect your iDevice to your PC.
Launch iTunes,
Click on the device name on the left side of the iTunes Window.
Click on the Photos Tab in the iTunes window on the right.
Untick all of the photos or albums that you want to remove.
Click on Apply in the lower right corner of iTunes
If you untick or uncheck the Sync Photos heading and then click Apply it will remove all of the photos from the device when it syncs. In this screenshot - I have only certain albums and events selected to sync. -
My iPhone 6 can't find my macbook pro on the airdrop list, although everything is in place, bluetooth, wi fi gets, need help please ?
Dear Niel, thank you but my mac is (MacBook Pro (Retina, 15-inch, Early 2013).
and i can send from it to my iPhone , but not vice versa -
After many months of non-use, when I tried to open Photoshop CS4 Extended, I got an error message 148.3. "Licensing for this product has stopped working." I need help, please.
Error "Licensing has stopped working" | Windows
Error "Licensing has stopped working" | Mac OS
Mylenium -
I need help please I keep getting error messega 21 when i try uploading my iPhone 4 s!!!!!!!!! omg some one please tell me if and how to fix this please. thank you!!!
Hopefully this link will help you: http://support.apple.com/kb/HT2109
-
Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.
Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.
-
After updating my Iphone 5 my lock button isnt working well .... Need help please ..
First, read here:
https://ssl.apple.com/support/iphone5-sleepwakebutton/
See if your phone is affected. -
hi
i need help please . when i want to buy app from store ask me the security question
but i forgot the answer
so i need to the link to rest answer of security questionThe Best Alternatives for Security Questions and Rescue Mail
a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
b. Call Apple Support in your country: Customer Service: Contact Apple support.
c. Rescue email address and how to reset Apple ID security questions. -
Hi I need help please .... I have my credit card information in my account ... But I wanted to delete & I like too add a App Store card
Hi, Ajchenicholas.
Credit cards attached to an Apple ID can be removed and payment method changed to none as long as there is not an outstanding balance. The article below will walk you through this process.
iTunes Store: Changing account information
http://support.apple.com/kb/ht1918
You can always add an iTunes Gift Card to your account at any time. Here are the steps that will walk you through adding an iTunes Gift Card.
iTunes Store: How to redeem a code
http://support.apple.com/kb/ht1574
Cheers,
Jason H.
Maybe you are looking for
-
Reading one line from a text file into an array
i want to read one line from a text file into an array, and then the next line into a different array. both arays are type string...i have this: public static void readAndProcessData(FileInputStream stream){ InputStreamReader iStrReader = new In
-
How to load data from a string to diff Column
Hi, In a table i am getting data like as a string '101,SAM,2000,20,SALES' '102,RAM,3000,30,MARKETING' i want to load this data into different column in Target table so i have to cut out this data and have to load into different target Column.
-
Male to female voice changer app?
hi everybody! anyone know whats the name of this app, where you can change your voice from male to female or vise versa in real time while making a call? thanks!
-
How to Call Same Adaptive RFC across different Backend R/3 Systems
Hi Everyone, I have been troubled for the last 3 or 4 days on how I should develop Web DynPro code to call the same RFC on different backend R/3 systems. Don't really want to maintain my own Jco connects within a SAP Connector project and I don't re
-
Different footage resolution editing on FCP
Hi If I am making a wedding video using footage from these 2 different sources Sony V1E capturing in 1080i or 1080p giving me 1440x1080 resolution, vid rate 25 compressor Apple intermediate codec Either Gopro HD Hero capturing in 4:3 tallest HD Video