Example XML file format

I have a client that uses the database of the Alpha software and I would like to use an Alpha generated XML file in Dreamweaver. Can someone point me to an example of XML file that works with Spry? I would look at the layout page/data format to see what is different from what generates the Alpha.

Thanks in advance.

CJM

J Blaise says:
> I don't have the slightest idea what should look like to an XML file.

Access the documentation for Spry here:

http://labs.Adobe.com/technologies/Spry/docs.html

In the getting started with Spry section, you will find a XML primer.

--
Adobe Community Expert David Powers
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • HTMText XML file format

    I'm trying to figure out how I can format a bulleted list that is called from an XML file

    It's all the filling of an XML file. The pop up balls are brought html into a Flash htmltextfield. I was able to put the other text, just not the pop up of information.

    Can I format the CDATA info? Any help is greatly appreciated!

    XML file:

    < person >

    < ID > 34 / < ID >

    < name > < / name >

    < /Title > < title > supervisor

    < popup > <! [CDATA [< font size = "14px" color = "#F0ECEC" > < ul > < li > Oversee RT & amp; content D intranet site and development < /li > < li > media charts training project manager and designer < /li > < li > presentation skills of developer/instructor < /li > < /ul > < / police >]] > < / popup >

    < email > < / Email >

    < ManagerID > < / ManagerID >

    < / person >

    ActionScript:


    function Create(event:Event):void {}
    xmlData = new XML (event.target.data);
    xmlData.ignoreWhitespace = true;

    popupList = XML (event.target.data). Person.Popup.Text ();



    function buttonID06Over(e:MouseEvent) {}
    addChild (popUp01);
    popUp01.PopUpTextID00.htmlText = popupList [6];
    }
    function buttonID06Out(e:MouseEvent) {}
    removeChild (popUp01);
    }


    of course you can.  in fact, for the control of maximum size, you would use css and which applies only to the textfields compatible html.

  • NEWBIE: Command to execute the XDK to convert the XML file format

    Greetings

    I just wanted to put in the expectation of the level of knowledge this request XML! :-)

    I have an XSLT file that performs the conversion I want.

    I'm on Oracle 10.2.0.2 EE on AIX 5.3.

    I have the 10 g XDK installed (I think). I have Java 1.4 installed.

    I have my XML source file.

    All I need is the commands to run the XDK to convert my XML file using XSLT file.

    Thank you very much.

    -gary

    Transform with the oraxsl command
    oraxsl options * Java source? style sheet? result?

    http://www.Oracle.com/technology/tech/XML/XDK/doc/production10g/doc/Java/Javadoc/Oracle/XML/parser/v2/oraxsl.html

  • XML file works only with XmlDataModel

    Hi all

    I'm developing a simple picture viewer using the online service www.imgur.com. It's going to be free and without advertising that allows using the normal API pretty easy. I followed the tutorials on the dev site to send an http request and receive the response. I managed to do all that finding, but I'm stumped trying to apply the http response in my ListView.

    The response is an XML file, but with child elements rather than attributes for more information. I tried to get my response working with the tutorial here:

    Networking Dev BlackBerry tutorial

    more specifically, this part of the code

    // Create the data model using the contents of the file. The
            // location of the file is relative to the assets directory.
            XmlDataModel *dataModel = new XmlDataModel();
            dataModel->setSource(QUrl("file://" + QDir::homePath() + "/model.xml"));
    
            // Set the new data model on the list and stop the activity indicator
            mListView->setDataModel(dataModel);
    

    But I can't work. I read from different people (but not confirmed what whether doc) that the XmlDataModel cannot be used with child element type XML files? If so, can someone point me in the direction of the conversion of an XML attribute type?

    The DataSource object can manage lists XML child element, and it manages the query part of network too. It is however quite limited in its ability to manage structures complex multi-level, so it may or may not be suitable for your use. Without an example XML file, I can't say for sure if DataSource would deal with it, but it's probably something worth investigating.

  • Generation of XML files in oracle procedure

    I have to generate a SQL query as XML files:

    • If the number of records in the query result exceeds 40 000 then the data must be divided into two XML files with different file names.

    Following XML file format:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <EMP_INFO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <EMP>
      <CR_NO>12345678</CR_NO>
      <EMPLOYER_NAME>ABC</EMPLOYER_NAME>
      <ID_NO>12345678</ID_NO>
      <EMPLOYEE_NAME>ABC</EMPLOYEE_NAME>
      </EMP>
      <EMP>
      <CR_NO>12345678</CR_NO>
      <EMPLOYER_NAME>XYZ</EMPLOYER_NAME>
      <ID_NO>12345678</ID_NO>
      <EMPLOYEE_NAME>ABC</EMPLOYEE_NAME>
      </EMP>
    </EMP_INFO>
    
    
    
    • Also, an XML file will contain information from XML file with the number of records in each file:
    <?xml version="1.0" encoding="utf-8"?>
    <Files>
      <File>
        <FileName>ABCD071120130001.xml</FileName>
        <CountOfRecords>499</CountOfRecords>
      </File>
    
    
      <File>
        <FileName>ABCD071120130002.xml</FileName>
        <CountOfRecords>9</CountOfRecords>
      </File>
    
    
    </Files>
    
    
    

    My PL SQL procedure follows, but throws an error:

    CREATE OR REPLACE PROCEDURE P_DATAXML AS
    BEGIN
    
      DECLARE
        XML_PROLOG    CLOB := '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
        xml_header    clob;
        xml_trailer   clob;
        tmp_xml       clob;
        tmp_file      clob;
      
        CURSOR C_REC IS  
        SELECT XMLELEMENT("EMP_INFO",
                                XMLELEMENT("CR_NO", "1234" ),
                                XMLELEMENT("EMPLOYER_NAME", "ABC" ),
                                XMLELEMENT("ID_NO", "9876541" ),
                                XMLELEMENT("EMPLOYEE_NAME", "XYZ" )
                 ).GETCLOBVAL() AS DATA_XML
               
          FROM TABLES;
      
      BEGIN
    
        -- create the temporary clob :
        DBMS_LOB.CREATETEMPORARY(TMP_FILE, TRUE);
      
        -- fetch records
        for r in C_REC loop
          DBMS_LOB.append(TMP_FILE, xml_prolog);
          DBMS_LOB.append(TMP_FILE, r.DATA_XML);
        end loop;
    
    
        -- write file to directory :
        dbms_xslprocessor.clob2file(TMP_FILE, 'CDIR', 'test.xml', nls_charset_id('AL32UTF8'));
        dbms_lob.freetemporary(TMP_FILE);
    
      END;
    
    END P_DATAXML;
    
    
    

    After my initial coding, I get the error made his first appearance on "dbms_xslprocessor.clob2file":

    ORA-21560: 3 argument is null, invalid or out of range

    ORA-06512: at "SYS." DBMS_LOB", line 991

    ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 324

    What could be wrong?

    You were on the right track. Continue to use SQL/XML, in special XML files XMLAGG logical global functions.

    The following should answer your initial needs.

    For this demonstration, I used resources. Table EMPLOYEES and a batch size of 100. It generates three files, 'file0001.xml' (100 records), "file0002.xml" (7 records) and a summary file:

    DECLARE

    file_desc_array xmlsequencetype: = xmlsequencetype();

    CLOB file_desc_xml;

    prolog1 CLOB: = '';

    prolog2 CLOB: = '';

    BEGIN

    for r in)

    Select xmlserialize (document

    XmlElement ('method'

    , xmlattributes ("http://www.w3.org/2001/XMLSchema-instance" under the name "xmlns: xsi" "")

    xmlagg)

    XmlElement ("EMP"

    xmlelement ("ID_NO", e.employee_id)

    , xmlelement ("EMPLOYEE_NAME", select)

    )

    )

    )

    ) as xmldoc

    --< generating="" summary="" record="">

    xmlelement ("file",

    xmlelement ("filename",

    , "file" | TO_CHAR (trunc ((rownum-1)/100) + 1, "fm0999"). ".xml".

    )

    xmlelement ("CountOfRecords", Count

    ) as file_desc

    -->

    , "file" | TO_CHAR (trunc ((rownum-1)/100) + 1, "fm0999"). '.xml' as file name

    of e hr.employees

    Group of trunc ((rownum-1)/100)

    )

    loop

    dbms_xslprocessor.clob2file (prolog1 | r.xmldoc, 'TEST_DIR', r.filename, nls_charset_id ('AL32UTF8'));

    file_desc_array.extend;

    file_desc_array (file_desc_array. (Last): = r.file_desc;

    end loop;

    Select xmlserialize (document

    XmlElement ("Files", xmlagg (column_value))

    )

    in file_desc_xml

    table (file_desc_array);

    dbms_xslprocessor.clob2file (prolog2 | file_desc_xml, 'TEST_DIR', 'summary.xml', nls_charset_id ('AL32UTF8'));

    END;

    /

  • Where the glossary .xml file

    Hi, I tried to locate the .xml file that fills the glossary widget so that I could copy and create my own modifiable .xml file to import.

    Can someone tell me where I could find?

    Thank you

    Mark

    Hmmm, this example XML file is in the properties of himself? I thought you wanted all of the XML file for all of the words that are in the example? Those that are embedded in the interaction.

  • How can I query the XML file that is stored as a CLOB data?

    Hi people,

    Please see below the example XML file, which is stored in 'os_import_docs', 'document' as a CLOB column.

    I would like to ask this XML file using some select SQL.


    How can I query form below XML?
    <?xml version="1.0" encoding="UTF-8"?>
    <etd>
      <header>
        <AR>000000000</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>H</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>21:18</CL>
        <CW>225</CW>
        <CX>0</CX>
        <CF>SS-CZL18</CF>
        <DV>2</DV>
      </header>
      <account_group id="234">
        <account id="234">
          <invoice id="000742024">
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>A</AL>
              <BZ>.</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY>602718709</AY>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <da>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>A</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>88754515</BS>
              <AD>Mike Tyson</AD>
              <AC>Mike Tyson</AC>
              <AZ>CZ6521232465</AZ>
              <AE/>
              <CG>A</CG>
              <AL>L</AL>
              <BZ>Mike Tyson</BZ>
              <AH>Some street</AH>
              <AI/>
              <AF>Some city</AF>
              <AK>Kraj</AK>
              <AG>CZ</AG>
              <AJ>885 21</AJ>
              <CR>21-11-2012</CR>
              <AY/>
              <AV>800184965</AV>
              <AP/>
              <AO/>
              <AQ/>
              <AN/>
            </da>
            <detaildc CH="0032" AB="234" BS="11888954" BB="32" BA="CZ" AT="" CI="7077329000002340342" AU="" DU="1Z48395" CB="CZK">
              <dc>
                <AW>0</AW>
                <CT>D</CT>
                <CU>C</CU>
                <BY>31-10-2012</BY>
                <CA>25-10-2012</CA>
                <CV>8151</CV>
                <BT>12111</BT>
                <CJ>1</CJ>
                <AM>0</AM>
                <DR>PC</DR>
                <DS/>
                <DO>25-10-2012</DO>
                <DQ>18:42</DQ>
                <CE>1</CE>
                <BH>8151</BH>
                <CY>8151 SHELL MALKOVICE P</CY>
                <DP>049336</DP>
                <DT/>
                <BQ/>
                <BR>500000</BR>
                <CN>30</CN>
                <CM>030</CM>
                <BO>160,00</BO>
                <BF>38,900</BF>
                <BC>6224,00</BC>
                <BI>32,417</BI>
                <CD>B</CD>
                <BG>0,600</BG>
                <BK>31,817</BK>
                <BJ>0,000</BJ>
                <DI>8</DI>
                <BP>20,00%</BP>
                <CC>CZK</CC>
                <BM>5090,67</BM>
                <BN>1018,13</BN>
                <BL>6108,80</BL>
                <BD>5090,67</BD>
                <BE>1018,13</BE>
                <DW>6108,80</DW>
                <CO>Nafta</CO>
              </dc>
            </detaildc>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>1</DG>
              <CN>30</CN>
              <CM>030</CM>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ>20,00%</DJ>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA>P</DA>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>2</DG>
              <CN/>
              <CM/>
              <DF>160,00</DF>
              <DH>litr</DH>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>19</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
            <dt>
              <AR>000742024</AR>
              <AW>0</AW>
              <CT>D</CT>
              <CU>T</CU>
              <CH>0032</CH>
              <BY>31-10-2012</BY>
              <CA>25-10-2012</CA>
              <AB>234</AB>
              <AA>234</AA>
              <BS>11888954</BS>
              <BB/>
              <BA>CZ</BA>
              <DG>8</DG>
              <CN/>
              <CM/>
              <DF/>
              <DH/>
              <DJ/>
              <DD>5090,67</DD>
              <DE>1018,13</DE>
              <DC>6108,80</DC>
              <DB>CZK</DB>
              <DA/>
              <AX/>
              <CQ/>
              <CP/>
            </dt>
          </invoice>
        </account>
      </account_group>
      <footer>
        <AR>999999999</AR>
        <AW>0</AW>
        <CT>S</CT>
        <CU>T</CU>
        <CZ>SS48</CZ>
        <BU>4</BU>
        <CH>0032</CH>
        <CK>2012-11-01</CK>
        <CL>23:04</CL>
        <CW>225</CW>
        <BX>1</BX>
        <CS>7</CS>
        <BW>0000000000000610880</BW>
      </footer>
    </etd>
    example - does not:
        select  x.*
        from os_import_docs d
             ,XMLTABLE('/etd/header'
                        PASSING httpuritype(d.document).getXML()
                        COLUMNS 
                           response_status varchar2(50) PATH 'AR'
                        )  x
       where d.object_id = 2587058
         and rownum = 1;  
    
     
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 6196, maximum: 4000)
    Thank you very much
    Tomas

    No error on my side.

    I just put in the comments the two columns:

    SQL> SELECT h.AR
      2       , h.CK
      3       , h.CF
      4       , i.AR4
      5       , i.AD
      6       , ddc.*
      7       --, i.AR5
      8       --, i.DG
      9       , ddn.*
     10       , h.CZ
     11       , h.BU
     12       , h.CH
     13       , h.CK7
     14       , h.CL
     15  FROM os_import_docs d,
     16       XMLTable(
     17         '/etd'
     18         PASSING xmlparse(document d.document)
     19         COLUMNS
     20           AR        varchar2(10) PATH 'header/AR'
     21         , CK        varchar2(10) PATH 'header/CK'
     22         , CF        varchar2(10) PATH 'header/CF'
     23         , CZ        varchar2(10) PATH 'footer/CZ'
     24         , BU        varchar2(10) PATH 'footer/BU'
     25         , CH        varchar2(10) PATH 'footer/CH'
     26         , CK7       varchar2(10) PATH 'footer/CK'
     27         , CL        varchar2(10) PATH 'footer/CL'
     28         , invoices  xmltype      PATH 'account_group/account/invoice'
     29       ) h
     30     , XMLTable(
     31         '/invoice'
     32         PASSING h.invoices
     33         COLUMNS
     34           AR4       varchar2(10) PATH 'da/AR'
     35         , AD        varchar2(20) PATH 'da/AD'
     36         --, AR5       varchar2(10) PATH 'dt/AR'
     37         --, DG        varchar2(10) PATH 'dt/DG'
     38         , detaildc  xmltype      PATH 'detaildc'
     39         , detaildn  xmltype      PATH 'detaildn'
     40       ) i
     41     , XMLTable(
     42         '/detaildc'
     43         PASSING i.detaildc
     44         COLUMNS
     45           DU        varchar2(10) PATH '@DU'
     46         , CB        varchar2(10) PATH '@CB'
     47         , DO        varchar2(10) PATH 'dc/DO'
     48         , CY        varchar2(20) PATH 'dc/CY'
     49         , BM        varchar2(10) PATH 'dc/BM'
     50         , CO        varchar2(30) PATH 'dc/CO'
     51       ) (+) ddc
     52     , XMLTable(
     53         '/detaildn'
     54         PASSING i.detaildn
     55         COLUMNS
     56           CI        varchar2(20) PATH '@CI'
     57         , BY_       varchar2(10) PATH 'dn/BY'
     58         , BM6       varchar2(10) PATH 'dn/BM'
     59       ) (+) ddn
     60  ;
    
    AR         CK         CF         AR4        AD                   DU         CB         DO         CY                   BM         CO                             CI                   BY_        BM6        CZ         BU         CH         CK7        CL
    ---------- ---------- ---------- ---------- -------------------- ---------- ---------- ---------- -------------------- ---------- ------------------------------ -------------------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        16-10-2012 ASFINAG POST_MAUT    1940,60    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        17-10-2012 ASFINAG POST_MAUT    1328,10    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        23-10-2012 ASFINAG POST_MAUT    1831,80    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48395    EUR        24-10-2012 ASFINAG POST_MAUT    867,30     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI08P4993  ING. ANTONIN GURICA, 1Z48396    EUR        23-10-2012 ASFINAG POST_MAUT    2749,00    Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    
    
    000000000  2012-10-31 SS-CZL19   EI3496334  ING. ANTONIN GURICA, 1Z48397    HUF        29-10-2012 ALLAMI AUTOPALYAKEZE 233,50     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4DG3954  ING. ANTONIN GURICA,            EUR        22-10-2012 1047061              24267,70   Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI4E34269  ING. ANTONIN GURICA,            EUR        23-10-2012 TBS VIACARD          5671,60    Dalnicni poplatek                                                         SS47       4          0032       2012-10-31 01:25
    000000000  2012-10-31 SS-CZL19   EI8QF1520  ING. ANTONIN GURICA, 1Z48395    EUR        29-10-2012 LAMAIN               200,10     Dalnicni znamka                                                           SS47       4          0032       2012-10-31 01:25
    
    78 rows selected
     
    
  • does anyone have example script writing and reading XML file

    someone at - it an example script for writing to variables affecting and reading variables to an xml file.

    Discover the second to the last link on this page:

    http://www.Cisco.com/en/us/partner/products/SW/custcosw/ps1846/products_implementation_design_guides_list.html

    There are some very good examples.

    HTH, please rate all positions!

    Chris

  • How to make an xml file

    Hello

    I like to use a file *.xml instad a *.ini file I love huges showing but I dident find out how it works.

    What I like to do:

    My *.inii file for example lokks lik this

    _________________________

    [Info]

    Company = Quantum

    Type = Qrs354

    [Horizontal]

    X_Nullpunkt = 2,500

    X_minus90 = 1.27

    X_plus90 = 3.65

    [Vertikal]

    Y_Nullpunkt = 2.50

    Y_minus90 = 1.31

    Y_plus90 = 3.69

    _______________________

    Now wolld lik do an *.xml file

    Someoene cold show me a simple example for these problem

    Danks much

    AndrewB2013

    Put the information into 3 groups (section names), clusters of wire writing in XML format.

    /Y

  • How to extract data from an arbitrary xml file and export it to a CSV friendly?

    Hallo,
    I am facing big problems in the use of XML files. I have a
    application that generates XML files with clusters containing arrays
    and scalars as in the example pasted below. My task is to
    Read it and export the data into a CSV document readable by a human.
    Since I do not know the actual content of the cluster, I need some sort
    Smart VI through the XML looking for berries
    and other data structures for export properly in the CSV file
    format (columns with headers).
    Thank you



    3


    6


    0



    1



    2



    3



    4



    5




    3.14159265358979



    Ciao

    Rather than to get the

    node, you can just go directly to the node since ' one that really interests you. Basically what it means to determine the elements of table how much you have, and it depends on if you have 1 or 2 knots . The rest is just of the child nodes and the next siblings. See attachment as a starting point. The attached XML file is a table 2D (change the .xml extension).

    Notes on the example:

    • I did not close properly references, so it's something you need to do.
    • It is limited to tables 1 d or 2D.
    • I suggest using a control path of the file to specify the input XML file and path of the file/folder control to specify the location of the output file.

  • Edit and save XML files

    Hi all

    I want to add some values in xml files. for example, my files wml is like this:

    
        
    
    

    I want to add a 'trip' through qml. How can I do this?

    I wanted to do the same thing before, but you cannot add data to your xml file according to the native blackberry documentation

    "The XmlDataModel does not support add or insert values.

    from here

    https://developer.BlackBerry.com/native/documentation/Cascades/UI/lists/XmlDataModel.html

    Try checking the JSON format, I did not any program that uses data models, then perhaps other experienced developers have other solutions

  • Include the XML file with OTA Download

    Is it possible to include an XML file generated with OTA Download?  I am writing an app that will be distributed with a web application that comes with it.  It must be deployed on individual sites, each with its own public address, configuration settings, etc.  The config is specified through configuration of web application and then saved (and later edited/updated) in XML format in the same location as the compiled files jad/cod.  This will eliminate the need for the end user specify the public address of the web application so that provide default configuration settings.  It will be on BIS and HTTPS.  I do not expect BES as the target users will be individuals and small businesses.  I'll be providing the source if they want to make changes, but I don't want to require the end user to compile just to use "out of the box', not versions include different OS and compiled the updates I distribute the bugs/feature updates.  In addition, it will access some restricted API and they must sign.

    If there is another method to achieve this, I am completely open and still at the design stage of list/original feature on the BB side.

    Thank you

    Song

    OK, I wasn't aware of this limitation (I usually code for bes )

    other ideas would be:

    -Configure the application mail/SMS (or similar), implement a listener for it.

    -use a common server and decide what config to use during execution, (by e-mail domain, for example)

  • LSX-00204 error when validating an XML file on a registered scheme

    Hello

    When I want to validate an XML file against the registered scheme I get the following error:

    ORA-31154: Ungultiges XML-Dokument ORA-19202: Fehler bei XML-Verarbeitung LSX-00204: additional data am Ende von komplexem aufgetreten element

    Here is the schema snippet:

    <! - the address of a given party in fixed or free form possibly the two forms - >

    < xsd: complexType name = 'Subscription_type' xdb:SQLType = "ITX_FTC_ADDRESS_TYPE_O" xdb:maintainDOM = "false" >

    < xsd: annotation >

    < xsd: documentation XML: lang = "fr" >

    The user has the possibility to enter the data concerning the address of a party, either in a single long field or to distribute data on items up to eight or even to use both formats. If the user chooses the option to enter the necessary data in separate elements, the container for this item will be "AddressFix". If the user chooses the option to enter the necessary data in a way less structured in "AddressFree" all the available coordinates must be submitted as a string of bytes, empty or ' / ' (slash) or trolley line break return used as a delimiter between the parts of the address. PLEASE NOTE that the country code address is outside these two elements. The use of the fixed form is recommended as a general rule, to allow an easy match. However, the use of the free form is recommended if the sending State can surely identify and distinguish the different parts of the address. The user wants to use both formats for example if in addition which separates the logical part of the address he also wants to show a decent breakdown in print-lines of delimiters in the form of free text. In this case, "AddressFix" must precede the 'AddressFree '.

    < / xsd: documentation >

    < / xsd: annotation >

    < xsd: SEQUENCE >

    < xsd: element name = "PostalCode" type = "iso: CountryCode_Type ' xdb:SQLName = 'COUNTRY_CODE' / >

    < xsd: Choice >

    < xsd: element name = "AddressFree" type = "xsd: String" xdb:SQLName = "ADDRESS_FREE" / >

    < xsd: SEQUENCE >

    < xsd: element name = "AddressFix" type = "sfa:AddressFix_Type" xdb:SQLName = "ADDRESS_FIX" / >

    < xsd: element name = "AddressFree" type = "xsd: String" minOccurs = "0" xdb:SQLName = "ADDRESS_FREE" / >

    < / xsd: SEQUENCE >

    < / xsd: Choice >

    < / xsd: SEQUENCE >

    < xsd: attribute name = "legalAddressType" type = "stf:OECDLegalAddressType_EnumType" use = "optional" / >

    < / xsd: complexType >

    The problem occurs only when the second choice (when: "AddressFix" and "AddressFree") was given in the XML file. When only the first choice ("AddressFree") gave then the validation against schema very well recorded works.

    I think that the problem is based on the generation of all objects in the database of dbms_xmlschema.registerSchema.

    BTW, how is possible to get a more meaningful error message because the error I get is very common, and I can't imagine in which the problem occurs.

    Thanks in advance.

    Best regards

    Martin

    I have reproduced the issue on 11.2.0.4 using the Schémas XML FATCA.

    declare
    
      l_schemas  sys.odcivarchar2list :=
                sys.odcivarchar2list('isofatcatypes_v1.0.xsd',
                                     'oecdtypes_v4.1.xsd',
                                     'stffatcatypes_v1.1.xsd',
                                     'FatcaXML_v1.1.xsd');
    begin
    
      for i in 1 .. l_schemas.count loop
    
        dbms_xmlschema.registerSchema(
          schemaURL       => l_schemas(i)
        , schemaDoc       => xmltype(bfilename('FATCA_DIR', l_schemas(i)), nls_charset_id('AL32UTF8'))
        , genTypes        => true
        , genTables       => false
        , enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE
        );
    
      end loop;
    
    end;
    /
    

    As in schema extract that you provided, I've annotated subscription_type complexType with xdb:maintainDOM = "false".

    Then tried to validate the example NilFIReport.xml file after adding an AddressFix element:

    JP

    String

    String

    SQL> declare
      2    doc  xmltype := xmltype(bfilename('FATCA_DIR', 'NilFIReport.xml'), nls_charset_id('AL32UTF8'));
      3  begin
      4    doc.schemaValidate();
      5  end;
      6  /
    declare
    *
    ERROR at line 1:
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00204: extra data at end of complex element
    ORA-06512: at "SYS.XMLTYPE", line 354
    ORA-06512: at line 4
    

    Now, let's abandon patterns, remove the xdb:maintainDOM annotation (or set to true, the default) and re - register:

    SQL> declare
      2    doc  xmltype := xmltype(bfilename('FATCA_DIR', 'NilFIReport.xml'), nls_charset_id('AL32UTF8'));
      3  begin
      4    doc.schemaValidate();
      5  end;
      6  /
    
    PL/SQL procedure successfully completed.
    

    Works.

    Conclusion: set maintainDOM to false when using XS: Choice.

    There is probably a mess when the positional descriptor (attribute "$SYS_XDBPD") is missing in this case.

  • How to download new products from my store in an XML file?

    Hi everyone, I'm back. I've created a store for a client and we have everything works but someone told me that it is easier to download products in an XML file if you have a ton of them. So I tried to understand, but the only thing I can find on the internet, it's that I'm doing it wrong.

    Here's what I do:

    Under "E-commerce" on the left, click on 'Products' and then on this page, I click on "import". I clicked on "Download Import Template" and when I opened it the first thing I noticed, is that it isn't a .xml file. It is a .xls file (don't know if that makes a difference). The second thing I noticed is that he has confused me more than I expected. There are 7 tab on this document and I can find no explanation for the way they set up this document. The 7 tabs just for ease of Adobe he explain to the customer/user? or I have to configure my document in this way until I can download products?

    Because I really didn't know what I was doing, I did it as much as I have and then tried to download. I clicked on "Choose file" in the "File to import" section and select "Auto-Detect" for the file type. I click Next at the bottom of the page and it gave me this message

    «ERROR: [No Name found].» "Mandatory (Processus a échoué sur le dossier d'importation: [2] s'il vous plaît assurer colonnes 1) are present, 2) all products have product Codes defined, which must be unique (if the importation of goods)"

    I have fixed everything that I could and tried everything a hundred times but still get this same error message. If anyone can help I would love you forever, even if you can point me to a place on the web that would help.

    Thank you very much in advance for any help. See you soon.

    Hello. Don't do no XML - it's a spreadsheet, the information needs to go as required in the fields in the right format.

    If the documentation of the BC doesn't make any sense to you is better to create a product in admin. Fill in as many things as possible - maybe the dummy data. That export and you will have a complete example of what to put in the worksheet.

  • load the xml file into a database to help table of travel point

    Hello

    Someone help me please with a possible approach. I have an interface for APEX users where users can download a file xml in apex table wwv_flow_files using the element to browse with a button "submit". Now, after loading the xml file in the wwv_flow_files table. I need to read and load the xml data into a table sample_tbl. I'm using the version of Oracle APEX 4.0 and Oracle 10 g R2 database. Here is an example of XML file to load. Please help me possible suggestions.

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

    < dataroot generated =... >

    < MySample >

    < KeyId > 1234 < / KeyId >

    eddskc < KeyName > < / KeyName >

    < scheduleDate > 2013-06-16T 00: 00:00 < / ScheduleDate >

    < StartTime > 2013-06-16T 08: 00:00 < / StartTime >

    < EndTime > 2013-06-16T 08:30:00 < / EndTime >

    < / MySample >

    < MySample >

    < KeyId > 5678 < / KeyId >

    jppdf < KeyName > < / KeyName >

    < scheduleDate > 2013-05-19T 00: 00:00 < / ScheduleDate >

    < StartTime > 2013-05-19T 08: 00:00 < / StartTime >

    < EndTime > 2013-05-19T 08:30:00 < / EndTime >

    < / MySample >

    < / dataroot >

    Thanks in advance.

    Thank you

    Orton

    orton607 wrote:

    My sample_tbl has a start_time field and its data type DATE.

    Good.  Be sure to always store dates as the DATE.

    The application (in this case, APEX) needs to format the date date type in the appropriate human-readable format.

    The problem with the incoming data is the 't'.  You will need to convert a space using REPLACE() in the framework so that your SELECT statement

    From there on, conversion to the DATE data type is simply

    to_date( replace( start_time_str, 'T', ' '), 'YYYY-MM-DD HH24:MI:SS') as start_time
    

    And, just in case where, the conversion of DATE for the desired format:

    to_char( start_time, 'MM/DD/YYYY HH12:MI:SS AM')
    

    Although, I'm 'hours' as being left-padded with zeros... Am I looking for how / if you can get rid of the zero prefix (0).

Maybe you are looking for