Reading XML using XSLT data

I have a problem of reading xml using XSLT data. There is a CASE - 900000016, has two sequences. SEQ NO1 and NO2 SEQ. Each sequence has an activity. I try to display the info of the activity under corresponding sequences.

SEQ 01

Activity

SEQ 02

Activity

This is the xml file.

<? XML version = "1.0" encoding = "utf-8" standalone = "yes"? >
< case >
< EventList >
< PAEvent >
< CASENO > 900000016 < / CASENO >
< > 01 SEQ_NO < / SEQ_NO >
APPROVED < STATUS > < / STATUS >
< REASON > < / REASON >
< PR_NO > 506024 < / PR_NO >
< SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
< SRV_END_DAT > 11/02/2010 < / SRV_END_DAT >
< / PAEvent >
< PAEvent >
< CASENO > 900000016 < / CASENO >
< > 02 SEQ_NO < / SEQ_NO >
APPROVED < STATUS > < / STATUS >
< TYPE > < / TYPE >
< REASON > < / REASON >
< PR_NO > < / PR_NO >
< SRV_BEG_DAT > 11/02/2010 < / SRV_BEG_DAT >
< SRV_END_DAT > 28/02/2010 < / SRV_END_DAT >
< / PAEvent >
false < hasErrors > < / hasErrors >
< / EventList >
< ActivitiesList >
< PAActivity >
< CASE_NO > 900000016 < / CASE_NO >
< > 01 SEQNO < / SEQNO >
< ACTVTY_LN_NO > 03 < / ACTVTY_LN_NO >
< ACTVTY_TYP >: < / ACTVTY_TYP >
< UNIT_PRC > 16.2500 < / UNIT_PRC >
< / PAActivity >
< PAActivity >
< CASE_NO > 900000016 < / CASE_NO >
< > 02 SEQNO < / SEQNO >
< ACTVTY_LN_NO > 01 < / ACTVTY_LN_NO >
< ACTVTY_TYP > P < / ACTVTY_TYP >
< UNIT_PRC > 0.0000 < / UNIT_PRC >
< / PAActivity >
false < hasErrors > < / hasErrors >
< / ActivitiesList >
< / Cases >


XSLT code

<? XML version = "1.0" encoding = "utf-8"? >
< xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" >
< xsl: template match = "Case" >
< div Id = "dvEvents" align = "center" >
<!--list of events-->
< table width = "75%" border = "0" >
< style tr = "text-align: left;" background-color: gray; ">
< td colspan = "8" class = "SmallBlackFontBolder" >
< b > < /b > events
< table >
< /tr >
< xsl: for-each select = "EventList/PAEvent" >
< b >
< class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
< class td = "SmallGreenFontBold" align = "left" width = "10%" >
< xsl: value-of select = "SEQ_NO" / >
< table >

< class td = "SmallBlackFontBold" align = "left" width = "8%" > status: < table >
< td align = "left" width = "11%" >
< xsl: value-of select = "STATUS" / >
< table >
< /tr >

< b >
< td >
<!--get the list of activities-->
< xsl: for-each select = "Case/ActivitiesList/PAActivity" >
< xsl: if test = "Case, EventList, PAEvent, SEQ_NO = case, ActivitiesList, PAActivity, SEQNO" >
< table width = "75%" >
< b >
< class td = "SmallBlackFontBold" style = "" text-align: left; "width ="8% "> Seq No.: < table >"
< class td = "SmallGreenFontBold" align = "left" width = "10%" >
< xsl: value-of select = "Case, ActivitiesList, PAActivity, SEQNO" / >
< table >
Unit price < td >: < table >
< td align = "left" width = "11%" >
< xsl: value-of select = "Case, ActivitiesList, PAActivity, UNIT_PRC" / >
< table >
< /tr >
< /table >
< / xsl: if >
< / xsl: foreach >
<!--get the list of activities-->
< table >
< /tr >

< b >
< class td = "SmallBlackFontBold" align = "left" width = "8%" > reason: < table >
< td align = "left" width = "20%" >
< xsl: value-of select = "PAEvent/EventList/reason" / >
< table >
< td > < table >
< td > < table >
< class td = "SmallBlackFontBold" align = "left" width = "14%" > PR_NO: < table >
< td align = "left" width = "18%" >
< xsl: value-of select = "PAEvent/EventList/PR_NO" / >
< table >
< /tr >

< / xsl: foreach >
< /table >

< / div >
< / xsl: template >
< / xsl: stylesheet >

Published by: 837989 on April 25, 2013 14:13

Tags: Oracle Development

Similar Questions

  • Nested reading XML using XQUERY in the PL/SQL procedure

    I'm using Oracle 11 G.
    I have a PL/SQL procedure, which is reading XML using xquery XMLTYPE column in a table. The XML contains data of the DEPARTMENT and its SECTIONS. DEPARTMENT has a to-many with SECTIONS or a DEPARTMENT can have one or more SECTIONS, and there may be cases where the DEPARTMENT will have all SECTIONS.

    The XML structure is such that
    <DATA>
    label to identify a DEPARTMENT and all its corresponding SECTIONS.

    XML
    <ROWSET> 
    <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP1</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT1</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
       <SECTIONS>
      <SECTIONS_ID>6390135666643567</SECTIONS_ID>
      <SECTIONS_NAME>mySection2</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
     <DATA>
     <DEPARTMENT>
      <DEPARTMENT_ID>DEP2</DEPARTMENT_ID>
      <DEPARTMENT_NAME>myDEPARTMENT2</DEPARTMENT_NAME>
     </DEPARTMENT>
     <SECTIONS>
      <SECTIONS_ID>63902</SECTIONS_ID>
      <SECTIONS_NAME>mySection1</SECTIONS_NAME>
      </SECTIONS>
     </DATA>
    </ROWSET>
    XQUERY
    select
     department_id,
      department_name,
      sections_id,
      sections_name
    from
      OFFLINE_XML xml_list,
      xmltable(
        '
          for $department in $param/ROWSET/DATA
            return $department
        '
        passing xml_list.xml_file as "param"
        columns
          "DEPARTMENT_ID"   varchar2(100) path '//DEPARTMENT/DEPARTMENT_ID',
          "DEPARTMENT_NAME" varchar2(4000) path '//DEPARTMENT/DEPARTMENT_NAME',
          "SECTIONS_ID"     varchar2(100) path '//SECTIONS/SECTIONS_ID',
          "SECTIONS_NAME"   varchar2(4000) path '//SECTIONS/SECTIONS_NAME'
      ) section_list
    where
      xml_list.Status = 5
    The performance of the query, you receive an error
    ORA-19279: XPTY0004 - XQuery dynamic type mismatch: expected singleton 
    sequence - got multi-item sequence
    It is natural because I have several sections, now how I'll handle this situation.

    It's the usual approach to manage several nested collections:

    SQL> select d.department_id
      2       , d.department_name
      3       , s.sections_id
      4       , s.sections_name
      5  from offline_xml t
      6     , xmltable(
      7         '/ROWSET/DATA'
      8         passing t.xml_file
      9         columns
     10           DEPARTMENT_ID   varchar2(20) path 'DEPARTMENT/DEPARTMENT_ID'
     11         , DEPARTMENT_NAME varchar2(30) path 'DEPARTMENT/DEPARTMENT_NAME'
     12         , SECTIONS        xmltype      path 'SECTIONS'
     13       ) d
     14     , xmltable(
     15         '/SECTIONS'
     16         passing d.sections
     17         columns
     18           SECTIONS_ID     varchar2(20) path 'SECTIONS_ID'
     19         , SECTIONS_NAME   varchar2(30) path 'SECTIONS_NAME'
     20      ) s
     21  ;
    
    DEPARTMENT_ID        DEPARTMENT_NAME                SECTIONS_ID          SECTIONS_NAME
    -------------------- ------------------------------ -------------------- ------------------------------
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection1
    DEP1                 myDEPARTMENT1                  6390135666643567     mySection2
    DEP2                 myDEPARTMENT2                  63902                mySection1
     
    
  • Reading XML using java

    Hi all
    To read XML document is:

    < customer name = 'A' >
    FA1 < FileToBeProcessed > < / FileToBeProcessed >
    FA2 < FileToBeProcessed > < / FileToBeProcessed >
    SA3 < FileToBeProcessed > < / FileToBeProcessed >
    < / customer >

    < customer name = "B" >
    FB1 < FileToBeProcessed > < / FileToBeProcessed >
    FB2 < FileToBeProcessed > < / FileToBeProcessed >
    FB3 < FileToBeProcessed > < / FileToBeProcessed >
    < / customer >


    I want to get all the names of files to be treated by A client in an array of java. How can I read and search in this type of xml file using java?

    If this is then can not the correct way of writing in xml you suggest other alternative and corresponding Java solutions to read this kind of xml format?

    Thanks in advance... :-)

    Take a look at javax.xml.xpath. Very suitable for this type of application.

  • ORA-03113 "reading" XML of CLOB

    Hello

    I use XMLTable for reading XML to insert data into the DB table. I have:

    PROCEDURE IMPORT_XML)

    p_plik VARCHAR2,

    p_tp_id NUMBER,

    number of p_commit_po: = 500) IS

    l_blob_id TERYT_PLIKI.tp_blob_id%type;

    l_blob BLOB;

    XMLTYpe l_teryt_xml;

    L_Name varchar2 (100);

    l_type varchar2 (100);

    l_date varchar2 (100);

    -l_part varchar2 (100);

    XMLType l_rows;

    l_commit number (6);

    l_cnt_rows NUMBER: = 0;

    procedure do_commit is

    Start

    l_commit: = l_commit + 1;

    l_cnt_rows: = l_cnt_rows + 1;

    If l_commit > = p_commit_po then

    commit;

    l_commit: = 0;

    end if;

    end do_commit;

    BEGIN

    -# variable l_BLOB contains BLOB from a column of table #.

    Err.d ("convert BLOB CLOB type...', 'IMPORT_XML', 70 ');

    declare

    dest_lob CLOB.

    src_lob BLOB;

    the sum integer: = DBMS_LOB. LOBMAXSIZE;

    dest_offset integer: = 1;

    offset integer: = 1;

    number of blob_csid: = nls_charset_id ('AL32UTF8');

    lang_context integer: = 0;

    the warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    Start

    dest_lob: = empty_Clob();

    DBMS_LOB. CREATETEMPORARY (dest_lob, false);

    DBMS_LOB. OPEN (dest_lob, DBMS_LOB. LOB_READWRITE);

    DBMS_LOB. OPEN (l_blob, DBMS_LOB. LOB_READONLY);

    DBMS_LOB. () CONVERTTOCLOB

    dest_lob,

    l_blob,

    amount,

    dest_offset,

    offset,

    blob_csid,

    lang_context,

    (caveat);

    DBMS_LOB. Close (l_blob);

    l_teryt_xml: = XMLType (dest_lob);

    commit;

    DBMS_LOB. FREETEMPORARY (dest_lob);

    end;

    l_rows: = l_teryt_xml.extract('/teryt/catalog/row');

    l_commit: = 0;

    If l_name = "TERC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    ["COLUMNS"WOJ"PATH of the VARCHAR2 (20) ' col[@name="WOJ "]',

    ["VARCHAR2 (20)"POW"PATH" col[@name="POW"]',

    ["Path"GMI"VARCHAR2 (20) ' col[@name="GMI "]',

    PATH of VARCHAR2 (2) "RODZ" "col[@name="RODZ"]',"

    PATH of VARCHAR2 (50) "NAME" "col[@name="NAZWA"]',"

    PATH of VARCHAR2 (50) "NAZDOD" "col[@name="NAZDOD"]',"

    "[" "STAN_NA PATH" VARCHAR2 (10) ' col[@name="STAN_NA"] "

    ) x

    ) loop

    INSERT INTO TERYT_TERC (WOJ, POW, GMI, RODZ, NAME, NAZDOD, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ, r.NAZWA, r.NAZDOD, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "SIMC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"

    ["" POW"VARCHAR2 (3) path" col[@name="POW"]',

    "GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"

    PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"

    ["" RM"VARCHAR2 (3) path" col[@name="RM"]',

    "MZ' VARCHAR2 (3) PATH" col[@name="MZ"]', "

    PATH of VARCHAR2 (60) "NAME" "col[@name="NAZWA"]',"

    "SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "

    PATH of VARCHAR2 (7) "SYMPOD" "col[@name="SYMPOD"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAME, SYMBOL, SYMPOD, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.RM, r.MZ, r.NAZWA, r.SYM, r.SYMPOD, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "ULIC" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "WOJ" VARCHAR2 COLUMNS (3) path "col[@name="WOJ"]',"

    ["" POW"VARCHAR2 (3) path" col[@name="POW"]',

    "GMI" VARCHAR2 (3) PATH "col[@name="GMI"]',"

    PATH of VARCHAR2 (2) "RODZ_GMI" "col[@name="RODZ_GMI"]',"

    "SYM' VARCHAR2 (7) PATH" col[@name="SYM"]', "

    PATH of VARCHAR2 (7) "SYM_UL" "col[@name="SYM_UL"]',"

    PATH of VARCHAR2 (5) "CECHA" "col[@name="CECHA"]',"

    PATH of VARCHAR2 (50) "NAZWA_1" "col[@name="NAZWA_1"]',"

    PATH of VARCHAR2 (50) "NAZWA_2" "col[@name="NAZWA_2"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID)

    VALUES (r.WOJ, r.POW, r.GMI, r.RODZ_GMI, r.SYM, r.SYM_UL, r.CECHA, r.NAZWA_1, r.NAZWA_2, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    elsif l_name = "WMRODZ" then

    Err.d ("name =" |) L_Name, cm, 80);

    for r in (SELECT x.*

    FROM XMLTable ('/ rank ' ADOPTION l_rows)

    "RM" VARCHAR2 COLUMNS (5) path "col[@name="RM"]',"

    PATH of VARCHAR2 (50) "NAZWA_RM" "col[@name="NAZWA_RM"]',"

    PATH of VARCHAR2 (10) "STAN_NA" "col[@name="STAN_NA"]"

    ) x

    ) loop

    INSERT INTO TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID)

    VALUES (r.RM, r.NAZWA_RM, r.STAN_NA, P_TP_ID);

    do_commit;

    end loop;

    end if;

    validation work;


    When I'm loading file of type "SIMC" (the file size is approximately 32 MB), all right.

    When I am trying to load the "NEW" type (size file is about 80 MB), there's an ORA-03113.


    The problem is with the LOOP SELECTION, because

    Err.d ("name =" |) L_Name, cm, 80);

    connects name = ULIC


    What can I do to fix this?

    My DB is: Oracle Database 11 g Release 11.2.0.4.0 - 64 bit Production

    As Jason said, there are a bunch of useless stuff in there:

    -The VALIDATION inside the loop: do not do, commit only once, after that the job is done.

    -FOR lines: do not do this, use only one (possibly multi-table) INSERT SELECT.

    -BLOB CLOB conversion: not necessary, use the XMLTYPE constructor.

    -Extract from the XML document, that the work of the intermediate parties do in the whole structure directly.

    Basically, your procedure can be simplified to this couple of statements:

    -- insert XML into a temporary binary XMLType table, for performance :
    insert into tmp_xml values ( xmltype(l_blob, nls_charset_id('AL32UTF8')) );
    
    -- multitable insert into the target tables :
    INSERT FIRST
    WHEN l_name = 'TERC' THEN INTO
      TERYT_TERC (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ, NAZWA, NAZDOD, STAN_NA, P_TP_ID)
    WHEN l_name = 'SIMC' THEN INTO
      TERYT_SIMC (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ_GMI, RM, MZ, NAZWA, SYM, SYMPOD, STAN_NA, P_TP_ID)
    WHEN l_name = 'ULIC' THEN INTO
      TERYT_ULIC (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, TP_ID)
      VALUES (WOJ, POW, GMI, RODZ_GMI, SYM, SYM_UL, CECHA, NAZWA_1, NAZWA_2, STAN_NA, P_TP_ID)
    WHEN l_name = 'WMRODZ' THEN INTO
      TERYT_WMRODZ (RM, NAZWA_RM, STAN_NA, TP_ID)
      VALUES (RM, NAZWA_RM, STAN_NA, P_TP_ID)
    SELECT x.*
    FROM tmp_xml t
       , XMLTable('/teryt/catalog/row'
           PASSING t.object_value
           COLUMNS "WOJ"      VARCHAR2(20) PATH 'col[@name="WOJ"]',
                   "POW"      VARCHAR2(20) PATH 'col[@name="POW"]',
                   "GMI"      VARCHAR2(20) PATH 'col[@name="GMI"]',
                   "RODZ"     VARCHAR2(2)  PATH 'col[@name="RODZ"]',
                   "NAZWA"    VARCHAR2(50) PATH 'col[@name="NAZWA"]',
                   "NAZDOD"   VARCHAR2(50) PATH 'col[@name="NAZDOD"]',
                   "STAN_NA"  VARCHAR2(10) PATH 'col[@name="STAN_NA"]',
                   "RODZ_GMI" VARCHAR2(2)  PATH 'col[@name="RODZ_GMI"]',
                   "RM"       VARCHAR2(3)  PATH 'col[@name="RM"]',
                   "MZ"       VARCHAR2(3)  PATH 'col[@name="MZ"]',
                   "SYM"      VARCHAR2(7)  PATH 'col[@name="SYM"]',
                   "SYMPOD"   VARCHAR2(7)  PATH 'col[@name="SYMPOD"]',
                   "SYM"      VARCHAR2(7)  PATH 'col[@name="SYM"]',
                   "SYM_UL"   VARCHAR2(7)  PATH 'col[@name="SYM_UL"]',
                   "CECHA"    VARCHAR2(5)  PATH 'col[@name="CECHA"]',
                   "NAZWA_1"  VARCHAR2(50) PATH 'col[@name="NAZWA_1"]',
                   "NAZWA_2"  VARCHAR2(50) PATH 'col[@name="NAZWA_2"]',
                   "NAZWA_RM" VARCHAR2(50) PATH 'col[@name="NAZWA_RM"]'
         ) x
    ;
    

    where TMP_XML is defined as follows:

    create global temporary table tmp_xml of xmltype
    xmltype store as securefile binary xml;
    
  • ListView xml by using the data source does not?

    Hello

    When I use the data for loading XML source, listview displays data only if there is at least 2 element in the XML file.

    import bb.cascades 1.0
    import bb.data 1.0
    NavigationPane {
        id: nav
        Page {
    
            id: emp
            titleBar: TitleBar {
                visibility: ChromeVisibility.Visible
            }
            onCreationCompleted:
                                    {
                                        dataSource1.load(); //load the xml when page is created
                                    }
            actions: [
    
                ActionItem {
                    title: qsTr("Create List")
                    ActionBar.placement: ActionBarPlacement.OnBar
                    onTriggered: {
                        dialog.open();
                    }
                }
            ]
            Container {
                topPadding: 30.0
                leftPadding: 20.0
                rightPadding: 20.0
    
              ListView {
                  id:list1
                dataModel:dataModel
                 listItemComponents: [
                            ListItemComponent {
    
                                StandardListItem {
    
                                     title: {
                                    qsTr(ListItemData.name)
                                }
                                }
                            }
                        ]
    
                }
    
            }
    
                 } //page
    
        attachedObjects: [
             GroupDataModel {
                        id:dataModel
                    },
                     DataSource {
                          id: dataSource1
                          source: "models/employeelist.xml"
                         query: "/root/employee"
                        type: DataSourceType.Xml
                          onDataLoaded: {
                          dataModel.clear();
                           dataModel.insertList(data);
                          }
                        },
            Dialog {
                id: dialog
                Container {
                    background: Color.Gray
                    layout: StackLayout {
                    }
                    verticalAlignment: VerticalAlignment.Center
                    horizontalAlignment: HorizontalAlignment.Center
                    preferredWidth: 700.0
                    leftPadding: 20.0
                    rightPadding: 20.0
                    topPadding: 20.0
                    bottomPadding: 20.0
                    Container {
                        background: Color.White
                        horizontalAlignment: HorizontalAlignment.Center
                        preferredWidth: 700.0
                        preferredHeight: 50.0
                        Label {
                            text: "Add Employee List"
                            textStyle.base: SystemDefaults.TextStyles.TitleText
                            textStyle.color: Color.DarkBlue
                            horizontalAlignment: HorizontalAlignment.Center
                            textStyle.fontSizeValue: 4.0
                        }
                    }
                    Container
                    {
                        topPadding: 30.0
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        Label {
                        text: "Employee Name "
                    }
                    TextField {
                        id:nametxt
                    }
                }
               Container {
                   topPadding: 30.0
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        Button {
                           text: "OK"
                   onClicked:
                       {
                   var name=nametxt.text;
                   if(nametxt.text=="")
                   {
                        _model.toastinQml("Please enter a name");
                   }
                   else
                   {
    
                       _model.writeEmployeeName(name); //writing name to the employeelist.xml
    
                       nametxt.text="";
                       dialog.close();
                     dataSource1.load(); //loading the xml
                     }
    
                       }
                            preferredWidth: 300.0
                        }
                Button {
                     text: "Cancel"
                     onClicked:
                         {
                             dialog.close();
                         }
                            preferredWidth: 300.0
                        }
                             }
                }
            }
        ]
    
    }//navigation
    

    When I add a name to the first time to the XML, the list shows nothing. Then, when I add a new name, it displays the list.

    Why is it so? Is there a any mistake I made?

    Help, please!

    Thanks in advance

    Diakite

    It seems that there is a problem reported on the DIT that was refitted with internal BlackBerry MKS defect tracking system. Until this issue is reviewed by our internal teams, please use the solution suggested by the Rapporteur for the question by introducing an "if" statement before inserting data to the DataModel:

                    if (data.name) {
                        empDataModel.insert(data);
                    } else {
                        empDataModel.insertList(data);
                    }
    
  • Can I export the data (XML) using Acrobat Standard DC?

    I am currently using Adobe Acrobat XI which is allow me to export XML data from tools > forms > form additional Options > export data. I know this feature is also available in Acrobat Standard DC?

    Hi jack65464326,

    Yes, you can export the data (XML) using Acrobat Standard DC, refer to this KB document for help Acrobat help. Collection and management of the PDF to form data.

    Kind regards

    Nicos

  • Incorporation of data inline HTML in XML using the &amp; lt; MX:XML &amp; gt; tag with &amp; amp; Lt; and &amp; amp; GT;

    What is best practices for integrating HTML in the tag < mx:XML >? Programmatically, I can successfully implement this:

    [Bindable]
    public var xmlDP:XML = < data component = "" & lt; "/ >;"

    However, I get the following error if I try to keep the same data row in a mx:XML tag, as such:

    < mx:XML id = "xmlDP" >
    < data component = "" & lt; "/ >"
    < / mx:XML >

    Error #1095: XML parser failure: attribute not completed.

    If I modify as follows the MXML tag, it works fine:

    < mx:XML id = "xmlDP" >
    < data component = "& amp; Lt; "/ >
    < / mx:XML >

    Unfortunately, I also can I supply not the tag mx:XML to a XML file which uses & lt; or & gt; the codes, because it gives the same results. This leads me to believe that the < mx:XML > tag does not support special character codes for < and >, but why?

    Either way, this code also gives an error 1095:

    < mx:XML id = "xmlDP" >
    < data component = "" & #0060; "/ >"
    < / mx:XML >

    A problem with my data source because it is not hand typed in Flex, and the XML standard supports the & lt; and & gt; codes. I tried a string of HTML complete, as shown below, but it also generates the error:

    < mx:XML id = "xmlDP" >
    < data component = "& lt; b & gt; Test & lt; /b & gt; "/ >
    < / mx:XML >

    Thank you very much for any input that you may have!

    This:
    "has the same problem, the.<" gets="" parsed="" by="" the="" mxml="" parser="" long="" before="" the="" "escape"="" has="" any="" meaning="" at="">

    Your last example XMLDeclaration com Tower has come full circle: it is him even that you posted in your first post and still has the same problem. This is not a bug in the compiler.

    I advise the encoding of special characters using the form URL (%), then use escape() to decode the attribute values.

    Tracy

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

  • Add a xmlns tag to the XML using DBMS_XMLGEN

    I'm using the version of Oracle version 10.1.0.4.2.

    I want to create an xml file according to some data in the relational database tables. For the same thing, I created object types and discovers with the types of objects, since the data is divided into several tables.

    Then, I used DBMS_XMLGEN.getxml to generate xml with queries from the view of the object.

    Y at - it an option to add the xmlns attribute in the xml file generated.

    Please let me know if any additional details are needed.

    If you want to add the namespace declaration to the root element, I don't think it's possible with DBMS_XMLGEN directly.
    You can ask DBMS_XMLGEN to treat some of the fields of the object as XML attributes by prefixing with '@' (for example '@my_attribute'), but you can't control which for bounding of the elements.

    A possible solution is to add it later, using XSLT, or insertChildXML, but apparently it is not available in your version.

    However...

    For the same thing, I created object types and discovers with the types of objects, since the data is divided into several tables.

    Because the data from different tables, why not use SQL and SQL/XML functions to build the document?
    This is simple, simple and needs no additional items.

    select xmlelement("Departments",
             xmlattributes('http://xmlns.example.org' as "xmlns")
           , xmlagg(
               xmlelement("Department",
                 xmlattributes(d.deptno as "Id")
               , xmlelement("Name", d.dname)
               , xmlelement("Employees"
                 , xmlagg(
                     xmlelement("Employee",
                       xmlattributes(e.empno as "Id")
                     , xmlforest(
                         e.ename as "Name"
                       , e.job as "Job"
                       )
                     ) order by e.empno
                   )
                 )
               ) order by d.deptno
             )
           )
    from scott.dept d
         join scott.emp e on e.deptno = d.deptno
    group by d.deptno, d.dname
    ;
    

    Output:

    
      
        ACCOUNTING
        
          
            CLARK
            MANAGER
          
          
            KING
            PRESIDENT
          
          
            MILLER
            CLERK
          
        
      
      
        RESEARCH
        
          
            SMITH
            CLERK
          
          
            JONES
            MANAGER
          
          
            FORD
            ANALYST
          
        
      
      
        SALES
        
          
            ALLEN
            SALESMAN
          
          
            WARD
            SALESMAN
          
          
            MARTIN
            SALESMAN
          
          
            BLAKE
            MANAGER
          
          
            TURNER
            SALESMAN
          
          
            JAMES
            CLERK
          
        
      
    
    
  • Read XML inside a CDATA

    Hello

    I need to call a web service of PL/SQL and analyze the values returned

    I have a call back like this:
    <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>
          <GetDefinitionResponse xmlns="http://synergi.com">
             <GetDefinitionResult><![CDATA[<?xml version="1.0" encoding="utf-8"?>
    <Favourite>
      <PkFavourite>61057</PkFavourite>
      <ParentFavourite></ParentFavourite>
      <Type>1</Type>
      <Report>6</Report>
      <AutoExecute>1</AutoExecute>
      <SeparateCondition>0</SeparateCondition>
      <ExposurePercentInc></ExposurePercentInc>
      <ExposureFactor></ExposureFactor>
      <ExposureApplication></ExposureApplication>
      <Disabled></Disabled>
      <ExpireDate></ExpireDate>
      <Language>
        <PkFavourite>61057</PkFavourite>
        <Language>1</Language>
        <Description>id report1</Description>
        <Url></Url>
      </Language>
      <Language>
        <PkFavourite>61057</PkFavourite>
        <Language>2</Language>
        <Description>id report1</Description>
        <Url></Url>
      </Language>
      <Language>
        <PkFavourite>61057</PkFavourite>
        <Language>3</Language>
        <Description>id report1</Description>
        <Url></Url>
      </Language>
      <Language>
        <PkFavourite>61057</PkFavourite>
        <Language>4</Language>
        <Description>id report1</Description>
        <Url></Url>
      </Language>
      <Condition>
        <PkFavourite>61057</PkFavourite>
        <ConditionNo>3</ConditionNo>
        <DbFunctionDomain>0</DbFunctionDomain>
        <Domain>107</Domain>
        <ValueListOperator>2</ValueListOperator>
        <ConditionOperator>1</ConditionOperator>
        <ConditionOperator2>0</ConditionOperator2>
        <ExtraSqlCondition></ExtraSqlCondition>
        <FlgExactLevel>0</FlgExactLevel>
        <FlgForceExists>0</FlgForceExists>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>3</ConditionNo>
          <ConditionValueNo>1</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>0</ValueOperator>
          <NumberValue></NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>24</PeriodPredef>
        </ConditionValue>
        <ConditionDomain>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>3</ConditionNo>
          <Domain>540</Domain>
        </ConditionDomain>
      </Condition>
      <Condition>
        <PkFavourite>61057</PkFavourite>
        <ConditionNo>2</ConditionNo>
        <DbFunctionDomain>0</DbFunctionDomain>
        <Domain>531</Domain>
        <ValueListOperator>2</ValueListOperator>
        <ConditionOperator>0</ConditionOperator>
        <ConditionOperator2>0</ConditionOperator2>
        <ExtraSqlCondition></ExtraSqlCondition>
        <FlgExactLevel>0</FlgExactLevel>
        <FlgForceExists>0</FlgForceExists>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>2</ConditionNo>
          <ConditionValueNo>1</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>14</ValueOperator>
          <NumberValue>3</NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>0</PeriodPredef>
        </ConditionValue>
        <ConditionDomain>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>2</ConditionNo>
          <Domain>531</Domain>
        </ConditionDomain>
      </Condition>
      <Condition>
        <PkFavourite>61057</PkFavourite>
        <ConditionNo>4</ConditionNo>
        <DbFunctionDomain>0</DbFunctionDomain>
        <Domain>178</Domain>
        <ValueListOperator>2</ValueListOperator>
        <ConditionOperator>1</ConditionOperator>
        <ConditionOperator2>0</ConditionOperator2>
        <ExtraSqlCondition></ExtraSqlCondition>
        <FlgExactLevel>0</FlgExactLevel>
        <FlgForceExists>0</FlgForceExists>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>4</ConditionNo>
          <ConditionValueNo>1</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>14</ValueOperator>
          <NumberValue>50021</NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>0</PeriodPredef>
        </ConditionValue>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>4</ConditionNo>
          <ConditionValueNo>2</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>14</ValueOperator>
          <NumberValue>50019</NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>0</PeriodPredef>
        </ConditionValue>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>4</ConditionNo>
          <ConditionValueNo>3</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>14</ValueOperator>
          <NumberValue>50018</NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>0</PeriodPredef>
        </ConditionValue>
        <ConditionValue>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>4</ConditionNo>
          <ConditionValueNo>4</ConditionValueNo>
          <DbFunctionValue>0</DbFunctionValue>
          <ValueOperator>14</ValueOperator>
          <NumberValue>50020</NumberValue>
          <StringValue></StringValue>
          <DateValue></DateValue>
          <NumberValue2></NumberValue2>
          <PeriodPredef>0</PeriodPredef>
        </ConditionValue>
        <ConditionDomain>
          <PkFavourite>61057</PkFavourite>
          <ConditionNo>4</ConditionNo>
          <Domain>540</Domain>
        </ConditionDomain>
      </Condition>
      <Connected>
        <PkFavourite>61057</PkFavourite>
        <Connected>3</Connected>
        <Operator>0</Operator>
      </Connected>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2650</DomainNode>
        <Report>2</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2435</DomainNode>
        <Report>2</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>110</DomainNode>
        <Report>3</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>116</DomainNode>
        <Report>3</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2006</DomainNode>
        <Report>3</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2005</DomainNode>
        <Report>3</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2015</DomainNode>
        <Report>3</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>110</DomainNode>
        <Report>4</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>350</DomainNode>
        <Report>4</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2650</DomainNode>
        <Report>4</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2435</DomainNode>
        <Report>4</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>2482</DomainNode>
        <Report>5</Report>
      </Option>
      <Option>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>116</DomainNode>
        <Report>1</Report>
      </Option>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>107</DomainNode>
        <Sequence>0</Sequence>
        <Report>2</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>1</Sequence>
        <Report>2</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>390</DomainNode>
        <Sequence>2</Sequence>
        <Report>2</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>107</DomainNode>
        <Sequence>0</Sequence>
        <Report>3</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>1</Sequence>
        <Report>3</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>107</DomainNode>
        <Sequence>0</Sequence>
        <Report>4</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>1</Sequence>
        <Report>4</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>390</DomainNode>
        <Sequence>2</Sequence>
        <Report>4</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>0</Sequence>
        <Report>5</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>0</Sequence>
        <Report>12</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>107</DomainNode>
        <Sequence>1</Sequence>
        <Report>1</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <Sort>
        <PkFavourite>61057</PkFavourite>
        <DomainNode>357</DomainNode>
        <Sequence>2</Sequence>
        <Report>1</Report>
        <SortOrderType>1</SortOrderType>
      </Sort>
      <FavouriteReport>
        <PkFavourite>61057</PkFavourite>
        <Report>6</Report>
        <SelectionAggrType>1</SelectionAggrType>
        <SelectionAggrDomain>3112</SelectionAggrDomain>
        <TargetApplication></TargetApplication>
        <SpecialReport></SpecialReport>
        <PredefDate></PredefDate>
        <RollingAveragePeriods>0</RollingAveragePeriods>
      </FavouriteReport>
      <ReportType>
        <PkFavourite>61057</PkFavourite>
        <Report>6</Report>
        <ReportType>1</ReportType>
      </ReportType>
      <Selection>
        <PkFavourite>61057</PkFavourite>
        <SelectionNo>3</SelectionNo>
        <SelectionDomain>106</SelectionDomain>
        <Report>6</Report>
        <SelectionType>1</SelectionType>
        <Period>0</Period>
        <Levels></Levels>
        <Interval></Interval>
        <SelectedCode></SelectedCode>
        <FlgFillEmpty>0</FlgFillEmpty>
      </Selection>
      <Selection>
        <PkFavourite>61057</PkFavourite>
        <SelectionNo>4</SelectionNo>
        <SelectionDomain>4902</SelectionDomain>
        <Report>6</Report>
        <SelectionType>1</SelectionType>
        <Period>0</Period>
        <Levels></Levels>
        <Interval></Interval>
        <SelectedCode></SelectedCode>
        <FlgFillEmpty>0</FlgFillEmpty>
      </Selection>
      <Selection>
        <PkFavourite>61057</PkFavourite>
        <SelectionNo>1</SelectionNo>
        <SelectionDomain>357</SelectionDomain>
        <Report>6</Report>
        <SelectionType>1</SelectionType>
        <Period>0</Period>
        <Levels></Levels>
        <Interval></Interval>
        <SelectedCode></SelectedCode>
        <FlgFillEmpty>0</FlgFillEmpty>
      </Selection>
      <Selection>
        <PkFavourite>61057</PkFavourite>
        <SelectionNo>2</SelectionNo>
        <SelectionDomain>107</SelectionDomain>
        <Report>6</Report>
        <SelectionType>3</SelectionType>
        <Period>5</Period>
        <Levels></Levels>
        <Interval></Interval>
        <SelectedCode></SelectedCode>
        <FlgFillEmpty>0</FlgFillEmpty>
      </Selection>
      <Aggregate>
        <PkFavourite>61057</PkFavourite>
        <DescendFavourite>61057</DescendFavourite>
        <DescendLevel>1</DescendLevel>
      </Aggregate>
    </Favourite>]]></GetDefinitionResult>
          </GetDefinitionResponse>
       </soap:Body>
    </soap:Envelope>
    How can I read IE. all the DomainNode in the element of sort with Xpath (preferred) or Xquery?
    The database will be a 10.2.0.4 at most.

    Update: so far I've had this
    declare
     p_xml clob := '
     <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>
          <GetDefinitionResponse xmlns="http://synergi.com">
             <GetDefinitionResult><![CDATA[<?xml version="1.0" encoding="utf-8"?>
    <Favourite>
    ....
    ....
    ...
    ';
    
    w_namespaces varchar2(100) :=  'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://synergi.com"';
    w_xpath varchar2(100) := '/soap:Envelope/soap:Body/GetDefinitionResponse/GetDefinitionResult/text()';
    w_xpath2 varchar2(100) := '/*:DomainNode';
    w_svar clob;
    w_xml xmltype;
     
     procedure pr(p_in varchar2)
     as
     begin
       dbms_output.put_line(p_in);
     end;
     
     begin
        w_xml := xmltype(p_xml);
      
        select extract(w_xml,w_xpath,w_namespaces).getclobval()
        into w_svar
        from dual;
        
        pr('svar:' || w_svar);   
        
        /*
        select extractvalue(xmltype(w_svar),w_xpath2)
        into w_svar
        from dual;
        
        pr('svar2:' || w_svar);  */
       
     end;
    I get an error ora-01706 when I just extract (field longer which enabled 4K) - so now I extract the entire contents of the < GetDefinitionResult > - but then the CDATA is harassing me :-)
    Is there a clever way to get rid of this CDATA including the <! and [[and]]? I mean you can do CDATA with function xmlcdata... but nbow I would get rid of him.

    update of the end-

    concerning
    Mette

    Another way, I just thought, using XSLT:

    
     select xmltransform(v_response,
     xmltype('
     
     
      
     
    ')).getclobval()
     into v_result_clob
     from dual;
    
     -- on 10.2, the output is still escaped after the transformation so we have to do this :
     v_result_clob := dbms_xmlgen.convert(v_result_clob, dbms_xmlgen.ENTITY_DECODE);
    
     dbms_output.put_line(v_result_clob);
    
     -- now, proceeding with a valid XML...
    

    OK, I see you have something working now :)
    A final suggestion: using SUBSTR/INSTR combinations can be better than the REGEXP_ functions * on large text content.

  • Reading XML clob field

    Hi guys

    I want to read XML file that is stored as a clob in the database table (test_clob) in column (xml_file).

    <?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by xmlspy.com)-->
    <mslv-sa:orEvent xmlns:mslv-sa="http://www.metav.com/oss/Sctivation/2003" xmlns:tls="http://www.meolv.com/oss/Sctivation/2003" xmlns:co="http://java.sun.com/products/oss/xml/Common" xmlns:sa="http://java.sun.com/products/oss/xml/Sivation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <co:applicationDN/>
         <co:eventTime>2006-07-17T03:21:13</co:eventTime>
         <sa:currentState>closed.completed</sa:currentState>
         <sa:orderKey>
              <co:applicationDN/>
              <co:type/>
              <sa:primaryKey>SUAUG20_1ADSLCON-268554296-JOB-ISPSERVICE23</sa:primaryKey>
         </sa:orderKey>
         <sa:reason/>
         <mslv-sa:externalSystemId/>
         <mslv-sa:eventId>36</mslv-sa:eventId>
         <mslv-sa:eventStatus>1</mslv-sa:eventStatus>
         <mslv-sa:except>N</mslv-sa:except>
         <mslv-sa:rollbackExcept>N</mslv-sa:rollbackExcept>
         <mslv-sa:services>
              <mslv-sa:item>
                   <mslv-sa:serviceKey>
                        <co:applicationContext>
                             <co:factoryClass/>
                             <co:url/>
                             <co:systemProperties/>
                        </co:applicationContext>
                        <co:applicationDN/>
                        <co:type>ACT_POSTPAID</co:type>
                        <sa:primaryKey>aitorc01_5100719489001</sa:primaryKey>
                        <mslv-sa:serviceSequenceNumber>1</mslv-sa:serviceSequenceNumber>
                   </mslv-sa:serviceKey>
                   <mslv-sa:serviceState>active.completed</mslv-sa:serviceState>
              </mslv-sa:item>
         </mslv-sa:services>
    </mslv-sa:orderCompleteEvent>
    I use the following query just to read data from the file.
    select x.time
    FROM test_clob
            ,XMLTABLE('/mslv-sa:orderCompleteEvent/co:applicationDN/' 
                  PASSING XMLTYPE(test_clob.xml_file)
                  COLUMNS time VARCHAR2(100)PATH '/mslv-sa:orderCompleteEvent/mslv-sa:orderCompleteEvent/co:eventTime')x
    But its giving following error
    21:22:53  LPX-00801: XQuery syntax error at 'EOF'
    21:22:53  1   /mslv-sa:orderCompleteEvent/co:applicationDN/
    Please provide details


    See you soon

    Sexy

    Hi Vanessa,

    I see several issues here.

    -L' example of XML document you gave is not well-formed.
    -Some XPath expressions are false, i.e. they address anything in the document.
    -You must also declare the namespaces that you use in XMLTable.

    Assuming that the root element is actually "mslv - its: orderCompleteEvent", it should be better:

    SELECT x.eventtime
    FROM test_clob t
       , XMLTable(
           XMLNamespaces(
             'http://www.metav.com/oss/Sctivation/2003' as "mslv-sa"
           , 'http://java.sun.com/products/oss/xml/Common' as "co"
           )
         , '/mslv-sa:orderCompleteEvent'
           PASSING XMLTYPE(t.xml_file)
           COLUMNS eventtime timestamp PATH 'co:eventTime'
         ) x
    ;
    
  • Merging XML but my date is so broken!

    I have data to an XML file.  It merges with my PDF template read-only.  The date from XML is formatted as follows:

    YYYY-MM-DD-06:00

    The 'extra' at the end is a zone code.  It is stored in the database like this.

    In my form, I have a read-only which displays the date above - the problem, it's that way, too!

    Anyway for me to format?  I set the type field to date and the entry value and formats - nothing works.  I use 8.0.  I tried to 'script' something, but I guess I'm pretty smart to know where these scripts would reside, nor what they should say, because I spent the day and none of my attempts gave me everything except the output above.

    Thank you!

    Hi ronini,

    You should be able to use the following database on your date field;

    date {YYYY-MM-DD?}

    Input data should match the part of YYYY-MM-DD, but the characters corresponding to questions marks will be ignored.

    On the output, you would end up with spaces where question marks.

    Bruce

  • Reading XML POST

    Hi all

    I get a message to my ColdFusion script. This message contains an xml script. My shoulders of coldfusion script read the xml, but I don't now how to get ik code xml. Cannot find the right var that contains the XML.

    Retail (which will be sent to my CF script)
    Contains headers:
    Content-Type: text/xm
    Content-Length: xxxx

    Body contains:
    <? XML version "1.0" encoding = "utf-8"? >
    < transaction >
    < AccountId > 1 < / AccountId >
    Eerste < AccountKey > < / AccountKey >
    < / transaction >

    So my question is:
    How CF reconise that there is a forthcoming xml script?

    Thank you

    Quote:
    How CF reconise that there is a forthcoming xml script?

    CF is required to treat the data as XML using one of the XML construction works or tags such as XmlParse.

  • How can I hide status ' Reading/waiting/transfer of data...' » ?

    Firefox 34.0.5 Windows 7
    I want to hide the status of "Reading/waiting/transfer of data..." "which shows at the bottom left of the browser window
    I found a solution in this archived thread, https://support.mozilla.org/en-US/questions/942499and I applied it, but it doesn't seem to work

    Thanks much el - cor

    I used the code you posted on 969955 page
    [ https://support.mozilla.org/en-US/questions/969955 ]

    Strangely enough I need to disable/enable Adblock Plus after, but it works


    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

    .statuspanel-label {background:#FF9!important;color:black!important;font-family:"DejaVu Sans Mono"}

    statuspanel {display:none!important}
    statuspanel {max-width:90%!important}

    statuspanel[type="overLink"] .statuspanel-label
    statuspanel[type="status"] .statuspanel-label[value^="Looking"]
    statuspanel[type="status"] .statuspanel-label[value^="Connect"]
    statuspanel[type="status"] .statuspanel-label[value^="Waiting"]
    statuspanel[type="status"] .statuspanel-label[value^="Transfer"]

  • Unable to read the security descriptors data stream

    Whenever I start my computer runs CHKDSK - it says checking file system on E: and then he said that it should be checked for consistency. It works until stage 3 when he says 'impossible to read the security descriptors data stream' how to fix this?

    I tried chkdsk e:/r and it runs before step 3 when I get the "unable to read the security descriptors data stream" and it goes no further.

    I also tried fsutil dirty query e:- but it says something about a parameter incorrect and not if the volume is dirty or clean.

    Then I tried chkdsk e:/f/x - that always gives me the same mistake about it being an incorrect setting.

    As far as I know there is absolutely nothing on E:, I didn't even know that there was an additional drive. Right now I have it turned off so that I can use my computer. It seems to work fine without it. I read an article that said that if I can't fix e: with chkdsk which I have to do a low-level format of the reader? What's my next step? And I can do without the XP disc?

    The syntax

    fsutil dirty query e:

    is correct (except, of course, you try to use from the Recovery Console, where the fsutil command is not available).  Are you logged on as a user with administrative rights when you use fsutil?

    Similarly, the switches /f and/x are not available for chkdsk in the Recovery Console.

    See Recovery Console controls.

    Click on desktop then right-click on E: drive icon and select Properties.  What is indicated for:

    • File system
    • Space used
    • Free space
    • Capacity

    Now double click the icon for E: are shown files?  If not, click Tools > Folder Options > view and select the radio button "Show hidden files and folders" and uncheck "Hide protected files (recommended) operating system.  Now that you see all the files?

    Everything you read 'low level of shaped' is nonsense.  Any modern PC drive cannot be low level formatted by end users.  You can read this, but there is really no necessary even to "zero fill" your drive E: http://seagate.custkb.com/seagate/crm/selfservice/search.jsp?DocId=203931 (I have not checked to see if the WD tools rescuer has similar characteristics to SeaTools for DOS).

    If you are convinced that there is nothing of value on E (for example, installation of backup or restore), you can either format by right-clicking on the drive icon in my computer and selecting "format" or you can start disk management as described previously and use either in electronic format or delete the partition completely.  If you delete the partition, space becomes "unallocated".

    Because I guess C is your system drive (where Windows is), you may be able to use the diskpart tool to extend the partition F to use the unallocated space left if you decide to remove E well it's much easier (and safer) to do with disk management third-party tools such as Easeus Partition Manager free : http://www.partition-tool.com/personal.htm

Maybe you are looking for

  • I lost what I duplicated

    I have highlighted several events in iPhoto to copy to a disk.  I hit two copies and these events are now gone from iPhoto, and I don't know where they are.  Any help would be appreciated.

  • where can I download conon s900 printer drivers for windows 7

    I have a beautiful rugged Canon S900 printer but can't seem to down load drivers for it. I tried the canon site, but they do not download correctly. Saw a reference on a site need to get three separate expenses. Surely, there must be an easier way!?

  • about 1400 and 1500 outdoor, cisco access to the no doubt

    Hello I have a requirement for the installation of outdoor 1400 in Bridge mode access point. customer got three remote sites connected by 1400 outdoor access point. but I fell on the light and stand-alone version where I'm quite confused. which versi

  • customize the homescreen tiles

    I want to customize a tile, then download pdf.s for her!

  • VCSHB 6.5.1 does support vCenter Server 5.5 (or vSphere 2013)

    HelloVCSHB 6.5.1 does support vCenter Server 5.5 (or vSphere 2013)? If not, what VMware will be released the next version of vCSHB which offers supportvCenter Server 5.5? Thank you!