Problem of XML query structure
Hi experts,I am looking for help on the following XML query. I have a table (for example) organized as such:
meas data_element
------- -------------------
ABC rate
DEF rate1
DEF rate2
DEF rate3
GHI rate
JKL rate1a
JKL rate2b
I try to keep the column 'soul' as the attribute of the top-level node, with the "data_elements" as attributes of the children of the 'SOUL '.In short, I am looking for the following output, but well... keep coming up short.
<meas id="ABC">
<data_elements>
<data_element id="rate">
<rpt>false</rpt>
</data_element>
</data_elements>
</meas>
<meas id="DEF">
<data_elements>
<data_element id="rate1">
<rpt>false</rpt>
</data_element>
<data_element id="rate2">
<rpt>false</rpt>
</data_element>
<data_element id="rate3">
<rpt>false</rpt>
</data_element>
<data_elements>
</meas>
.....and so forth...
I'm unable to get multiple lines of "data_element" under "data_elements" and the single "meas" a single node, any suggestions? My code keeps generating several lines. The crux of the rpt is a constant value of 'false '.Thank you
You group and aggregate using XMLAgg:
SQL> set long 5000
SQL>
SQL> with sample_data (meas, data_element) as (
2 select 'ABC', 'rate' from dual union all
3 select 'DEF', 'rate1' from dual union all
4 select 'DEF', 'rate2' from dual union all
5 select 'DEF', 'rate3' from dual union all
6 select 'GHI', 'rate' from dual union all
7 select 'JKL', 'rate1a' from dual union all
8 select 'JKL', 'rate2b' from dual
9 )
10 select xmlserialize(content
11 xmlagg(
12 xmlelement("meas",
13 xmlattributes(meas as "id")
14 , xmlelement("data_elements",
15 xmlagg(
16 xmlelement("data_element",
17 xmlattributes(data_element as "id")
18 , xmlelement("rpt", 'false')
19 )
20 order by data_element -- if necessary
21 )
22 )
23 )
24 )
25 indent
26 ) as result
27 from sample_data
28 group by meas ;
RESULT
--------------------------------------------------------------------------------
false
false
false
false
false
false
false
Tags: Database
Similar Questions
-
I have some problem in my query to sql server. If I press f5 to run it opens to record dialogue area nd do not run (I don't get successful... orders etc). Please help me
Hello
SQL Server is not supported in these forums. I suggest that you ask your question again in one of the forums dedicated to Microsoft for him here:
http://social.technet.microsoft.com/Forums/en-us/category/sqlserver .
Thank you. :)
-
OAG - insert timestamps in XML query
Hello
I need to insert timestamps in XML query. Please suggest steps/options/filters to do?
for example
XML request:
< xml >
< timestamp > < / timestamp >
< / xml >
output must be
< xml >
< timestamp > 2006 - 05 - 04T 18: 13:51.0Z < / timestamp >
< / xml >
Kind regards
Ganesh
Hello
You want to use the filter to add an XML node.
Create a JavaScript filter, first to do something like this:
function invoke (msg)
{
now = new Date();
Msg.put (elements "UTCTime", now.toUTCString ());
Returns true;
}
In Add an XML node to the node content add:
${UTCTime elements} -
Problem loading XML content.
Hello, when I open Dreamweaver CS6 I now get this message at the bottom right of the window and do not know what he's trying to tellme. Clicking on it does nothing.
Meaasage is:
Problem loading XML content.
You have requested a language ("en_IL") that has no content available.
In suggestions he shows English, United States.
I don't know why this has happened. But I managed to get rid of this message on my computer. It seems "application.xml" file points to the incorrect language for content files folder.
On my computer, the program is installed in C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CS6. If you can navigate to this file using your file manager (in my case 'File Explorer', in point 8.1 of Windows), see the listed folders.
On my installation, note that there is a record of language called "en_US", and there are a bunch of files that it contains. I think that this is where are stored the content files, for my installation. There is also a folder called "amt".
Open the folder "amt". You will see that there is a load of files of the language, including en_IL and en_US. also note the files listed at the bottom of this issue, in particular the application file "." XML ". I edited this file by right clicking on it and choosing "Edit". However, when I tried to save the change, I got the message "access denied." I don't have permissions to edit and save the file. So, before editing the file once again, I changed the permissions of the file as follows.
In the file Explorer, right click on the file "application.xml" and select "Properties". Click on the tab 'Security' "Edit" (to change the permissions). Select "users". In the lower window, click on "full control". Then click on 'Ok '. Then click 'Ok' again on the next page.
Assuming that it worked, you should now be able to edit and save the file in the application ".» XML ".
Then, right-click on the file name "application.xml" and choose "Edit". It's a text file, so I edited in the "Notepad". Halfway the page, you will see the term "en_IL". Change this to "en_US" (or whatever the name of the other folder is in your installation folder (see paragraph 3 above). Save the file.
Open Dreamweaver and see if the message has disappeared, replaced by a tip.
-
problem loading XML default namespace
I'm loading multiple xml/rss files. For some of them I have to use the namespace (atom feed)
so I write these lines
var atom: Namespace = new Namespace ("http://www.w3.org/2005/Atom" ""); var rssXML:XML = new XML(); lack of namespace xml = Atom; I test this in an outside my program, but when I integrate it in my main program, it seems that it is at odds with all the other xml
the problem is: xml = Atom namespace default
How to set a namespace only for an xml object?
I try different way, but did not get from anywhere
Thank you
You can declare the namespace in XML (but do it before you create XML object):
var namespace1:Namespace = new Namespace("http://www.w3.org/2005/Atom"); default xml namespace = namespace1; var xml1:XML =
; trace(xml1.namespace()); var namespace2:Namespace = new Namespace(); default xml namespace = namespace2; var xml2:XML = ; trace(xml2.namespace()); var namespace3:Namespace = new Namespace("http://www.example.com/schema"); default xml namespace = namespace3; var xml3:XML = ; trace(xml3.namespace()); Trace
http://www.w3.org/2005/Atom http://www.example.com/schema
--
Kenneth Kawamoto
-
Recovery of OSB road Note Error Handler xml query
Hi guys,.
I don't know if there is a thread that has already been addressed, but I couldn't find anything.
Here's the scenario. I created Proxy Service X (http transport protocol) that routes a message to Business Service Y. Business Service Y called myWebService that is deployed in a remote domain. I have intentionally to cancel the deployment of the EAR that contains myWebService in the remote domain. When the Business Service Y try to call myWebService she will appear in error, the following message:
< con xmlns:con: fault = "http://www.bea.com/wli/sb/context" >
< con: errorCode > BEA-380002 < / con: errorCode >
< con: reason > not found < / con: reason >
< con: location >
< con: node > RouteNode1 < / con: node >
pipeline response - < con: path > < / con: path >
< / con: location >
< / con: fault >
Business Service Z is an independent service that is used to send messages to a queue. I have an route Error Handler node Proxy Service X using a legend Service to route messages to Business Service Z.
Now in the Proxy Service X error of node Road Manager , I would like to recover the original xml query that was received by Proxy Service X and send it to a queue by making use of the previously mentioned Legend of Service that routes messages to Business Service Z whenever the BEA-380002 of error type occurs.
When you look at the response of the legend of Service (by making use of reports), the item entering the http transport layer does not contain the xml request, but simply the metadata of the message. How can I get the original xml to the scenario above query?
Kind regards
Ophola...Add an action to assign the title of the action request routing Actions. Using yield action assign the $body (initial application of XML) in a var, for example bodyvar. Now in the route node error handler, you can get the original query in the variable $bodyvar
Kind regards
Anuj -
What is the problem with this query in the source
A blank page is region 2. Region1: enter rec_no (-rec_no is varchar2) region2:hide and show that displays one record based on rec_ no region1 entered.
The problem is that I get the following error
ORA-06550: line 1, column 7: PLS-00428: an INTO clause in this SELECT statement
Here's my simple query in a process of pl/sql
Start
Select rec_no, rec_name from mytable where rec_no = upper(:P16_rec_no);
end;
Why? The same query works under the sql command.
what I'm trying to accompolish here, it is because he has given huge if I want to display hide also multiples, regions and allow users to update each region as a result. Help, please. It kills me that I just can't understand what is causing the problem to the query. Thank you.Hello
The list is set to the field EMPLOYEE_ID itself? What is the primary key of the table? In my example, DEPTNO is the primary key and I used the element generated by the wizard page to display the list. The parameters of the Source of the item itself or the column DEPTNO and database so that the process "process line...". "to identify the updated row.
Andy
-
XML query returns empty when tags no data
Hi all
I have a problem that I can't solve.
I have the following query:
The query returns the XML code in the desired structure.select xmlelement ( "users", xmlagg ( xmlelement ( "user", xmlelement ( "username", e.pin ), xmlagg ( xmlelement ( "details", xmlforest ( e.password as "password" ,e.first_name as "forename" ,e.surname as "surname" ,'0' as "retired" ,e.email_address as "email" ,e.telephone_number as "phone" ,'No External Ref' as "externalRef" ,add_months(sysdate,+60) as "expiryDate" ) ) ) ) ) ) xml_out from aqaost_examiners e group by e.pin;
But the problem I have is that when there is no data found by the query, I always get a single row returned by the following: < user > < / users >
I tried so many things to try to have the query return nothing if there is no data available, but I can't do without something else goes wrong (to mess up the XML structure, etc.).
Please is - can anyone help or point me in the right direction?
I thank very you much in advance!
RobinHello
Peter,
This is the GROUP that does this.
Actually no, the GROUP BY refers to the deepest XMLAgg and is required if e.pin is not unique.
Let it out, and you also seem to have of many XMLAGG (?)
That's assuming that e.pin is unique within the table (which is probably a fair assumption in this case).
In fact, the behavior comes from the XMLAgg in the foreground:
SQL> select xmlelement("users", 2 xmlagg( 3 xmlelement("user", 4 xmlelement("username", e.empno) 5 , xmlelement("details", 6 xmlforest( 7 e.ename as "name" 8 , e.job as "job" 9 ) 10 ) 11 ) 12 ) 13 ) xml_out 14 from scott.emp e 15 where 1 = 0 16 ; XML_OUT -------------------------------------
As with other global functions (such as SUM or AVG) adding a GROUP OF 'something' solves the problem:
SQL> select xmlelement("users", 2 xmlagg( 3 xmlelement("user", 4 xmlelement("username", e.empno) 5 , xmlelement("details", 6 xmlforest( 7 e.ename as "name" 8 , e.job as "job" 9 ) 10 ) 11 ) 12 ) 13 ) xml_out 14 from scott.emp e 15 where 1 = 0 16 group by null 17 ; no rows selected
Robin,
So the more intimate XMLAgg is really necessary, you can use a subquery:select xmlelement("users", v.users) from ( select xmlagg( xmlelement("user", xmlelement("username", e.empno) , xmlagg( xmlelement("details", xmlforest( e.ename as "name" , e.job as "job" ) ) ) ) ) as users from scott.emp e group by e.empno ) v where v.users is not null ;
-
Hi I have a problem of xml with xsd validation and insert into the table...
I use this function to validate the XML with xsd, but it gives-31000 error related to xdb
and I also try to recover data from the xml file, but it is fetching nullability of him.
while I was trying to recover data after removing the tablenamespace, url and other additional field or can tell
from a simple xml file than it is to get him.
Please help me with this!
FUNCTION to CREATE or REPLACE ALI$ XML_VALID (P_xml IN xmltype
P_xsd IN xmltype)
RETURN NUMBER
is
l_status NUMBER;
l_xml xmltype.
l_xsd XMLTYPE.
l_v_schemaURL VARCHAR2 (256): = "NewBusinessApplication.xsd";
schema_doesnt_exist exception;
pragma exception_init (schema_doesnt_exist,-31000);BEGIN
l_xsd: = p_xsd;
Start
DBMS_XMLSCHEMA.deleteSchema (l_v_schemaURL, dbms_xmlSchema.DELETE_CASCADE_FORCE);
exception
When schema_doesnt_exist then
null;
end;DBMS_XMLSCHEMA. REGISTERSCHEMA)
schemaurl = > l_v_schemaURL
, schemadoc = > l_xsd
local = > TRUE
, genTypes = > FALSE
, genbean = > FALSE
, genTables = > FALSE
);
l_xml: = p_xml;If l_xml.isSchemaValid () = 1 then
dbms_output.put_line ("' scheme is valid");
l_status: = 1;
RETURN l_status;
on the other
l_xml.schemaValidate ();
l_status: = 0;
RETURN l_status;
end if;
END;-call to above function
DECLARE
l_xml xmltype: = xmltype (' <? xml version = "1.0" encoding = "UTF - 8"? >)
"" < NewBusinessApplication xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
"" xsi: schemaLocation = "http://www.example.org NewBusinessApplication.xsd.
xmlns ="http://www.example.org" > ".
< TransactionHeader >
< TR_REF_NO > 000009812681 < / TR_REF_NO >
< EFF_DT > 20140703094140.572 [-4:US / Eastern] < / EFF_DT >
< SRC_SYS_CD dmnSRC_SYSTEM = "TSS" > Support of TV system < / SRC_SYS_CD >
< / TransactionHeader >
< ApplicationRq >
< ApplInfo >
< APPLNO > A00018L < / APPLNO >
< MED_NONMED dmnMED_NONMED = "M" > medical < / MED_NONMED >
< APPL_DT > 20140714 < / APPL_DT >
< EFF_DT > 20140714 < / EFF_DT >
< APPL_RECV_DT > 20140714 < / APPL_RECV_DT >
< / ApplInfo >
< AgentInfo >
<! – repeat the nodes below for more than one agent - >
<>Agent
< AGT_CD > AGN0000001 < / AGT_CD >
James < FIRSTNAME > < / NAME >
< NAME > Whorphin < / LASTNAME >
BKK1010090009 < AGT-LICNO > < / AGT-LICNO >
the Warriors < TEAM > < / TEAM >
Suriya Thapa < TEAMLEADER > < / TEAMLEADER >
BKK909988999 < TEAMLEADER-LICNO > < / TEAMLEADER LICNO >
< / agent >
< / AgentInfo >
< InsuredInfo >
< dmnPERS_NAMEPREFIX PREFIX-TH = "XX" > Dr. < / PREFIX-TH >
XXXXXXX < FIRSTNAME-TH > < / FIRSTNAME-TH >
XXXXXX < MIDNAME-TH > < / MIDNAME-TH >
XXXXXX < LASTNAME-TH > < / LASTNAME-TH >
XXXXXX < FORMERNAME > < / FORMERNAME >
< PREFIX-dmnPERS_NAMEPREFIX-EN = "XX" > Dr. < / PREFIX-EN >
YYYYYY < FIRSTNAME-EN > < / FIRSTNAME-EN >
YYYYYY < MIDNAME-EN > < / MIDNAME-FR >
YYYYYY < LASTNAME-EN > < / LASTNAME-EN >
< BIRTH_DT > 19800101 < / BIRTH_DT >
< 33 YEARS > < / AGE >
< dmnPERNSEXCD = "XX" SEX > male < / TYPE >
< DmnPERC_MAR_STAT_CD MARITAL_STATUS = "XX" > single < / MARITAL_STATUS >
< dmnRACE = "XX" RACE > ZZZ < / RACE >
< dmnRELIGION RELIGION = "H" > HINDU < / RELIGION >
< dmnNATIONALITY NATIONALITY = an' TH' > THAI < / NATIONALITY >
< dmnIDTYPE ID-TYPE = "TI" > Thai National ID < / ID-TYPE >
> ID < AJMPK0001J < / ID >
< ID-XPIR_DT > 20200101 < / ID-XPIR_DT >
< dmnOCCUP_CD OCCUPATION = "XX" / >
< OCCUP_CLASS dmnOCCUP_CLASS_CD = 'XX' / >
< ANNUAL_INCOME > 100000 < / ANNUAL_INCOME >
< HEIGHT > 175 < / HEIGHT >
< WEIGHT > 80 < / WEIGHT >
< / InsuredInfo >
< ProposerInfo >
< dmnPERS_NAMEPREFIX PREFIX-TH = "XX" > Dr. < / PREFIX-TH >
XXXXXXX < FIRSTNAME-TH > < / FIRSTNAME-TH >
XXXXXX < MIDNAME-TH > < / MIDNAME-TH >
XXXXXX < LASTNAME-TH > < / LASTNAME-TH >
XXXXXX < FORMERNAME > < / FORMERNAME >
< PREFIX-dmnPERS_NAMEPREFIX-EN = "XX" > Dr. < / PREFIX-EN >
YYYYYY < FIRSTNAME-EN > < / FIRSTNAME-EN >
YYYYYY < MIDNAME-EN > < / MIDNAME-FR >
YYYYYY < LASTNAME-EN > < / LASTNAME-EN >
< BIRTH_DT > 19800101 < / BIRTH_DT >
< 33 YEARS > < / AGE >
< dmnPERNSEXCD = "XX" SEX > male < / TYPE >
< DmnPERC_MAR_STAT_CD MARITAL_STATUS = "XX" > single < / MARITAL_STATUS >
< dmnRACE = "XX" RACE > ZZZ < / RACE >
< dmnRELIGION RELIGION = "H" > HINDU < / RELIGION >
< dmnNATIONALITY NATIONALITY = an' TH' > THAI < / NATIONALITY >
< dmnIDTYPE ID_TYPE = "TI" > Thai National ID < / ID_TYPE >
AJMPK0001J < ID_NUMBER > < / ID_NUMBER >
< ID_XPIR_DT > 20200101 < / ID_XPIR_DT >
< dmnOCCUP_CD OCCUPATION = "XX" / >
< OCCUP_CLASS dmnOCCUP_CLASS_CD = 'XX' / >
< ANNUAL_INCOME > 100000 < / ANNUAL_INCOME >
< / ProposerInfo >
< ContactInfo >
< AddressInfo >
<! – repeat the nodes below for each address type - >
< address >
< dmnADDR_ADDRTYPE ADDRTYPE = "01" > home < / ADDRTYPE >
< PRIMARY_CONTACT > 0 < / PRIMARY_CONTACT >
< / address >
< address >
< dmnADDR_ADDRTYPE ADDRTYPE "02" = > Office < / ADDRTYPE >
< PRIMARY_CONTACT > 1 < / PRIMARY_CONTACT >
< / address >
< / AddressInfo >
< PhoneInfo >
<! – repeat the nodes below for each type of phone - >
< Phone >
< dmnADRP_PHONETYPE PHONETYPE "01" = > Mobile < / PHONETYPE >
< PHONENUM > 9887666789 < / PHONENUM >
< PRIMARY_CONTACT > 1 < / PRIMARY_CONTACT >
< / Phone >
< Phone >
< dmnADRP_PHONETYPE PHONETYPE "02" = > home < / PHONETYPE >
< PHONENUM > 9887666789 < / PHONENUM >
< PRIMARY_CONTACT > 0 < / PRIMARY_CONTACT >
< / Phone >
< / PhoneInfo >
< EmailInfo >
<! – repeat the nodes below for each type of email - >
< email >
< EMAILTYPE dmnADRO_EMAILTYPE = "01" > e-mail1 < / EMAILTYPE >
< EMAILDATA > [email protected] < / EMAILDATA >
< PRIMARY_CONTACT > 0 < / PRIMARY_CONTACT >
< / email >
< email >
< EMAILTYPE dmnADRO_EMAILTYPE "02" = > Email2 < / EMAILTYPE >
< EMAILDATA > [email protected] < / EMAILDATA >
< PRIMARY_CONTACT > 1 < / PRIMARY_CONTACT >
< / email >
< / EmailInfo >
< / ContactInfo >
< PolicyInfo >
STG102 < BASE-PLAN_CD > < / BASE-PLAN_CD >
< BASE-PLAN_NM > Smart term 10 gold < / BASE-PLAN_NM >
< MODEOFPAYMENT dmnZZFREQUENCY = "M" > monthly < / MODEOFPAYMENT >
< BASE - ITS > 100000.00 < / BASE - SA >
< BASE-PREMIUM > 12000.00 < / BASE-PREMIUM >
< BASE-MODALPREMIUM > 1000.00 < / BASE-MODALPREMIUM >
< AYFP > 13200.00 < / AYFP >
< RiderInfo >
< rider >
RIDER < CODE > ME < / RIDER-CODE >
Medical costs < RIDER-NAME > < / RIDER-NAME >
< RIDER - HIS 20000.00 > < / RIDER - SA >
< RIDER-PREMIUM > 600.00 < / RIDER-PREMIUM >
< RIDER-MODALPREMIUM > 50.00 < / RIDER-MODALPREMIUM >
< / rider >
< rider >
RIDER HAB < CODE > < / RIDER-CODE >
< NAME-RIDER > Admission hospitalization < / RIDER-NAME >
< RIDER - HIS 20000.00 > < / RIDER - SA >
< RIDER-PREMIUM > 600.00 < / RIDER-PREMIUM >
< RIDER-MODALPREMIUM > 50.00 < / RIDER-MODALPREMIUM >
< / rider >
< / RiderInfo >
< / PolicyInfo >
< PaymentInfo >
< borde >
< TMP_RECEIPT_NO > TEMP0001 < / TMP_RECEIPT_NO >
< TOTAL_PYMT_AMT > 13200.00 < / TOTAL_PYMT_AMT >
<! – repeat the nodes below for payment through several channels - >
< payment >
< dmnPAYRTYPE PAYER "01" = > secured < / PAYER >
credit card < dmnPaymentType PYMT TYPE = "01" > < / PYMT-TYPE >
< PYMT-AMT > 13200.00 < / PYMT-AMT >
< PYMT-Channel >
credit <>card
Visa < dmnCardType CARD-TYPE = "01" > < / CARD-TYPE >
< BADGE - N ° > 9890989098909877 < / CARD-NOT >
< HOLDERNAME-CARD > RICKY WHORPHIN < / CARD-HOLDERNAME >
< BANKNM-CARD > Standard Chartered Bank < / MAP-BANKNM >
< MAP SHOWED > 08/14 < / CARD-SHOW >
< MAP-AUTHCODE / >
< CARD-AUTHDATE / >
< / credit card >
< / PYMT-Channel >
< / payment >
< payment >
< dmnPAYRTYPE PAYER "01" = > secured < / PAYER >
< dmnPaymentType PYMT-TYPE = '02' > account < / PYMT-TYPE >
< PYMT-AMT > 13200.00 < / PYMT-AMT >
< PYMT-Channel >
< Bank >
< BANK CODE / >
< BANK BRANCH / >
< BANK-ACCNO / >
< BANK-ACCNAME / >
< / Bank >
< / PYMT-Channel >
< / payment >
< payment >
< dmnPAYRTYPE PAYER "01" = > secured < / PAYER >
< dmnPaymentType PYMT TYPE = "03" > check < / PYMT-TYPE >
< PYMT-AMT > 13200.00 < / PYMT-AMT >
< PYMT-Channel >
< check >
< CHQ - n / >
< CHQ-DATE / >
< CHQ-ISSUEBANK / >
< / cheque >
< / PYMT-Channel >
< / payment >
< / shell >
< RenewalPayment >
< dmnPAYRTYPE PAYER "01" = > secured < / PAYER >
< DDCHANNEL dmnPaymentType "01" = > SDC < / DDCHANNEL >
< DDCDetails >
Visa < dmnCardType CARD-TYPE = "01" > < / CARD-TYPE >
< BADGE - N ° > 9890989098909877 < / CARD-NOT >
< HOLDERNAME-CARD > RICKY WHORPHIN < / CARD-HOLDERNAME >
< BANKNM-CARD > Standard Chartered Bank < / MAP-BANKNM >
< MAP SHOWED > 08/14 < / CARD-SHOW >
< / DDCDetails >
< DDADetails >
< dmnBNK_TYP_CD BANK-ACCTYPE = "01" > save < / BANK-ACCTYPE >
< BANK-ACCNO / >
< BANK-ACCNAME / >
< BANK BRANCH / >
< / DDADetails >
< / RenewalPayment >
< / PaymentInfo >
< BeneficiaryInfo >
<!--repeat the nodes below for each beneficiary and the sum of the pct should be 100-->
< recipient >
Joint < dmnBENE_RELT_CD RELATIONSHIP = "01" > < / RELATIONSHIP >
XXXX < FIRSTNAME > < / NAME >
XXXXX < MIDNAME > < / MIDNAME >
XXXX < NAME > < / LASTNAME >
< PERCENT > 50 < / PERCENTAGE >
< BIRTH_DT > 19800101 < / BIRTH_DT >
< dmnPERNSEXCD SEX = "XX" > female < / TYPE >
< NATLIDNO > TH000001 < / NATLIDNO >
< / recipients >
< recipient >
< dmnBENE_RELT_CD RELATIONSHIP "02" = > child < / RELATIONSHIP >
XXXX < FIRSTNAME > < / NAME >
XXXXX < MIDNAME > < / MIDNAME >
XXXX < NAME > < / LASTNAME >
< PERCENT > 50 < / PERCENTAGE >
< BIRTH_DT > 19800101 < / BIRTH_DT >
< dmnPERNSEXCD = "XX" SEX > male < / TYPE >
< NATLIDNO > TH000002 < / NATLIDNO >
< / recipients >
< / BeneficiaryInfo >
< survey >
< HealthDeclaration >
< question >
Q001 < QUESTION_ID > < / QUESTION_ID >
< dmnZZYESNO_NUM RESPONSE = "N" > n < / ANSWER >
< / question >
< question >
Q002 < QUESTION_ID > < / QUESTION_ID >
< dmnZZYESNO_NUM RESPONSE = "N" > n < / ANSWER >
< / question >
< question >
Q003 < QUESTION_ID > < / QUESTION_ID >
< dmnZZYESNO_NUM RESPONSE = "N" > n < / ANSWER >
< / question >
< question >
Q004 < QUESTION_ID > < / QUESTION_ID >
< dmnZZYESNO_NUM RESPONSE = "N" > n < / ANSWER >
< / question >
< question >
Q005 < QUESTION_ID > < / QUESTION_ID >
< dmnZZYESNO_NUM RESPONSE = "N" > n < / ANSWER >
< / question >
< / HealthDeclaration >
< / questionnaire >
< / ApplicationRq >
< ApplicationRs >
<-reason for the rejection / >
< / ApplicationRs >
< / NewBusinessApplication >
');
l_xsd xmltype: = xmltype (' <? xml version = "1.0" encoding = "windows-1252"? >)
"< xsd: Schema container ="http://www.w3.org/2001/XMLSchema"xmlns ="http://www.example.org"
targetNamespace ="http://www.example.org" elementFormDefault = "qualified" > "
< xsd: element name = "NewBusinessApplication" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "TransactionHeader" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "TR_REF_NO" type = "xsd: Integer" / >
< xsd: element name = "EFF_DT" type = "xsd: String" / >
< xsd: element name = "SRC_SYS_CD" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnSRC_SYSTEM" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ApplicationRq" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "ApplInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "APPLNO" type = "xsd: String" / >
< xsd: element name = "MED_NONMED" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnMED_NONMED" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "APPL_DT" type = "xsd: Integer" / >
< xsd: element name = "EFF_DT" type = "xsd: Integer" / >
< xsd: element name = "APPL_RECV_DT" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "AgentInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "The Agent" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "AGT_CD" type = "xsd: String" / >
< xsd: element name = "FIRSTNAME" type = "xsd: String" / >
< xsd: element name = "NAME" type = "xsd: String" / >
< xsd: element name = "AGT-LICNO" type = "xsd: String" / >
< xsd: element name = "TEAM" type = "xsd: String" / >
< xsd: element name = "TEAMLEADER" type = "xsd: String" / >
< xsd: element name = "TEAMLEADER-LICNO" type = "xsd: String" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "InsuredInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = 'PREFIX-TH' >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERS_NAMEPREFIX" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NAME-TH" type = "xsd: String" / >
< xsd: element name = "MIDNAME-TH" type = "xsd: String" / >
< xsd: element name = "LASTNAME-TH" type = "xsd: String" / >
< xsd: element name = "FORMERNAME" type = "xsd: String" / >
< xsd: element name = "PREFIX-FR" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERS_NAMEPREFIX-EN" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NAME-IN" type = "xsd: String" / >
< xsd: element name = "MIDNAME-EN" type = "xsd: String" / >
< xsd: element name = "LASTNAME-IN" type = "xsd: String" / >
< xsd: element name = "BIRTH_DT" type = "xsd: Integer" / >
< xsd: element name = "ÂGE" type = "xsd: Integer" / >
< xsd: element name = "GENDER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERNSEXCD" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "MARITAL_STATUS" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERC_MAR_STAT_CD" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "RACE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnRACE" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "RELIGION" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnRELIGION" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NATIONALITY" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnNATIONALITY" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ID-TYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnIDTYPE" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ID" type = "xsd: String" / >
< xsd: element name = "ID-XPIR_DT" type = "xsd: Integer" / >
< xsd: element name = "OCCUPATION" >
< xsd: complexType >
< xsd: attribute name = "dmnOCCUP_CD" type = "xsd: String" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "OCCUP_CLASS" >
< xsd: complexType >
< xsd: attribute name = "dmnOCCUP_CLASS_CD" type = "xsd: String" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ANNUAL_INCOME" type = "xsd: Integer" / >
< xsd: element name = "HEIGHT" type = "xsd: Integer" / >
< xsd: element name = "WEIGHT" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ProposerInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = 'PREFIX-TH' >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERS_NAMEPREFIX" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NAME-TH" type = "xsd: String" / >
< xsd: element name = "MIDNAME-TH" type = "xsd: String" / >
< xsd: element name = "LASTNAME-TH" type = "xsd: String" / >
< xsd: element name = "FORMERNAME" type = "xsd: String" / >
< xsd: element name = "PREFIX-FR" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERS_NAMEPREFIX-EN" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NAME-IN" type = "xsd: String" / >
< xsd: element name = "MIDNAME-EN" type = "xsd: String" / >
< xsd: element name = "LASTNAME-IN" type = "xsd: String" / >
< xsd: element name = "BIRTH_DT" type = "xsd: Integer" / >
< xsd: element name = "ÂGE" type = "xsd: Integer" / >
< xsd: element name = "GENDER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERNSEXCD" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "MARITAL_STATUS" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERC_MAR_STAT_CD" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "RACE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnRACE" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "RELIGION" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnRELIGION" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NATIONALITY" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnNATIONALITY" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ID_TYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnIDTYPE" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ID_NUMBER" type = "xsd: String" / >
< xsd: element name = "ID_XPIR_DT" type = "xsd: Integer" / >
< xsd: element name = "OCCUPATION" >
< xsd: complexType >
< xsd: attribute name = "dmnOCCUP_CD" type = "xsd: String" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "OCCUP_CLASS" >
< xsd: complexType >
< xsd: attribute name = "dmnOCCUP_CLASS_CD" type = "xsd: String" / >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ANNUAL_INCOME" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ContactInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "AddressInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Address" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "ADDRTYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnADDR_ADDRTYPE" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PRIMARY_CONTACT" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PhoneInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Phone" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "PHONETYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnADRP_PHONETYPE" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PHONENUM" type = "xsd: Integer" / >
< xsd: element name = "PRIMARY_CONTACT" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "EmailInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Email" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "EMAILTYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnADRO_EMAILTYPE" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "EMAILDATA" type = "xsd: String" / >
< xsd: element name = "PRIMARY_CONTACT" type = "xsd: Integer" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PolicyInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "BASE-PLAN_CD" type = "xsd: String" / >
< xsd: element name = "BASE-PLAN_NM" type = "xsd: String" / >
< xsd: element name = "MODEOFPAYMENT" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnZZFREQUENCY" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BASE - SA" type = "xsd: float" / >
< xsd: element name = "BASE-PREMIUM" type = "xsd: float" / >
< xsd: element name = "BASE-MODALPREMIUM" type = "xsd: float" / >
< xsd: element name = "AYFP" type = "xsd: float" / >
< xsd: element name = "RiderInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Rider" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "RIDER-CODE" type = "xsd: String" / >
< xsd: element name = "RIDER-NAME" type = "xsd: String" / >
< xsd: element name = "RIDER - SA" type = "xsd: float" / >
< xsd: element name = "RIDER-PREMIUM" type = "xsd: float" / >
< xsd: element name = "RIDER-MODALPREMIUM" type = "xsd: float" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PaymentInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Bordered" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "TMP_RECEIPT_NO" type = "xsd: String" / >
< xsd: element name = "TOTAL_PYMT_AMT" type = "xsd: float" / >
< xsd: element name = "Payment" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "PAYER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPAYRTYPE" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "TYPE PYMT" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPaymentType" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "PYMT-AMT" type = "xsd: float" / >
< xsd: element name = "PYMT-Channel" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "CreditCard" minOccurs = "0" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "CARD TYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnCardType" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "CARD-NO" type = "xsd: Integer" / >
< xsd: element name = "CARD-HOLDERNAME" type = "xsd: String" / >
< xsd: element name = "CARD-BANKNM" type = "xsd: String" / >
< xsd: element name = "CARD-DISPLAYED" type = "xsd: String" / >
< xsd: element name = "CARD-AUTHCODE" / >
< xsd: element name = "CARD-AUTHDATE" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Bank" minOccurs = "0" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "BANK CODE" / >
< xsd: element name = "BANK-BRANCH" / >
< xsd: element name = "BANK-ACCNO" / >
< xsd: element name = "BANK-ACCNAME" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Cheque" minOccurs = "0" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "CHQ - NO" / >
< xsd: element name = "CHQ-DATE" / >
< xsd: element name = "CHQ-ISSUEBANK" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "RenewalPayment" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "PAYER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPAYRTYPE" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "DDCHANNEL" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPaymentType" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "DDCDetails" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "CARD TYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnCardType" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "CARD-NO" type = "xsd: Integer" / >
< xsd: element name = "CARD-HOLDERNAME" type = "xsd: String" / >
< xsd: element name = "CARD-BANKNM" type = "xsd: String" / >
< xsd: element name = "CARD-DISPLAYED" type = "xsd: String" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "DDADetails" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "BANK-ACCTYPE" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnBNK_TYP_CD" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BANK-ACCNO" / >
< xsd: element name = "BANK-ACCNAME" / >
< xsd: element name = "BANK-BRANCH" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "BeneficiaryInfo" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Recipient" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "RELATIONSHIP" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnBENE_RELT_CD" type = "xsd: Integer" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "FIRSTNAME" type = "xsd: String" / >
< xsd: element name = "MIDNAME" type = "xsd: String" / >
< xsd: element name = "NAME" type = "xsd: String" / >
< xsd: element name = "PERCENTAGE" type = "xsd: Integer" / >
< xsd: element name = "BIRTH_DT" type = "xsd: Integer" / >
< xsd: element name = "GENDER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnPERNSEXCD" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "NATLIDNO" type = "xsd: String" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "Questionnaire" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "HealthDeclaration" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Issue" maxOccurs = "unbounded" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "QUESTION_ID" type = "xsd: String" / >
< xsd: element name = "ANSWER" >
< xsd: complexType >
< xsd:simpleContent >
< xsd:extension base = "XSD: String" >
< xsd: attribute name = "dmnZZYESNO_NUM" type = "xsd: String" / >
< / xsd:extension >
< / xsd:simpleContent >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< xsd: element name = "ApplicationRs" >
< xsd: complexType >
< xsd: SEQUENCE >
< xsd: element name = "Reason for rejection" / >
< / xsd: SEQUENCE >
< / xsd: complexType >
< / xsd: element >
< / xsd: SEQUENCE >
< xsd: attribute name = "xsi" type = "xsd: String" / >
< xsd: attribute name = "schemaLocation" type = "xsd: String" / >
< / xsd: complexType >
< / xsd: element >
< / xsd: Schema >
');
BEGIN
dbms_output.put_line (Ali$ XML_VALID (l_xml, l_xsd));
END;
and please do not confused, you don't need to answer if I do not any sense.
BUT I STILL HAVE ONE LAST QUESTION
do you know how to use namespaces in the exctractvalue().
I'm not "troubled", just frustrated that you don't seem to understand what I've explained so far.
Why do you insist on the use of extractvalue? Don't use extractvalue, it is deprecated, use XMLTABLE instead.
If you feel compelled to use extractvalue of certain grounds, just the curiosity to seek it in the documentation, you can find the syntax to use the namespaces:
http://docs.Oracle.com/CD/E11882_01/server.112/e41084/functions061.htm#SQLRF06173
in your last code, you first insert the XML and extract data from it. I can do it too, but it's not my requirement. I'm supposed to read the first xml (if it is valid) as I do in my code using the table function and make the continuation of the procedure.
Look, I'll ask you one last time:
What problem are you having? What prevents you from first reading, certain values before inserting, as you need. Just use the same query XMLTABLE that I showed in my example, except you will not query the table, but directly from the XMLType variable:
PASSAGE v_xml
COLUMNS...
-
Problem with database querying adapter
Hi all
The polling option treats all rows from a table at a time rather than use the polling frequency. I used an option to update a field (logical deletion) where I've initialized unread value = ' n "and read the value = 'Y'." Now, the problem is that I have to query a single row in the table for every 60 seconds (the second row should be transformed only after 60 seconds), but all the lines are treated at the same time. Can someone let me know what could be the problem?
I put in the db adapter options:
Polling frequency: 60 seconds
Lines by Document XML and database: 1
Lines per transaction database: 1
JDBC, query & Timeout options: 60
Thank youPlease see the below URL, this can help you.
http://www.albinsblog.com/2012/10/DB-adapter-message-throttling-in-Oracle.html#.UQI3_fLDiuk
Concerning
Albin I
[http://www.albinsblog.com/] -
PROBLEM WITH SQL QUERY.
Hi all
I am executing the following query, which I use to retrieve unique records.
SELECT OH. ORDER_ID, OH. ORDER_DATE, OH. GRAND_TOTAL, OSI. DESCRIPTION ACE ORDER_STATUS,
PMT. DESCRIPTION AS PAYMENT_METHOD, TR. AS PAYMENT_STATUS DESCRIPTION
OF ORDER_HEADER OH INNER JOIN ORDER_PAYMENT_PREFERENCE OPP ON OH. ORDER_ID = OPP. ORDER_ID and
OPP. CREATED_DATE = (SELECT MAX (CREATED_DATE) OF ORDER_PAYMENT_PREFERENCE WHERE THE ORDER_ID = OH. ORDER_ID)
PAYMENT_METHOD_TYPE PMT, STATUS_ITEM SO, STATUS_ITEM OSI
WHERE OPP. PAYMENT_METHOD_TYPE_ID = PMT. PAYMENT_METHOD_TYPE_ID AND
OPP. BATCH = IF. BATCH AND OH. BATCH = OSI. BATCH AND
(OH. BATCH = "ORDER_CREATED" | OH. BATCH = "ORDER_HOLD") AND
OH. "CREATED_STAMP > = ' 2011-12-03 11:41:04.
Problem I am facing is, for some a few order_ids we have several entries in ORDER_PAYMENT_PREFERENCE with CREATED_DATE even where query return me of duplicate records.
I applied OPP. "CREATED_DATE = (SELECT MAX (CREATED_DATE) OF ORDER_PAYMENT_PREFERENCE WHERE THE ORDER_ID = OH. ORDER_ID)' forced to get the record, unique, but as I said to few recordings, we have several lines in ORDER_PAYMENT_PREFERENCE corr. ORDER_ID single and multiple records have same CREATED_DATE.
Can you suggest a few changes, the query to retrieve unique records.
I know I'm a very abstract information, shortly I'll provide table structure and little info I want in this query.
It's because of the tight work schedule.
Thank you
Jagdeep SinghHello
Basically, you need to convert a number in his order inside each created_date order_payment_preference. However, if you have more than one created_date which is him even you'll actually choose one of them at random unless you specify an order more squeezed by the clause. For example, you might have a numeric value from a sequence that could be added to determine which input was really the most recent. In any case the following should give you an idea what I mean...
SELECT order_id, order_date, grand_total, order_status, payment_method, payment_status FROM ( SELECT oh.order_id, oh.order_date, oh.grand_total, osi.description AS order_status, pmt.description AS payment_method, si.description AS payment_status ROW_NUMBER() OVER(PARTITION BY opp.order_id ORDER BY opp.created_date DESC) rn FROM order_header oh JOIN order_payment_preference opp ON oh.order_id = opp.order_id JOIN payment_method_type pmt ON opp.payment_method_type_id = pmt.payment_method_type_id JOIN status_item si ON opp.status_id = si.status_id JOIN status_item osi ON oh.status_id = osi.status_id WHERE AND oh.status_id IN('ORDER_CREATED','ORDER_HOLD') AND oh.created_stamp >= '2011-12-03 11:41:04' ) WHERE rn = 1
Some notes if - it is not a good idea to mix the styles of the junction between ansi and oracle style, it makes it difficult to follow. Just choose one or the other.
OH.STATUS_ID='ORDER_CREATED' || OH.STATUS_ID='ORDER_HOLD'
Makes no sense. I took a guess that you meant, OR then I converted to an IN clause that will do the same job.
HTH
David
-
Dynamic problem with lookup-query for the purpose of resource request
Hi all
I need to set up several IOM user exchange mailboxes, I can set up AD account and account of the mailbox without any problem, but only for the first ad and Exchange account. For the second and third, etc. I get the error: "Invalid login name" during Exchange of account provisioning. I discovered that this problem exists with Exchange Connector - it is not able to collect correct GUID. So in my xml Dataset I use dynamic query Lookup to select manually correct Alias, the login name and GUID. The query for the GUID is the sequel (I cloned RO for AD and Exchnage):
AttributeReference available-in-bulk = "true" length = "32" widget = 'search query' type = 'String' attr-ref = "Object GUID" name = "Object GUID" >
* < lookupQuery search-query = "select distinct UD_KFUSER_OBJECTGUID GUID, ud_KFUSER_uid like UD_KFUSER UD_KFUSER, orc orc Login, sta sta where UD_KFUSER.orc_key = orc.orc_key and orc.usr_key = ' $Form data." Take ' and UD_KFUSER. "UD_KFUSER_AD = 27 and orc.orc_status = STA.sta_status AND STA.sta_bucket! = 'Cancelled'" display-field = "GUID" save-field = "Object GUID" / > *.
* < / AttributeReference > *.
My questions are:
1. I have to type * to run the query in the user interface, without * I got error:
+ < 17 February 2012 11:12:22 THIS > < error > < oracle.adfinternal.view.faces.config.ric +.
h.RegistrationConfigurator > < BEA-000000 > < ADF_FACES - 60096:Server Exception durin
PPR, #10 g
oracle.iam.platform.canonic.base.NoteException: an error occurred during executin
g the search query.
to oracle.iam.platform.canonic.agentry.GenericEntityLookupActor.perform)
GenericEntityLookupActor.java:337)
Is this right?
2. when I got correct values (from the search query) - they are missing on the details of the application and form of RO - what Miss me?
I use OIM 11.1.1.5, in my xml dataset I use correct attr-Ref (labels), when I type the values manually, they are propagated to form RO and Exchange mailbox is created.
Best
MPI not had no problem when writing search query.
This works very well for me.
The request will be filled for the field, so why choose *?
I used as
-
The problems of performance - query on a copy of a table is faster than the orig
Hi all
I have problems with a specific table (select) sql performance (costs 7800) (Oracle 10.2.0.4.0, Linux).
Then I copied the table 1:1 (same structure, the same data, the same indexes, etc.) within the same domain (, the user database, tablespace etc.) and gathered the table_stats with the same settings. The same query on the copied table is faster and costs are only 3600.
Gods sake why is the query on this new table faster?
I appreciate any idea.
Thank you!
FIBO
Edited by: user954903 the 13.01.2010 04:23alter table t enable row movement; alter table t shrink space; alter table t disable row movement;
-
Grandma needs help problem "sysdata.xml.
I bought a computer about 18 months ago that started unexpectedly quit after 12 months. No error message. I went back to the provider that did not cause after replacing the power supply and move the surge protection. He replaces computer and transfer data via Acronis. Stops kept happening, but now I get the message that Microsoft has deceted a problem and restarts the computer. When I look into the details, I see whenever there is the same message but with different sysdata.xml figures for example WER-96377-0. I sent this to the supplier who ignores me currently. I ran a scan of Malware and a sweep of CCleaner. I tried to find the file, but it is not visible. I googled the file details and see that this is one problem with others. I have no hope of understanding or to fix this problem myself. What I want to know is it something I should continue with the technician who sold me this nightmare? Why this is happening? Is it her fault or mine? I'm really lost here, oh and frustrated too, I could really do with some advice on how to proceed.
Thanks in advance.
You are welcome.
Quite often blue screen errors are caused by a faulty driver. The pilot could be a hardware or software driver.
Blue screen sometimes errors are caused by defective hardware.
By looking at the files minidump would give an indication of what (s) or material may have caused the accident.
If the person tries to solve the problem has a background in troubleshooting blue screen error then there is a good chance that he or she can decide the issue.
If the problem is software it might follow you for Windows 10 so it's best to try so to resolve this matter before the upgrade.
Obviously if the problem is hardware problem would be independent of the operating system.
If you have a new computer the problem would follow you if the problem was software and that you have installed the same software on the new computer.
-
Problem with hierarchical query in function PL\SQL
I have a simple table containing the ID of the parent
-Create table
create the table1 table:
(
ID NUMBER (12) not null,
year number 4.
month NUMBER (2),
parent_id NUMBER (12)
);
-Create/recreate primary, unique and foreign key constraints
change the table1 table:
Add primary key constraint PK_TABLE1 (ID);
change the table1 table:
Add the foreign key constraint FK_TABLE1_PARENT (PARENT_ID)
reference TABLE1 (ID);
data:
Insert into TABLE1 (id, year, month, parent_id)
values (5, 2015, 12, 3);
Insert into TABLE1 (id, year, month, parent_id)
values (6 (2015), 12, 4);
Insert into TABLE1 (id, year, month, parent_id)
values (3 (2015), 11, 1);
Insert into TABLE1 (id, year, month, parent_id)
values (4 (2015), 11, 2);
Insert into TABLE1 (id, year, month, parent_id)
values (1, 2015, 10, null);
Insert into TABLE1 (id, year, month, parent_id)
values (2 (2015), 10, null);
commit;
and query
with h as
(select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t
where t.year = 2015 and t.month = 12
and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10
connect by prior t.id = t.parent_id)
Select * from:
Join table1 t left t.id = h.parent_id;
It works, but when I put this request in the procedure pl\sql
create or replace procedure is get_report (p_cur_out on sys_refcursor)
Start
Open the p_cur_out for
with h as
(select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t
where t.year = 2015 and t.month = 12
and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10
connect by prior t.id = t.parent_id)
Select * from:
Join table1 t left t.id = h.parent_id;
end get_report;
/
They do not compile. And in the fall, with the exception
Errors of compilation for the PC of the PROCEDURE. GET_REPORT
[Error: PL/SQL: ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], [], [], [], []]
Online: 6
Text: with h as
Error: PL/SQL: statement ignored
Online: 6
Text: with h as
My version of oracle
1 Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production 2 PL/SQL Release 11.2.0.3.0 - Production 3 CORE Production 11.2.0.3.0 4 AMT for Linux: Version 11.2.0.3.0 - Production 5 NLSRTL Version 11.2.0.3.0 - Production What is the problem with my request? Or database? How to solve this problem?
If you have access to MOS, you can search the reason of it. If you are using left join syntax instead of joining ANSI, owner Oracle procedure compiles and returns the result.
Maybe you are looking for
-
Are there adapters USB MacBook, soley to connect to internet? If so, what's her name and where can I get it?
-
I intend to buy a HP AirPrint compatible for use with my IPad. Is the printer works with the IPad using the Hotels wireless network? If so, are there special configuration issues to deal with?Thanks for any help.
-
Hi all! just got my thinkpad w520 and 2nd day was infected. After clearing the virus, things are ok except when starting got these messages: "An error occurred when loading from resource DLL" «"There was a problem starting C:/PROGRA-2\ThinkPad\UTILIT
-
does not scroll properly...
I just bought my Fuze yesterday (and it's the first real MP3 player I used other than a cheapie)-I rebooted it and responsible for some of the songs, and they play... when I can get to it. My problem is, I can scroll left and right but not up and do
-
I picked up a UPS used to our main office yesterday to use in my local office and struggling to find some technical data for this. The front of the UPS said that is a "HP UPS 1000" and the number of model shown in the back is a C4275A. For this sea