XML database or txt?


Here is my answer to a previous post:

For 5.0:

You have the possibility to use SQLite.

SQLite overview | Examples

For 5.0 and below:

You can use the PersistentStore:

PersistentStore API | Permanent documentation storage

RMS:

RMS | Examples

Or connection files:

Connections files API

The PersistentStore is the most compatible to my knowledge with most, if not all BlackBerry devices.

Tags: BlackBerry Developers

Similar Questions

  • Is Oracle XML DB, a native xml database?

    Hello!

    DB XML provides the native XMLTYPE data type, and it can provide the traditional storage for xml. It is therefore a database compatible xml or a native?


    See you soon

    It is a compatible XML relational data base (storage or XMLType) but also has a native XML database features as binary XML (binary XMLType XML storage)

  • Several underlying XML databases

    Hello

    I worked on a form in LiveCycle Designer ES2, which is intended to perform the following operations:

    1. the user types the first value (as an ID or name) in the row of a table of text fields

    2. a search Script in an underlying database that can match the entered value and fill the rest of the line

    But I have absolutely no idea how add databeses at livecylce and access. I want to use XML-databases (exported from Excel) and then use javascript to access - is - it possible?

    The databeses would locally on the computer.

    Thank you!

    You can create a dataset with the code, which might be the best approach for you.  Thus, in the forms Initialize event you may have a code like;

    var namesXML =

    Lederarmschienen

    0


    0

    0

    0

    1

    1

    0

    0

    0.1

    0.1

    1

    15

    Arm

    LEDER

    Plattenarme

    0


    0

    0

    0

    5

    5

    0

    0

    0.5

    0.5

    3

    200

    Arm

    Platte

    ;

    var names = xfa.datasets.createNode ("dataGroup", "Root");

    names.loadXML (namesXML.toXMLString ());

    xfa.datasets.Nodes.Append (Names);

    Here I use a literal E4X to make it easier to cut and paste.  Also note that the top element in the XML file is replaced with the name in the second parameter of the createNode method (so the easiest thing is to keep the same)

    You can reference it in code, then perhaps in the case of output of the field name (TextField1 in the code below) you might have the following code to complete other fields;

    var line = xfa.datasets.Root.resolveNode ("Row. ("() Name.Value ==' ' + TextField1.rawValue +" ")" ");

    If (row! == null)

    {

    Ko.rawValue = line. Ko.Value;

    Preis.rawValue = line. Preis.Value;

    Slot.rawValue = line. Slot.Value;

    Typ.rawValue = line. Typ.Value;

    }

    Personally, I prefer this approach, but since I started using E4X I should probably point out that we could also use E4X to process XML data, so it's the same thing.

    var row = namesXML.Row. (Name is this.rawValue);

    If (row.length ())

    {

    Ko.rawValue = line. Ko.toString ();

    Preis.rawValue = line. Preis.toString ();

    Slot.rawValue = line. Slot.toString ();

    Typ.rawValue = line. Typ.toString ();

    }

    Here is a link to the form I used to check my code, https://acrobat.com/#d=yCY7Hi15yg7yVWFbslkXmw

    It may be useful

    Bruce

  • XML database error

    Create an employee of the table having (dept_id: number, employee_spec: XMLType).
    The employee_spec is a diagram with
    emp id, name, email, acc_no, Gestionnairecourrierelectronique attributes, to Joning.
    Insert 10 tuples in the employee table. Fire the following queries on the XML database.

    (a) retrieve the names of employees.
    (b) recover the acc_no from employees.
    (c) retrieve the names, the acc_no, enamel of employees.
    (d) update the record 3rd in the table and displays the name of an employee.
    (e) delete 4 th record from the table.

    SQL > connect hr/tiger@bom4;
    Connected.

    SQL > create table employees
    () 2
    3 dept_id number (8).
    employee_spec 4 sys.xmltype
    (5);

    Table created.


    SQL >
    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 xmltype)
    5 ' < employees >
    6 < emp id = "1" >
    7 < name > buxant gole < / name >
    8 < email > [email protected] < / email >
    9 < > 111 acc_no < / acc_no >
    10 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    11 < / emp >
    12 < / employees > '))
    13;
    XmlType)
    *
    ERROR on line 4:
    ORA-00904: invalid column name


    SQL > INSERT INTO employee VALUES
    () 2
    of 3 100.
    4 sys. XMLTYPE ("< employees >
    5 < = '1' emp id >
    6 < name > buxant gole < / name >
    7 < email > [email protected] < / email >
    8 < > 111 acc_no < / acc_no >
    9 < dateOfJoining > 1994 - 11 - 16 < / dateOfJoining >
    10 < / emp >
    11 < / employees > '))
    12;
    sys. XMLTYPE ("< employees >
    *
    ERROR on line 4:
    ORA-22876: this user-defined type is not allowed or it cannot be used in this
    framework

    Yep, works fine on 10.2...

    SQL> ed
    Wrote file afiedt.buf
    
      1  create table employee
      2  (
      3  dept_id number(8),
      4  employee_spec xmltype
      5* )
    SQL> /
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  INSERT INTO employee VALUES
      2  (
      3  100,
      4  xmltype(
      5  '
      6  
      7  abhijeet gole
      8  [email protected]
      9  111
     10  1994-11-16
     11  
     12* '))
    SQL> /
    
    1 row created.
    
    SQL>
    

    What version of SQL * more you use? Ensure that it is up-to-date with the version of database.

  • Components XML database is in a State not VALID, all seeking dba_registry.

    How to make the component XML valid

    Do you have you recently performed an upgrade?
    Upgrade succeeded? No errors?

    Please reffer to metalink note 243554.1 - how to uninstall and reinstall XML Database (XDB).
    If you are using XDB, then you will need to reinstall it.

  • Retrieve data from oracle to XML database

    Hello

    I run a select statement on the oracle database table. It returns me the result as a table. However, I need the result as xml.
    for example
    So overall the output of a select statement, Select First_Name, Last_Name from table1 is

    First name last name
    ----------------------------------------------
    John Lewis
    David Jones

    then I need in format xml as below

    * < row >. *
    * < John first name > < / name >. *
    * < Lewis Last_Name > < / Last_Name > *.
    * < / row > *.
    * < row >. *
    * < David name > < / name >. *
    * < Jones Last_Name > < / Last_Name > *.
    * < / row > *.

    or

    * < row name = "John" Last_Name = "Lewis" / > * "
    * < row name = "David" Last_Name = 'Jones' / > * "


    In SQL Server, we use for xml auto. How can I get the xml output in oracle? Help, please.

    Thank you

    Refer to the documentation

    http://docs.Oracle.com/CD/B19306_01/AppDev.102/b14259/xdb13gen.htm

  • How can I make effective * Dynamics * xml database queries?

    How can I make queries efficient dynamic xml based?

    Oracle database 11 GR 1 version material, I tried it on 11 GR 2 as well.

    I have a requirement where I went from 10 search gui settings. All parameters are optional, and the user is allowed to enter all the details in the fields in any combination they like. At least one parameter will be filled more every 10.

    I have millions of records in the table and have created a xmlIndex on the xmlType column.

    I dynamically build the necessary xQuery of the arguments and use bind variables, so there is only a hard analysis for each "type" of the request.

    But when I try this I get an error:

    ORA-32512: external 'xquery variable' type is unknown


    So, how to create a query based dynamic xml?

    I think that it is possible that I can create variable bind in sql * more and run a SELECT statement, modify the content of the variable and re - run the query and it performs as I expect, but I can't replicate this functionality within pl/sql.

    I tried to do it using the dbms_sql package I shall not know the number of bind to the run-time variables. When I try this, I get the error message:

    ORA-32512: external 'xquery variable' type is unknown

    If this isn't the right way, how to create dynamic xml queries (when running) founded, using bind variables within the database?

    I created a minimal example to demonstrate:
    CREATE TABLE xmlTest
    (
            id      NUMBER(10,0) PRIMARY KEY,
            theXml  xmlType
    )
    /
    
    DECLARE
            l_sql VARCHAR2(100) := q'<SELECT id FROM xmlTest WHERE xmlExists ('/a[b=$b]' PASSING theXml, :b as "b")>';
            l_b   VARCHAR2(10)  := '1';
    
            l_curId INTEGER;
    BEGIN
            l_curId := dbms_sql.open_cursor;
    
            dbms_sql.parse (c             => l_curId,
                            statement     => l_sql,
                            language_flag => dbms_sql.native);
    
            dbms_sql.bind_variable (c     => l_curId,
                                    name  => 'b',
                                    value => l_b);
    END;
    /
    When I run the present, I get:
    DECLARE
    *
    ERROR at line 1:
    ORA-32512: type 'xquery external variable' is unknown
    ORA-06512: at "SYS.DBMS_SQL", line 1053
    ORA-06512: at line 9
    Line 9 is the declaration of dbms_sql.parse.

    Thank you very much
    Gary.

    Published by: GPN & amp; GT; on February 18, 2011 10:57

    Hello

    Try with an explicit cast of the binding variable:

    SQL> CREATE TABLE xmlTest
      2  (
      3    id      NUMBER(10,0) PRIMARY KEY,
      4    theXml  xmlType
      5  )
      6  /
    
    Table created
    
    SQL> insert into xmltest values(1, xmltype('1'));
    
    1 row inserted
    
    SQL> insert into xmltest values(2, xmltype('2'));
    
    1 row inserted
    
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3    l_sql   VARCHAR2(200) :=
      4    q'