problem in parsing xml with validation

Hello

I use webservice and xml parsing allows to get data from it, he worked successfully when I put data valid that webservice are made up.

But now, I want that if I put some data not valid in URLs for validation purposes.

When I put the wrong data, it shows me exception. So, how I can handle it when the user put data not valid.

Please help me .it's urgent.

Thanks for the reply,

I solved it myself.

Tags: BlackBerry Developers

Similar Questions

  • Problem in parsing XML

    Hello

    Any1 can you please tell me how to do Xml parsing in Blackberry. I'm a bit confused by it.

    Assume that it is my link:

    {keyword: "keword", url: "videoUrl"}

    While parsing xml:

    String keyword1 ="";

    element.getName.equalsIgnoreCase ("keyword");

    keyword1 = Element.GetText ();

    is she writing?

    Hey its done.

  • Problem with parsing XML with html as part of the node content

    Hi all

    I am facing problem with XML parsin when the node has a HTML content, if the node does not have any html content then it works fine. Similar analysis logic works for Java Standard, but not for the Blackberry API. I have an obligation to remove not HTML content prior to analysis. As that would display in the browser.

                              String xml="" +
                    "<p> Dummy content </p> " +
                    "" +
                    "";
                              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
                DocumentBuilder dBuilder;
                Document doc;
                bis = new ByteArrayInputStream(xml.getBytes("UTF-8")); 
    
                dBuilder = dbFactory.newDocumentBuilder();
    
                doc = dBuilder.parse(bis);
                doc.getDocumentElement().normalize();
    
                NodeList nList = doc.getElementsByTagName("disclaimer");
    
                Element activeTagElmnt = (Element) nList.item(0);
                NodeList activeTag = activeTagElmnt.getChildNodes(); 
    
                tagValue=((Node) activeTag.item(0)).getNodeValue();
                              System.out.println(tagValue); //This prints "<" with HTML content. If i remove HTML then "Dummy Content" is printed
    

    If I need to remove html content, then I would need to reformat the content according to the HTML as the newline to a linebreak.

    Any suggestions would be helpful.

    Thank you

    Sandeep

    I feel xml parser was mature enough to handle these characters if sills, you get the error explore CDATA. It might help you.

  • Doc problem analysis of XML with XPath

    I'm trying to parse the XML in an RSS feed for information. I'm able to do perfectly for 1 of the RSS links, however, with the other, I can't seem to get the information. Here is the link the code works now for:

    http://www.SimplyHired.com/a/job-feed/RSS/sq-Atlanta%2c+GA/o-35/FFT-Cook



    And here's the RSS link I am trying to adapt my code to use for:

    http://Auburn.craigslist.org/FBH/index.RSS



    And here is my pl/sql code:
    LOOP
      utl_http.set_proxy(apex_application.g_proxy_server, NULL);
      l_http_req := utl_http.begin_request(i.LINK);
      l_http_resp := utl_http.get_response(l_http_req);
      dbms_lob.createtemporary( l_clob, FALSE );
      dbms_lob.open( l_clob, dbms_lob.lob_readwrite );
      begin
        loop
          utl_http.read_text(l_http_resp, l_buffer);
          dbms_lob.writeappend( l_clob, length(l_buffer), l_buffer );
        end loop;
        exception
         when others then
          if sqlcode <> -29266 then
           raise;
          end if;
      end;
      --
      utl_http.end_response(l_http_resp);

      apex_collection.add_member(
        p_collection_name => 'RSS_RESPONSE',
        p_clob001         => l_clob );

      apex_collection.add_member(
        p_collection_name => 'RSS_RESPONSE_TOTAL',
        p_clob001         => l_clob );


      -- Extracting values from the collection and storing
      -- the results in a table.
      FOR x in (
      SELECT extractValue(value(t),'/*/title') Title,
             extractValue(value(t),'/*/link') Link,
             extractValue(value(t),'/*/pubDate') PublishDate,
             extractValue(value(t),'/*/description') Description
      FROM apex_collections c,
           table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rss/channel/item'))) t
      WHERE c.collection_name = 'RSS_RESPONSE'
      )
      LOOP

        SELECT count(1) into counter_var
        FROM JOB_RSS_FEEDS_CONTENT
        WHERE LINK = x.Link;
         
        if (counter_var > 0) then
          counter_var := 0;
        else
        
          SELECT JOB_RSS_FEEDS_SEQ.NEXTVAL INTO link_counter FROM DUAL;
     
          INSERT INTO JOB_RSS_FEEDS_CONTENT(ID, TITLE, LINK, DESCRIPTION, JOBTYPE, PUB_DATE, METROAREA, STATE, ZIPCODE, LINK_SOURCE)
          VALUES (link_counter, x.Title, x.Link, x.Description, i.POSITION, to_date(substr(UPPER(x.PublishDate), 1, length(x.PublishDate)-3), 'DY, DD MON YYYY HH24:MI:SS'), initcap(i.METROAREA), upper(i.STATE), i.ZIPCODE, i.LINK_SOURCE);

        end if;
      END LOOP;


      --resetting our collection to be used for the next rss feed
      apex_collection.create_or_truncate_collection('RSS_RESPONSE');
      l_clob := NULL;
      l_buffer := NULL;
     
     
      --
      -- If no records left to process or if we've cycled through
      -- links_to_read_in iterations, then exit loop.
      --
      if ((tmp_count = 0) or (loop_count >= (links_to_read_in-1))) then
        exit;
      end if;


      -- incrementing our iteration counter
      loop_count := loop_count + 1;

    END LOOP;  -- for SELECT LINK, METROAREA, STATE, ZIPCODE loop
    I thought that the problem is with the line:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rss/channel/item'))) t 
    I tried to change to:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/'))) t 
    And then:
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rdf/item'))) t
    But those who do not work either. Can't think of what it could be. Any thoughts?

    Published by: taneal on October 27, 2008 12:05

    In order to rule out any problems with the table of the apex, you might want to check the single clob.

    Instead of

    SELECT extractValue(value(t),'/*/title') Title,
               extractValue(value(t),'/*/link') Link,
               extractValue(value(t),'/*/description') Description
        FROM apex_collections c,
              table(xmlsequence(extract(xmltype.createxml(c.clob001),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    WHERE c.collection_name = 'RSS_RESPONSE'
    

    test this

    SELECT extractValue(value(t),'/*/title') Title,
               extractValue(value(t),'/*/link') Link,
               extractValue(value(t),'/*/description') Description
        FROM table(xmlsequence(extract(xmltype.createxml(l_clob),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    

    Note that I've changed from c.clob001 to l_clob.

    or even

    SELECT extractValue(t.column_value,'item/title') Title,
           extractValue(t.column_value,'item/link') Link,
           extractValue(t.column_value,'item/description') Description
        FROM table(xmlsequence(extract(xmltype.createxml(l_clob),
                 '/rdf:RDF/item',
                 'xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"'))) t
    

    I also imagine that we should add the other namespaces too. My example has only a namespace inside.

    Published by: Sven w. on October 29, 2008 17:38

  • Problem of Parsing XML

    Hi all

    I have a XML Data...

    As

    
    
        
        
        
        
        
        
        
        
        
        
    
    
    

    I want to get the name of node and its values...

    But I'm not able to analyze and get access those.

    I tried using DOM parser.

    Everyone please help.

    Thanks and greetings

    Stephenson

    Similar to what manojkbaghela wrote:

    DocumentBuilderFactory docFact = DocumentBuilderFactory.newInstance ();
    DocumentBuilder docBuilder = docFact.newDocumentBuilder ();

    Doc document = docBuilder.parse ({inputSource file});
    doc.getDocumentElement () .normalize ();
    NodeList listOfRecords = doc.getElementsByTagName ("node");
    int totalElements = listOfRecords.getLength ();

    for (int s = 0; s< totalelements;="" s++)="">

    Element myElement = listOfRecords.item (s) (element);

    LinkID = myElement.getAttribute ("LinkID") string;
    String subject = myElement.getAttribute ("Topic");
    Position of the string = myElement.getAttribute ("heading");

    }

  • Help parsing XML with multiple namespaces

    I have a function that returns the following XML:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
       <soap:Body>
          <fetchReportDataResponse xmlns="http://RptArchive/">
             <fetchReportDataResult>
                <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
                   <Table xmlns="">
                      <Report>Person Item</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Select DB by Fragment</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>EmployeeDetailReport</Report>
                      <Program>ADS</Program>
                      <Application>Son1</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>DeliveryTestReport</Report>
                      <Program>ADS</Program>
                      <Application>Test</Application>
                   </Table>
                   <Table xmlns="">
                      <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
                      <Program>WQ</Program>
                      <Application>PARIS</Application>
                   </Table>
                </feed>
             </fetchReportDataResult>
          </fetchReportDataResponse>
       </soap:Body>
    </soap:Envelope>
    I wrote to try to get the data of the following SQL statement:
    select application,program_name,report
    from 
    (select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual )t,
    xmltable('/feed/Table'
    passing t.xml
    columns
    report varchar2(100) path 'Report',
    program_name varchar2(100) path 'Program',
    application varchar2(100) path 'Application');
    {code}
    This returns zero records.  If I break this up, I see that my extract statement is working:
    
    {code}
    select extract(enforce_pkg.get_ads_report_data,'/soap:Envelope/soap:Body/fetchReportDataResponse/fetchReportDataResult/child::node()',
    'xmlns="http://RptArchive/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/') xml
    from dual ;
    Returns
    <feed xmlns="urn:WA.Ecy.ADS.RptAuditImage.Services">
    <Table xmlns="">
    <Report>Person Item</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>Select DB by Fragment</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    <Table xmlns="">
    <Report>EmployeeDetailReport</Report>
    <Program>ADS</Program>
    <Application>Son1</Application>
    </Table>
    <Table xmlns="">
    <Report>DeliveryTestReport</Report>
    <Program>ADS</Program>
    <Application>Test</Application>
    </Table>
    <Table xmlns="">
    <Report>Report_NoDMRs_ProcessByDeliveryMethod</Report>
    <Program>WQ</Program>
    <Application>PARIS</Application>
    </Table>
    </feed>
    So I guess that there is something wrong with my implementation of the function xmltable - perhaps because there are two namespaces involved,
    one of them is null (I know that it is bad form--I am a consumer here and do not have control of the source).

    Any help would be appreciated.

    Best regards, Tony

    You can use xmltable with a simple xpath as follows:

    create or replace type ty_Rep  as object (rep_name varchar2(40), prg_name varchar2(40),app_name varchar2(40));
    /
    create or replace type tb_Rep as table of ty_Rep;
    /
    
    set serveroutput on
    declare
      l_xml xmltype := xmltype('
                                 
                                   
                                       
                                          
                                             Person ItemWQPARIS
    Select DB by FragmentWQPARIS
    EmployeeDetailReportADSSon1
    DeliveryTestReportADSTest
    Report_NoDMRs_ProcessByDeliveryMethodWQPARIS
    '); l_Rep tb_Rep := tb_Rep(); begin select ty_Rep(x.Report, x.Program, x.Application) bulk collect into l_Rep from (select l_XML as m from dual) d ,xmltable ('//Table' passing d.m columns Report varchar2(40) path 'Report' ,Program varchar2(40) path 'Program' ,Application varchar2(40) path 'Application') as x; dbms_output.put_line(l_Rep.count); for r in 1..l_Rep.count loop dbms_output.put_line('Report: ' || l_Rep(r).rep_name ); dbms_output.put_line('Program: ' || l_Rep(r).prg_name ); dbms_output.put_line('Application: ' || l_Rep(r).app_name ); end loop; end; / 5 Report: Person Item Program: WQ Application: PARIS Report: Select DB by Fragment Program: WQ Application: PARIS Report: EmployeeDetailReport Program: ADS Application: Son1 Report: DeliveryTestReport Program: ADS Application: Test Report: Report_NoDMRs_ProcessByDeliveryMethod Program: WQ Application: PARIS PL/SQL procedure successfully completed.
  • Problem when inserting xml with a dtd inline data.

    Hi all
    I have an xml that has been posted wrt a DTD.
    The dtd is included in the first line of the xml file.
    What is the tyrying to insert the xml code in the database, that the exception has occurred
    "ORA-31001: handle or path invalid resource name ' / Sample.dtd ' ORA-06512: at"SYS." XMLTYPE", line 254 ORA-06512: at line 1"
    type of the column used is XMLType.
    Using oracle 10.2.
    Table - create table xmltable (versionNumber number, xmltype instance);
    When we do the insertion as
    insert into values xmltable (1, xmltype ("<?")) XML version = "1.0" encoding ="UTF - 8"? >
    <! DOCTYPE SYSTEM "Sample.dtd" >
    < NAME of CONFIGURATION = "config1" >
    ((' < / CONFIGURATION > "));
    Must be inserted normally, as I'm not validate r w t a pattern recorded.
    Please, help me in this issue.

    Edited by: jagdish1206 may 20, 2010 04:39

    jagdish1206 wrote:
    Is it possible to off Mode validation, so that it simply records the xml code.

    Have you ever tried:

    alter session set events ='31156 trace name context forever, level 2';
    
  • Best way to Parse XML using Dreamweaver CC 2015.3

    I was on a wild goose chase - trying to figure out how to parse XML using DW CC

    every article I read, says something about XML & XSLT, but it is no longer available in the new CC - I read about using jQuery or php, but have not yet find a resource to learn specifically "using DW CC.

    I'm willing to learn how to parse XML with DW CC but I would get a definitive direction to go before I'm trying to learn something that adobe will put in 'end of life '.

    advice or links to resources that can parse XML DW CC 2015 would be LARGELY APPRECIATED, thank you

    x 126 has written:

    What I'm asking is...

    1. What is the best procedure to insert XML into a page using DW CC 2015 as my editor?
    a. what happened to spry? b. what happened to XSLT?

    As Nancy explained, Spry has been abandoned by Adobe, a few years ago.

    XSLT server behavior has been removed at the same time as other server behaviors Dreamweaver CC. The problem with most of the PHP server behaviors was that they were based on code that has been removed from PHP 7. The XSLT server behavior didn't rely on these features, but it was not the most friendly of server behaviors. XSLT is a complex language that is to be avoided when parsing XML unless you really know what you're doing.

    The easiest way to manipulate XML in Dreamweaver should use PHP SimpleXML. I've linked to the samples page in the PHP online documentation. Believe me, it's much easier than trying to do battle with XSLT. If you have a subscription to lynda.com, you can learn more about SimpleXML to my operational with SimpleXMLclass.

  • 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...

  • Deployment of HAProxy and ADF gives problem with validation

    The problem:

    On pages with forms that are used to populate a newly created line, all postings are triggered on the loading of the page with the result of messages for all the fields on the page until the user can start filling out the forms. This only happens behind the loadbalancer when deployment directly accessing everything seems to work.

    When I say on the loading of the page, it isn't exactly on the loading of the page. Loading of the page and everything seems fine for a fraction of a second. However another application is launched and all validations are triggered. This request comes with and without loadbalancer. But it is only with validation when behind the loadbalancer.

    The case:

    1. create taskflow who in a method call, creates a new record and in a second time, show a form for this new line

    2. create a jsf page that contains a box with A taskflow

    (If you come from a page that has already initiated AOS error happens again here)

    3. create taskflow B which is the same thing has to another VO, call taskflow taskflow A B.

    Work half workaround solutions:

    The only solution that seems to work a bit is to ensure that the form is the first page that launches a module of the application (or something vaguely akin to that?). But this still does not work, I need to look for it further how this affects exactly the problem.

    Refresh the browser window allows the validation of messages disappear.

    Defining field validations triggers only immediate so that fields of all other fields are triggered is no longer (at least on the page load)

    The environment:

    HAProxy Loadbalancer

    ADF 11.1.2.3

    WebLogic 10.3.6.0

    I also logged a service request: 3-9991555971

    Configuration of the HAProxy

    listen to utastwlsdev

    link 178.208.47.113:80

    link 192.168.50.223:80

    http mode

    maxconn 65536

    balance roundrobin

    HTTPLOG option

    option httpclose

    option abortonclose

    forwardfor except 178.208.47.19 option

    Redirect 301 if https scheme code! {hdr(X-Forwarded-Proto)-i https}

    appsession JSESSIONID len 52 3 h request timeout - learn prefix

    #option httpchk HEAD/index.html HTTP/1.0

    ErrorFile 503 /etc/haproxy/maintenance.html

    Server wlsdev002_utastwlsdev2 inter 192.168.50.10:7003 verification 2000 fall 3 rise 2

    Server wlsdev003_utastwlsdev3 inter 192.168.50.11:7003 verification 2000 fall 3 rise 2

    Any advise on HAProxy configuration or how to debug this issue is welcome.

    It seems that the problem is that some settings in the HAProxy removed the header "oracle.adf.view.rich.STOP_ACTIVE_DATA". When this header was not there he causes the phases 2 & 3 to be carried out for a bunch of requests and that lead to the postings. All the other things mentioned seem to be a coincidence.

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • XML with XSD validation when there is more than one XSD.

    Hello

    I need to validate an XML against a set of xsd.

    I am aware that, when there is a single XSD to compare, it is possible to compare using xmlDoc.schemaValidate () with xmlDoc and xmlSchema.

    But in my case, there is more than one XSD against which I need to compare the XML code.

    My main XSD has the statement as mentioned below.

    " < xs: import namespace = ' http://www.w3.org/1999/xxxx "schemaLocation ="xxxx.xsd"/ > "

    " < xs: import namespace = ' http://www.w3.org/1999/02/yyyy "schemaLocation ="yyyy.xsd"/ > "

    I don't know how to handle this situation.

    Please, help me!

    Thank you

    Vicky

    Hi Vicky,

    This situation is not different, just validate the main schema.

    But, to use the XMLType schemaValidate method, you must save the schema in the database (via the DBMS_XMLSCHEMA API).

    If the main schema contains imports then these referenced schemas must be saved too.

    To sum up: register all 3 patterns in their order of dependency, then you will be able to validate your XML with the main XSD code.

    () dbms_xmlschema.registerSchema

    schemaURL-online , for example 'xxxx.xsd'

    schemaDoc =>

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    ) ;

  • Please help to read the XML with XMLTable

    Hi gurus,

    I'm not very familiar with XML parsing. It seems to me that it should be very easy to get the data. For some reason, I'm having a problem to get the data.

    SELECT *.
    OF e util.hlsr_online_entries,.
    XMLTABLE)
    XmlNamespaces)
       ' http://tempuri.org/ '    as "dt",
    ("urn: schemas-microsoft-com: XML-diffgram-v1" as "dg").

    "/ DataTable / dg:diffgram/DocumentElement/JrShowCustomerHeifers.
    PASSAGE XMLTYPE (e.entry_data)
    COLUMNS
    SeqNo TO the ORDINALITE,
    DocumentID NUMBER PATH "DocumentID",.
    PATH of VARCHAR2 (100) ClubName "ClubName") as test
    WHERE e.ref_id = 33422

    The query above does all the data for me. My hunts is the problem with the tab DocumentElement. I tried a different variant management.

    Please help me to resolve the application

    I have the XML document following the DotNet developer

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

    " < DataTable xmlns =" http://tempuri.org/ ">

    < xs: Schema id = "NewDataSet" xmlns = "" "xmlns: XS =" " http://www.w3.org/2001/XMLSchema " "xmlns:msdata ="urn: schemas-microsoft-com: xml-msdata" >

    < xs: element name = "NewDataSet" msdata:IsDataSet = "true" msdata:MainDataTable = "JrShowCustomerHeifers" msdata:UseCurrentLocale = "true" >

    < xs: complexType >

    < xs: Choice minOccurs = "0" maxOccurs = "unbounded" >

    < xs: element name = "JrShowCustomerHeifers" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "DocumentID" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "ClubName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Name" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "FirstName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "PreferredName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Email" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Exhibitor" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "AnimalName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "RegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "DateofBirth" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "NameofSire" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "SireRegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "NameofDam" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "DamRegistryNo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Tattoo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "SecondaryTattoo" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "UniversalIDNumber" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Tattoo_Location" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Secondary_Tattoo_Location" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "OracleBreedID" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "JrValidationBreedName" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "ValidationDate" type = "xs: DateTime" minOccurs = "0" / >

    < xs: element name = "ValidatedBy" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "ValidationComment" type = "xs: String" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < / xs: Choice >

    < / xs: complexType >

    < / xs: element >

    < / xs: Schema >

    < xmlns:msdata = diffgr:diffgram "" urn: schemas-microsoft-com: xml-msdata "xmlns:diffgr =" urn: schemas-microsoft-com: XML-diffgram-v1 ">"

    < DocumentElement xmlns = "" >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers1" msdata:rowOrder = "0" >

    < > 18442 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < > 113 AnimalName < / AnimalName >

    < RegistryNo > C1026447 < / RegistryNo >

    < DateofBirth > 14/01/2013 < / DateofBirth >

    < NameofSire > 808 808 DAYS of MATCH LH < / NameofSire >

    < SireRegistryNo > C961101 < / SireRegistryNo >

    SADIE 7/7 < NameofDam > < / NameofDam >

    < DamRegistryNo > C941067 < / DamRegistryNo >

    < > 113 tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F020 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6383 < / OracleBreedID >

    Beefmaster < JrValidationBreedName > < / JrValidationBreedName >

    < ValidationDate > 2014-11-25T 08: 39:00 - 06:00 < / ValidationDate >

    < ValidatedBy > laineyb < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers2" msdata:rowOrder = "1" >

    < > 18473 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE CORALEE 349 KPH < / AnimalName >

    < RegistryNo > P43461953 < / RegistryNo >

    < DateofBirth > 04/11/2013 < / DateofBirth >

    < NameofSire > PURPLE MOXY 22 X AND < / NameofSire >

    < SireRegistryNo > P43126458 < / SireRegistryNo >

    < NameofDam > TCC CORKY 6603 < / NameofDam >

    < DamRegistryNo > P42457119 < / DamRegistryNo >

    < > 349 tattoo < / tattoo >

    < SecondaryTattoo > km/h < / SecondaryTattoo >

    < UniversalIDNumber > 1194F021 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers3" msdata:rowOrder = "2" >

    < > 18474 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > LANGFORDS SWEET N SOUR 4107 < / AnimalName >

    < RegistryNo > 43504761 < / RegistryNo >

    < DateofBirth > 02/03/2014 < / DateofBirth >

    < NameofSire > LH TNT 1017 < / NameofSire >

    < SireRegistryNo > 43199794 < / SireRegistryNo >

    < NameofDam > LANGFORDS LADY 2206 AND < / NameofDam >

    < DamRegistryNo > 43315143 < / DamRegistryNo >

    < > 4107 tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F018 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6398 < / OracleBreedID >

    Hereford < JrValidationBreedName > < / JrValidationBreedName >

    < ValidationDate > 2014-11-24T 14:26:00 - 06:00 < / ValidationDate >

    Validator < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers4" msdata:rowOrder = "3" >

    < > 18475 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE CCC 19A LYDIA < / AnimalName >

    < RegistryNo > P43406978 < / RegistryNo >

    < DateofBirth > 05/02/2013 < / DateofBirth >

    < NameofSire > PURPLE MB WOMANIZER 14UET < / NameofSire >

    < SireRegistryNo > P42945146 < / SireRegistryNo >

    < NameofDam > PURPLE CMCC NASTIA 9U < / NameofDam >

    < DamRegistryNo > P42927201 < / DamRegistryNo >

    < > 19A tattoo < / tattoo >

    < SecondaryTattoo / >

    < UniversalIDNumber > 1194F017 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location / >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 55:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < JrShowCustomerHeifers diffgr: ID = "JrShowCustomerHeifers5" msdata:rowOrder = "4" >

    < > 18477 DocumentID < / DocumentID >

    < ClubName > Perrin FFA < / ClubName >

    Hamman < name > < / LastName >

    < FirstName > Charles < / name >

    < email > [email protected] < / email >

    < setting > hammam, Charles < / Exhibitor >

    < AnimalName > PURPLE SGW EDEN 12 b < / AnimalName >

    < RegistryNo > P43521932 < / RegistryNo >

    < DateofBirth > 02/04/2014 < / DateofBirth >

    < NameofSire > first TIME's a WASTINe 0124 < / NameofSire >

    < SireRegistryNo > 43123163 < / SireRegistryNo >

    < NameofDam > PURPLE SM WONDER WOMAN 160Y < / NameofDam >

    < DamRegistryNo > P43235169 < / DamRegistryNo >

    < tattoo > 12 b < / tattoo >

    < SecondaryTattoo > 12 b < / SecondaryTattoo >

    < UniversalIDNumber > 1194F015 < / UniversalIDNumber >

    < Tattoo_Location > TATTOO - left ear < / Tattoo_Location >

    < Secondary_Tattoo_Location > TATTOO - right ear < / Secondary_Tattoo_Location >

    < OracleBreedID > 6389 < / OracleBreedID >

    < JrValidationBreedName > Polled Hereford < / JrValidationBreedName >

    < ValidationDate > 2014 - 12-01 T 11: 56:00 - 06:00 < / ValidationDate >

    Hannah < ValidatedBy > < / ValidatedBy >

    < ValidationComment / >

    < / JrShowCustomerHeifers >

    < / DocumentElement >

    < / diffgr:diffgram >

    < / DataTable >

    user12021633 wrote:

    Regarding your suggestion, I've never used the syntax of FLWOR. I'll try to implement if I can make it work.

    "FLWOR is the abbreviation of ' for Let's where Order by Return" and refers to the full form of an XQuery query expression.

    Do you think it would be faster than the way I have the values?

    You have used a FLWOR expression (the 'for' + 'return' part of it) in this post: Re: Please help to read the XML with XMLTable

    And I have already said: do not use in this case.

    Faster or slower isn't the point. Oracle will evaluate the expression in the same way.

    But from a maintenance point of view, it's obviously much easier to use a simple XPath expression like this:

    /DT:GetJrShowCustomerHeifersResponse / dt:GetJrShowCustomerHeifersResult / dg:diffgram/DocumentElement/JrShowCustomerHeifers

  • Demarshalling xml with the automatically generated class JAXB2.0 file does not work in jdeveloper 11.1.1.9

    I'm trying to familiarize themselves with JAXB in jdeveloper. I am facing some problems. There are a few test cases for which he works, for others it is not.

    Case 1:

    XML file is created manually. Respective java class to xmlelements is created manually. There is no ObjectFactory.java or jaxb.properties. Demarshalling this XML file works fine.

    Case 2:

    XML file is not created manually. All the respective java classes including ObjectFactory.java and jaxb.properties are generated using the widget ' JAXB 2.0 content XML Schema model "jdeveloper. I deleted ObjectFactory.java, jaxb.properties, and package - info.java. Demarshalling xml with this class file works fine.


    Case 3:

    Even in case 2, but this time I do not delete or change whatever it is generated and used as it is. It does not work. Get the following error.

    Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
    javax.xml.bind.UnmarshalException
     - with linked exception:
    [Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project]
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:816)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:109)
      at com.example.jaxbintro.JAXBExampleClass.main(JAXBExampleClass.java:36)
    Caused by: Exception [EclipseLink-25008] (Eclipse Persistence Services - 2.3.1.v20111018-r10243): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A descriptor with default root element rss was not found in the project
      at org.eclipse.persistence.exceptions.XMLMarshalException.noDescriptorWithMatchingRootElement(XMLMarshalException.java:129)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshallerHandler.startElement(SAXUnmarshallerHandler.java:208)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1598)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:455)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:401)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:239)
      at org.eclipse.persistence.internal.oxm.record.XMLReader.parse(XMLReader.java:157)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:688)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:271)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:258)
      at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:218)
      at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:306)
      at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:106)
      ... 1 more
    

    The project is included in the annex to this issue. It is ready for use. More information in the commentary to the java code. The main class is JAXBExampleClass.java.

    What is the problem with case 3?

    OK, I've been messing around with codes generated a bit and found the solution. The problem is that the value of the XmlSchema namespace had error in package - info.java class. There is no specified XmlSchema namespace in the XML file. Thus, the given value in the package - info.java was wrong.

    @javax.xml.bind.annotation.XmlSchema (namespace = "http://www.example.org", value / / wrong, set it to an empty string or that of your xml file, if it has any)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    After you set the namespace to the empty string, since my xml file do not have one, code ran very well.

    @javax.xml.bind.annotation.XmlSchema (namespace = "",)

    elementFormDefault =

    javax.xml.bind.annotation.XmlNsForm.QUALIFIED)

    package com.example.jaxbintro.xmlerror;

    The file package - info.java can also be removed and it will work. For more details on the package and XmlSchema annotated level, what information on the package class is for, be found in the following link.

    https://JAXB.Java.NET/NoNAV/jaxb20-FCS/docs/API/javax/xml/bind/annotation/XmlSchema.html

  • Noob XML - XML files validation attempt

    Versions of the databases: 10.2.0.4 on 11.2.0.3.

    I am currently on a site that has very little experience with XMLDB (0%). I myself have about 0.1% experience

    This would save a lot (!) time if XML files could be validated in the database, so I'll try from there to achieve, however, so far I can't work.

    I keep on running in:

    ORA-19007: pattern string does not match expected string.

    Question: The given XML document was consistent with a different schema than expected.

    Action: Insert/update only this particular scheme-compliant XML documents.

    I followed the steps in this article: www.xmldb.nl & amp; raquo; HOWTO: Validate the XML data

    (the examples in the article using ROOT_TABLE worked fine, by the way and have been my POC)

    and read the Oracle documentation on this topic.

    Currently, after several adjustments, XMLSpy said that the xsd and xml are valid.

    But Oracle is apparently still not convinced.

    Maybe it's something obvious, but I don't know where to look now, so any pointer is more than welcome.

    My next testcase (after the CPO ROOT_TABLE) was:

    Save a schema (using dbms_xmlschema.registerschema) in the following form:

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

    <!--

    XSD schema

    ->

    " < xs: schema xmlns: XS =" http://www.w3.org/2001/XMLSchema "         

    elementFormDefault = "qualified" >

    < xs: element name = "Kwijtscheldingen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = "Header" / >

    < xs: ELEMENT ref = "Kwijtschelding" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Header" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Assuré" type = "xs: String" / >

    < xs: element name = "Aanleverdatum" type = "Référence" / >

    < xs: element name = "Rapportagedatum" type = "Référence" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Kwijtschelding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: ELEMENT ref = 'Algemeen' / >

    < xs: ELEMENT ref = "Inkomen" / >

    < xs: ELEMENT ref = "VermogenBD" / >

    < xs: ELEMENT ref = "Voertuigbezit" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = 'Algemeen' >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "BelemmeringEindoordeel" type = "Jore" / >

    < xs: element name = "Geslachtsnaam" type = "xs: String" / >

    < xs: element name = "Geboortedatum" type = "Référence" / >

    < xs: element name = "Student" type = "Jore" / >

    < xs: element name = "BSNPartner" type = "BSN" minOccurs = "0" / >

    < xs: element name = "GeslachtsnaamPartner" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "GeboortedatumPartner" type = "Reference" minOccurs = "0" / >

    < xs: element name = "StudentPartner" type = "Jore" minOccurs = "0" / >

    < xs: ELEMENT ref = "Leefvorm" / >

    < xs: ELEMENT ref = "BetrouwbaarheidLeefvorm" minOccurs = "0" / >

    < xs: element name = "AantalMeerderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "AantalMinderjarigeBewoners" type = "xs: unsignedByte" minOccurs = "0" / >

    < xs: element name = "BSNTevensAangeleverdGemeente" type = "xs: String" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Inkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "TotaalNettoInkomen" type = "History" / >

    < xs: ELEMENT ref = "Inkomstenverhouding" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: element name = "BedragHuurtoeslag" type = "History" minOccurs = "0" / >

    < xs: element name = "BedragZorgtoeslag" type = "History" minOccurs = "0" / >

    < xs: ELEMENT ref = "Heffingskorting" minOccurs = "0" maxOccurs = "unbounded" / >

    < xs: ELEMENT ref = "StudentInkomen" minOccurs = "0" / >

    < xs: ELEMENT ref = "StudentPartnerInkomen" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "VermogenBD" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: element name = "SaldoTotaal" type = "History" / >

    < xs: element name = "RenteTotaal" type = "History" / >

    < xs: ELEMENT ref = "Free" maxOccurs = "unbounded" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Voertuigbezit" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "Belemmering" type = "Jore" / >

    < xs: ELEMENT ref = "Con" minOccurs = "0" maxOccurs = "unbounded" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Algemeen Ref Prioritaten - >

    < xs: element name = "Leefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < xs:enumeration value = "1" >

    < xs: annotation >

    < intention > Gehuwd/Samenwonend < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "2" >

    < xs: annotation >

    < intention > Alleenstaand < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < xs:enumeration value = "3" >

    < xs: annotation >

    older < intention > Alleenstaande < / intention >

    < / xs: annotation >

    < / xs:enumeration >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    < xs: element name = "BetrouwbaarheidLeefvorm" >

    < xs:simpleType >

    < xs:restriction base = "XS: String" >

    < value pattern = "Laag |" Midden | Hoog "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: element >

    <! - Inkomen - Ref Prioritaten->

    < xs: element name = "Inkomstenverhouding" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "werkgeverUitkeringsinstantie" type = "xs: String" / >

    < xs: element name = "BedragInkomsten" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Heffingskorting" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "description" type = "xs: String" / >

    < xs: element name = "Kortingsbedrag" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "StudentPartnerInkomen" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BedragBasisbeurs" type = "History" / >

    < xs: element name = "BedragAanvullendeBeurs" type = "History" / >

    < xs: element name = "BedragLening" type = "History" / >

    < xs: element name = "BedragLeningCollegegeld" type = "History" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Fortune - elements->

    < xs: element name = "Free" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "NaamRekeninghouder" type = "xs: String" / >

    < xs: element name = "Rekeningnummer" type = "xs: String" / >

    < xs: element name = "Saldo" type = "History" / >

    < xs: element name = "Rent" type = "History" / >

    < xs: element name = "Banknaam" type = "xs: String" / >

    < xs: element name = "NaamBankproduct" type = "xs: String" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    < xs: element name = "Con" >

    < xs: complexType >

    < xs: SEQUENCE >

    < xs: element name = "BSN" type = "BSN" / >

    < xs: element name = "Kenteken" type = "xs: String" / >

    < xs: element name = "Bouwjaar" type = "Jaar" minOccurs = "0" / >

    < xs: element name = "Soort" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Me" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Type" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Kokonaispainolla" type = "xs: int" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort1" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BrandstofSoort2" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Also" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "BijzondereCondities" type = "xs: String" minOccurs = "0" / >

    < xs: element name = "Status" type = "xs: String" minOccurs = "0" / >

    < / xs: SEQUENCE >

    < / xs: complexType >

    < / xs: element >

    <! - Generieke Typen - >

    < xs:simpleType name = "BSN" >

    < xs:restriction base = "XS: String" >

    < value pattern = "\d {9}" / > "

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Datum" >

    < xs: annotation >

    < intention > Datum als jjjjmmdd < / intention >

    < / xs: annotation >

    < xs:restriction base = "XS: String" >

    < xs:length value = "8" / >

    XS: pattern < value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/ >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Bed" >

    < xs:restriction base = "XS: Decimal ' >

    < xs:fractionDigits value = "2" / >

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Crislover" >

    < xs:restriction base = "XS: String" >

    "< value pattern = ' J | N "/ >"

    < / xs:restriction >

    < / xs:simpleType >

    < xs:simpleType name = "Year" >

    < xs:restriction base = "XS: positiveInteger" >

    < xs:totalDigits value = "4" / >

    < / xs:restriction >

    < / xs:simpleType >

    < / xs: Schema >

    I used when creating the table 'Kwijtscheldingen' element.

    The last test XML file, which has no problem with validation XMLSpy, is facing ORA-19007.

    Here is the content of the XML test file:

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

    " < Kwijtscheldingen xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "xsi: noNamespaceSchemaLocation ="KWS2_Schema_Concept1.1.xsd"> ".

    < header >

    Organisatienaam < assuré > < / assuré >

    < Aanleverdatum > 20140701 < / Aanleverdatum >

    < Rapportagedatum > 20140715 < / Rapportagedatum >

    < / header >

    < Kwijtschelding >

    < Algemeen >

    < BSN > 111111111 < / BSN >

    < BelemmeringEindoordeel > J < / BelemmeringEindoordeel >

    < Geslachtsnaam > Geslachtsnaambsn111111111 < / Geslachtsnaam >

    < Geboortedatum > 19700707 < / Geboortedatum >

    < student > N < / student >

    < BSNPartner > 222222222 < / BSNPartner >

    < GeslachtsnaamPartner > GeslachtsnaamPartnerbsn222222222 < / GeslachtsnaamPartner >

    < GeboortedatumPartner > 19710709 < / GeboortedatumPartner >

    < StudentPartner > N < / StudentPartner >

    < Leefvorm > 1 < / Leefvorm >

    Hoog < BetrouwbaarheidLeefvorm > < / BetrouwbaarheidLeefvorm >

    < AantalMeerderjarigeBewoners > 2 < / AantalMeerderjarigeBewoners >

    < AantalMinderjarigeBewoners > 0 < / AantalMinderjarigeBewoners >

    < BSNTevensAangeleverdGemeente > AanleverGemeente1 < / BSNTevensAangeleverdGemeente >

    < BSNTevensAangeleverdGemeente > AanleverGemeente2 < / BSNTevensAangeleverdGemeente >

    < / Algemeen >

    < Inkomen >

    < Belemmering > J < / Belemmering >

    < TotaalNettoInkomen > 1000000 < / TotaalNettoInkomen >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie1 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 800000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < Inkomstenverhouding >

    < BSN > 111111111 < / BSN >

    < werkgeverUitkeringsinstantie > werkgeverUitkeringsinstantie2 < / werkgeverUitkeringsinstantie >

    < BedragInkomsten > 200000 < / BedragInkomsten >

    < / Inkomstenverhouding >

    < BedragHuurtoeslag > 1100 < / BedragHuurtoeslag >

    < BedragZorgtoeslag > 2200 < / BedragZorgtoeslag >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving1 < / Description >

    < Kortingsbedrag > 1000 < / Kortingsbedrag >

    < / Heffingskorting >

    < Heffingskorting >

    < BSN > 111111111 < / BSN >

    < Description > Heffingskortingomschrijving2 < / Description >

    < Kortingsbedrag > 7000 < / Kortingsbedrag >

    < / Heffingskorting >

    < StudentInkomen >

    < BedragBasisbeurs > 15000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 5000 < / BedragAanvullendeBeurs >

    < BedragLening > 4000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentInkomen >

    < StudentPartnerInkomen >

    < BedragBasisbeurs > 80000 < / BedragBasisbeurs >

    < BedragAanvullendeBeurs > 20000 < / BedragAanvullendeBeurs >

    < BedragLening > 5000000 < / BedragLening >

    < BedragLeningCollegegeld > 1000000 < / BedragLeningCollegegeld >

    < / StudentPartnerInkomen >

    < / Inkomen >

    < VermogenBD >

    < Belemmering > J < / Belemmering >

    < SaldoTotaal > 3000000 < / SaldoTotaal >

    < RenteTotaal > 50000 < / RenteTotaal >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 837476976 < / Rekeningnummer >

    < Saldo > 2000000 < / Saldo >

    < Pension > 30000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    < NaamBankproduct > Spaarrekening < / NaamBankproduct >

    < / Location >

    < Location >

    < BSN > 111111111 < / BSN >

    < NaamRekeninghouder > Geslachtsnaambsn111111111 < / NaamRekeninghouder >

    < Rekeningnummer > 845666037 < / Rekeningnummer >

    < Saldo > 1000000 < / Saldo >

    < Pension > 20000 < / pension >

    < Banknaam > ABN AMRO < / Banknaam >

    Deposito < NaamBankproduct > < / NaamBankproduct >

    < / Location >

    < / VermogenBD >

    < Voertuigbezit >

    < Belemmering > J < / Belemmering >

    < con >

    < BSN > 111111111 < / BSN >

    22GR 44 < Kenteken > < / Kenteken >

    < > 1988 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Renault < Merk > < / Merk >

    Clio < type > < / Type >

    < Weight > 1020 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    Inrichtingauto1 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto1 < / BijzondereCondities >

    < Status > Statusauto1 < / status >

    < / con >

    < con >

    < BSN > 111111111 < / BSN >

    33PL66 < Kenteken > < / Kenteken >

    < > 1991 Bouwjaar < / Bouwjaar >

    Personenauto < Soort > < / Soort >

    Opel < Merk > < / Merk >

    Omega < type > < / Type >

    < Weight > 1550 < / weight >

    Benzine < BrandstofSoort1 > < / BrandstofSoort1 >

    LPG < BrandstofSoort2 > < / BrandstofSoort2 >

    Inrichtingauto2 < also > < / also >

    < BijzondereCondities > Bijzonderhedenauto2 < / BijzondereCondities >

    < Status > Statusauto2 < / status >

    < / con >

    < / Voertuigbezit >

    < / Kwijtschelding >

    < / Kwijtscheldingen >

    If more input is needed, then I'll be happy to provide.

    Thanks in advance!

    Hello

    Maybe that is part of your condition, but you don't actually create a table to validate an XML document on a diagram.

    If this is the case, could you post the DBMS_XMLSCHEMA.registerSchema as well as the used CREATE TABLE and INSERT statements?

    For example, it works fine for me:

    Start

    () dbms_xmlschema.registerSchema

    schemaURL-online "KWS2_Schema_Concept1.1.xsd."

    schemaDoc-online xmltype (bfilename('TEST_DIR','KWS2_Schema_Concept1.1.xsd'), nls_charset_id ('AL32UTF8'))

    local-online true

    genTypes-online fake

    genTables-online fake

    enableHierarchy-online dbms_xmlschema. ENABLE_HIERARCHY_NONE

    );

    end;

    /

    declare

    doc xmltype: = xmltype (bfilename('TEST_DIR','test.xml'), nls_charset_id ('AL32UTF8'));

    Start

    doc.schemaValidate ();

    end;

    /

Maybe you are looking for