XML and blackberry application

Hello:

I have generated a xml file that describe the content of a database of nsf document, can you tell me how can I display the result of this xml file in a programming application blackberry with blackberry plugin for eclipse.

I created the Domino XML with lotus script whitin lotus domino designer version 8.5.

Thank you;

My first suggestion is to "find the samples.

If you have installed the JDE or plug of Eclipse, you have somewhere on your disk, right?

Second, there is nothing particularly unique in the XML handling on the Blackberry. You have the standard SAX parser and also have the option to use the DOM these two are pretty standard stuff on any Java platform, and you should find examples here on the forum, or by using google.

Tags: BlackBerry Developers

Similar Questions

  • Difference between prefer application-packages in weblogic.xml and weblogic application. XML?

    Hello!

    When you deploy a WAR for WebLogic 10.3.5, what is the difference between the prefer-application-package element in the weblogic.xml and weblogic application files. XML?

    In my WARs WEB-INF/lib / I have a JAR that contains classes that are already provided by the container (but older versions).

    If I do not prefer-application-packages use my application gets then the classes provided by the container.

    If I use prefer-application-packages in weblogic.xml can I get classes in WAR/WEB-INF/lib, which is expected.

    But if I use prefer application-packages in weblogic - application.xml, then I get the versions of container. Why?

    Is there a difference between these two options?

    The exact data that I use are:

    (foo.bar. * is the name of the conflicting package;) Add or remove the linex tagged XXXX)

    WEB-INF/weblogic.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-web-app
        xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
        <wls:container-descriptor>
            <wls:show-archived-real-path-enabled>true</wls:show-archived-real-path-enabled>
            <wls:prefer-application-packages> <!-- XXXX -->
                <wls:package-name>foo.bar.*</wls:package-name> <!-- XXXX -->
            </wls:prefer-application-packages> <!-- XXXX -->
            <wls:prefer-application-resources>
                <wls:resource-name>META-INF/services/some....</wls:resource-name>
                <wls:resource-name>META-INF/services/unrelated...</wls:resource-name>
                <wls:resource-name>META-INF/services/stuff...</wls:resource-name>
            </wls:prefer-application-resources>
        </wls:container-descriptor>
        <wls:jsp-descriptor>
            <wls:page-check-seconds>-1</wls:page-check-seconds>
            <wls:precompile>true</wls:precompile>
            <wls:precompile-continue>true</wls:precompile-continue>
            <wls:keepgenerated>true</wls:keepgenerated>
        </wls:jsp-descriptor>
        <wls:session-descriptor>
            <wls:persistent-store-type>replicated_if_clustered</wls:persistent-store-type>
        </wls:session-descriptor>
    </wls:weblogic-web-app>
    

    META-INF/weblogic - application.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application
        xmlns="http://xmlns.oracle.com/weblogic/weblogic-application"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.2/weblogic-application.xsd">
        <application-param>
            <param-name>webapp.encoding.default</param-name>
            <param-value>UTF-8</param-value>
        </application-param>
    
        <xml>
            <parser-factory>
                <saxparser-factory>
                    org.apache.xerces.jaxp.SAXParserFactoryImpl
                </saxparser-factory>
                <document-builder-factory>
                    org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
                </document-builder-factory>
                <transformer-factory>
                    org.apache.xalan.processor.TransformerFactoryImpl
                </transformer-factory>
            </parser-factory>
        </xml>
    
        <prefer-application-packages>
            <package-name>foo.bar.*</package-name> <!-- XXXX -->
            <package-name>javax.jws.*</package-name>
            <package-name>javax.xml.ws.*</package-name>
            <package-name>org.apache.cxf.*</package-name>
            <package-name>antlr.*</package-name>
            <package-name>org.xmlsoap.schemas.wsdl.*</package-name>
        </prefer-application-packages>
    </weblogic-application>
    

    WebLogic - application.xml has no meaning in wars, it is only used in the ears.

  • my flash builder shows no option for the ios and blackberry application

    Untitled.png

    I can't read this info on my installation of FB, although installation details gives the version numbers for various components (on Flash Builder - press installation details), but if you go here: http://www.adobe.com/support/flex/downloads_updaters.html#flex4_5 you can find the 4.5.1 update that you have installed.

  • XML application and blackberry

    Hello;

    IAM develop an application that manipulate an XML from java blackberry applications, I have a few textField and I want to add the container of these fields in a file xml as a new tags, and I want to change the doc added to likely he fields is added in the same texyField I'll Likely and save changes to the xml file I made somes codes but it's not working if there is no tutorial or the method that works in BB request can we just send it to me, I'm stuck at this step.

    Thank you very much for help

    Hello. This forum exists to disturb us, so don't be sorry!

    Skimming just your code, I think that the line:

    CFile = (FileConnection) Connector.open ("dat.xml", Connector.READ_WRITE, true);

    may be causing the exception. Connector.open method requires the first argument a string in the format:

    {schema of}: [{target}] [{parms}]

    where {} is the name of a Protocol and is required. Your argument, 'dat.xml', is not a plan. Since you are built on a FileConnection, the Protocol should be 'leader '. Also, the target must be an absolute path name. A typical target for a file that is stored in the memory of the unit would be:

    'file:///store/home/user/dat.xml '.

    To the SD card, a typical target would be:

    'file:///SDCard/BlackBerry/dat.xml '.

    You can determine the roots of system file using FileSystemRegistry.listRoots ().

  • The file of the bar - descriptor.xml (and make the application of command line)

    I made a game with air and it is online for sale on Android and iOS. It is somewhat popular and I thought to put up on Blackberry for quite awhile now and with the Port of soon-to-start-A-Thon, this seems to be a great time to finally make it.

    BlackBerry is not very common that here where I live in Sweden, however it still looks like an interesting with a potential platform if I want to get the trip. Unfortunately I don't own a camera myself so I'll use the Simulator. With some graphic problems with the simulator when running in mode BB10DevAlpha (icons does not appear right) and the Simulator is very slow when running in mode BB10DevAlphaSafe (chart appears on the right, but it seems that updating them requires more CPU my computer are available).

    The game is built using nothing other than Adobe Flash Professional CS6 and a bunch of command line tools to build the package and sign. I've only got an old computer with Windows XP now since the death of my main PC, all at the time and since the Port-A-Thon is just a few days I do with what I got.

    Firstly I understand that only AIR 3.1 is supported by Blackberry 10, so I use the old AIR SDK 3.1 to create a SWF (flash) file.

    What I really need to do should be used in the exported SWF file of the game, then use the command line tools provided by RIM to build the package, right?

    Except that I did not count on bar - descriptor.xml to be so difficult to understand.

    I was brought to the documentation here: https://developer.blackberry.com/air/documentation/bb10/bar-descriptor_config_file.html

    It says Adobe AIR at the top, the platform selected is Blackberry 10 and the title says "bar-descriptor configuration file", so it must be in the right place!

    I start by trying the 'bar-descriptor configuration example file"on this page:

    ===========================================================



      
          None
          fake
      

     
      
       Name of the author
     
      
       gXXXxXXx ##XxXxXxxxXxXX #xxx
     
      
       Core.Games
     
      
       Icon.PNG
     
      
       HelloWorld - splash.png
     
      
       read_geolocation
       use_camera
     
      
       1

    ===========================================================

    Of course during the test I replaced a few things in the example above with the correct filenames for images etc, I just copied the example of right - off this time to you guys show what I mean.

    Firstly, I extract "blackberry-tablets-sdk - 3.0.0" in a folder on the disc, then I make sure as a full path to the "bin" in the SDK folder inside the path on the OS environment variable.

    Then I read on "Applications of Test using the command line": https://developer.blackberry.com/air/documentation/bb10/testing_your_application_cmd_ms_2010851_11.h...

    Now I run:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf myappnameicon86.png bg splashscreen1024.png - device 192.168.8.128

    Note that "bg" is a folder with 500 images that must be accessible from the app. I hope that I can just add the folder like this and not type a path to each image file...

    What I get (in lib\adt.jar via the bat file):

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Okay, so the example did not straight on the box.

    Now, I've read all paragraphs in the first URL I linked above ("the bar-descriptor configuration file"). I start my own XML file and make sure to include everything that is marked as "necessary". That's what I'm left with:

    ===========================================================



        MyCompany
        
            
            com.mydomain.myappname
            My App name
            3.0.0
            
                splashscreen1024.PNG
            

            1.5.0
        

        run_native
        
            application
            
                bb.action.VIEW
                application/octet-stream
            

        

    ===========================================================

    I have no idea of what concerns the block whole call target, but it took, so he must be there.

    Now I launch (notice that myappnameicon86.png is gone since no icon is mentioned in the above XML code, it is not mandatory):

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf bg splashscreen1024.png - device 192.168.8.128

    Yet once, I get:

    error 101: Namespace is missing
    Error: Validation of the AIR is not

    Frustrated I get autour on the forums for answers, because the official documentation is nowhere getting me.

    I'm left with this:

    ===========================================================


    http://ns.Adobe.com/air/application/3.1">
        com.mydomain.myappname
        1.5.0
        
        My App name
        
        My App name
        
        
            myappname.swf
            standard
            fake
            true
            true
            landscape
            GPU
            fake
        

        
            myappnameicon36.PNG
            myappnameicon48.PNG
            myappnameicon72.PNG
        

        fake
        fake
        
            qnx.fuse.ui.skins.QNXDevice
            qnx.fuse.ui.skins.QNXNetwork
            qnx.fuse.ui.skins.QNXSensors

            qnx.fuse.ui.skins.QNXSkins
        

    ===========================================================

    Looks like the XML code that I use when I build for Android.

    First of all it doesn't have the tag root of qnx, but also nothing of the icons are of the required size (86 x 86). The tag required splashscreens and invoke target is also absent, to name a few. No idea of what the entire block of 'extensions' really do.

    Surely, this does not work:

    BlackBerry - airpackager.bat - package installApp - blackberry-myappname - new.bar - launchApp myappname-blackberry-bar - descriptor.xml myappname.swf QNXDevice.ane QNXNetwork.ane QNXSensors.ane QNXSkins.ane myappnameicon36.png myappnameicon48.png myappnameicon72.png bg-device 192.168.8.128

    Success in building the package BAR to my infinite surprise!

    He even managed to install on the Simulator. An icon for the game. However when it auto-couru the app went into landscape, thought for a second and then crashed (or you leave?) without a message.

    Perhaps because the required qnx tag was missing in the XML?
    Perhaps because images in the bg file could not be loaded?
    Perhaps because he had no permission to keep screen from dimming?

    I have no idea. I tried to add XML to qnx at the address previous to the bar - descriptor.xml, I thought that maybe he needed both the qnx block for when you run the application and the application block for when packaging. But now, he has complained of something like XML is not not clean ("' fatal error: markup in the document following the root element must be well-formed." ").

    So he came to it, I have to ask for help if I ever make the deadline of the Port-A-Thon.

    (1) how am I supposed to write the bar - descriptor.xml?
    (2) what command line starting by "blackberry - airpackager.bat" is OK to use?
    (3) all I have to do is build the SWF using Adobe Flash Professional CS6 and then pack it using the Blackberry SDK, right?

    First of all, there are two xml files that you need.

    One is called the manifesto, is to AIR and is called yourappname- app.xml. It is identical to the ones you use for Android and IOS, though some elements will be ignored. It's one you need to switch on the command line, and is probably causing the 'Namespace' missing error message. A file manifest a minimum is:

    
    http://ns.adobe.com/air/application/3.1">
    
        com.example.appname
        My Fabulous Game
        1.0.0
    
        FileNameOfYourSwfWithoutExtension
        YourCompanyName
        
            [This value will be overwritten by Flash Builder in the output app.xml]
            true
            false
            none
            cpu
            false
        
    
    

    Replace the text in red with your own stuff.

    The second xml file is called to the bar of descriptor. It is for App World and the installation process and is called bar - descriptor.xml. It contains information about signing code, icon, permissions etc. A simple bar - descriptor.xml is:

    
    
       
          none
          true
          landscape
          false
          cpu
       
    
       
       your-name-on-certificate
       your-id-on-certificate
    
       core.games
    
       
       1
    
       
       
          icon86x86.png
       
       splash-landscape.png
    
       
       2.1.0.1314
    
       
       access_shared
       access_internet
       play_audio
       set_audio_volume
    
    

    Make sure that you at least change the red dots.

  • Help blackBerry Smartphones: lost emails / texts, without contacts and some applications do not work on 9780!

    Yesterday my camera started to get really slow so I decided to restart it. I did and was still slow, so I did a batt pull. It seemed be allright job but started sometime send me errors (app 603 / and these application exception).

    Now it takes a long time to turn on, when he does continues to give these errors and some things do not work, for example, I can see my contacts but I can't open it to see their information.

    Before I format it, I was wondering if anyone had these problems and if there is no solution?

    The only thing I would like to try and save it would be my contact list (no, I didn't save the device)

    Any help is appreciated.

    Thank you!

    Hi and welcome to the Forums!

    Run, don't walk, to this KB and make a backup immediately!

    • KB23680 How to back up and restore data from BlackBerry using BlackBerry Desktop Software 6.0 smartphone

    Next - think about this behavior at startup. What happened just before that date? A new application? An update? Something else? Think very carefully, because the smallest thing can be causal.

    anamobe wrote:

    Before I format it

    Have you thought about how you will try that? After all, 'format' is not a same command available on a BB...

    If you decide to go ahead, I recommend a refill of BONE. from a PC, you can install any bundle of BONES to a BB via this procedure:

    Note that although written for "reload", it can be used to upgrade, downgrade, or recharge - it depends on the OS package you download and install on your PC. You can even use a different OS package carriers simply insert, between steps 1 and 2, the deletion, on your PC, a file named PROVIDER. XML. remember that you remove from your PC, no matter what other packages devices OS BB as having more than one installed on the PC can cause conflicts with this procedure.

    If you are on a MAC, you are limited to only your sanctioned carriers OS packages... but can still use any level they currently have to sanction. See this procedure:

    • KB19915 How to perform a clean reload of the smartphone BlackBerry using BlackBerry Desktop Software application software

    Good luck and let us know!

  • Travel to blackBerry Smartphones and map Applications for Blackberry

    Can someone tell me what is a good (free) travel/mapping for blackberry application?  I had google maps and wasn't so much in love with her.

    I checked the blackberry site and found "poynt."  What is a good?

    Poynt is not a great map and the application of directives, but it is a kind of good yellow pages application.

    Outside of Google Maps, there is AmazeGPS, Nav4All and may others.

    Other: http://www.blackberryforums.com/gps-mapping/127686-all-known-gps-applications-bb.html

  • Extremely confused with the extremely complicated presentation of BlackBerry applications

    Please help me, I'm very confused with the extremely complicated presentation of BlackBerry applications.

    I made an app, the name is "App", I got signed and downloaded the App using the emulator Ripple, with the word 'HelloWorld' signature (password not true of course).

    Now, I do another application, with the name of the App (B) I CAN'T use the same HelloWorld signature password because the emulator Ripple said "Oh, Snap!" Build request failed with the message: [ERROR] error: Code signing request failed because this version of the application or the package has been previously signed. If please increment the version (s) and try to connect again. »

    Now, I don't understand and I am EXTREMELY confused with the presentation of the model of application for Blackberry.

    I should first request, for an another RDK and COMINCO files create a new signature for App B password?

    Or should I just increment the bundle version? the problem is when I tried it on Blackberry server seems to give narrations of error message that the APP ID is already used.

    Okay, I'm officially stuck and I don't know what to do. Can any developer of blackberry here or the official employee blackberry tells me what I need to do?

    Thank you.

    I do not use ripple either but can see what the problem is (nothing to do with the ripple)

    Open your file config.xml for the new project (probably copied 'App A'?)

    In the widget section, change the id to something different, for example com.example.AppB

    Save - reload the ripple and make sure you have the new ID in the Config-> Widget

    All sorted

  • ePrint apps for the blackberry and blackberry playbook torch

    Y at - it an eprint for blackberry and blackberry playbook torch application?

    Hello Dagreenguy,

    The only application for Blackberry from HP operating system is HP ePrint Service, found on the link below.

    http://appworld.BlackBerry.com/WebStore/content/13675?lang=en

    This app is mainly for printing on public printers, an example might be a FedEx Kinkos.

    If you want ePrint on your personal printer, I'd just sending an e-mail to the e-mail address of your printer from your Blackberry mobile ePrint.

  • Simulator of MDS and Blackberry 8110

    I have a problem with the simulator of MDS and Blackberry 8110.

    I just test my application because when I try to connect to the internet using mds - cs, the web browser (or my request) my 8110 Simulator gives me the error "unable to connect to the selected Mobile Data Service, please try again later." ...".

    The same application with another Simulator (i.e. Blackberry 8900) works without a problem, and I can surf the web with the built-in web browser.

    I'm running on Windows Seven x 86

    Java 1.6.0 update 20

    BlackBerry JDE 5.0.0

    8110 Simulator is 4.5.0.81.

    (I'm sorry for my English )

    Solved!

    I used a generic Simulator. Installed by Vodafone one, and now I can surf the web from my blackberry Simulator.

    Note: I noticed that with Blackberry 8900 generic Simulator I can surf the internet with the active wi - fi network.

  • Z3 blackBerry applications

    Hello

    I want to know one thing, why blackberry does not support google plays store and its applications? Something you want to do, app is not available as other android phones. There is always some restriction limited applications. Very few apps are not available in amazon apps store also. It always puts me in frustration, why buy a phone that hangs out with the applications. At least blackberry should provide a framework by which we can use the apps that do other users of android phones. Help, please!

    Tip 3: You can get a PRIVATE BlackBerry powered by Android

  • Silent update and delete applications

    Hi all

    I was wondering if it is possible for a BlackBerry app to be able to update or delete itself, without, if possible, give error/caution messages. It is possible to do in J2Me using special extensions of specific suppliers, but not in generic j2me. In this case, the j2me application makes a call to some native API, asking to update/delete itself and then out of himself to the native operating system to take the necessary steps. Such a solution, or something similar, is available for the BlackBerry applications? In versions of the OS?

    Thank you

    Basilio J V Souza

    An application cannot update itself, but you can programmatically change an another third-party application.

    Install and update applications programmatically

    http://supportforums.BlackBerry.com/T5/Java-development/programmatically-install-and-upgrade-Applica...

  • error in updating the BlackBerry application

    Portal provider gives me an error, when I try to download the new version of the blackberry application. Please see the full error message given below.

    ("BAR file ('GacDirectory - 1_0_0_4.bar)") was rejected. The BAR ("gYABgJ0Jom3WzADM0b1yBmjVa20") package ID does not match ID of the application ("gYABgIm1QEDmkg7Fk2PIbALvRcA") Package. »

    little research, I just understand that my song of code blackberry key is different from the old as well as certificate of author. application support native blackberry API level 10.1 +.

    These old code signing key and certificate are no longer available and development environment (computer) has also been changed.

    However, I have access to the supplier portal and I can generate the new file bbid (csk). I am in a terrible situation, help me please update the new version of the application.

    Application name: GacDirectory

    Vendor ID: 36071891

    If you have more code access keys to sign your signature request, you can contact the BlackBerry World of the vendor management support to clear the flag of your application ID, allowing you to update your application.  However, note that if you do this your upgrade of the application appears as a new separate downloading BlackBerry World application.

  • Sencha shows white screen on Simulator and device application

    Hello

    I developed a sencha sample application using Sencha Architect (2.2.0) and able to see the screen on the emulator to ripple. After generation successful application using emulator waving, when I try to install the application on the device and blackberry simulator (9900,9860) is showing the white screen.

    I applied the changes for window given in link below:

    http://www.Sencha.com/Forum/showthread.php?252232-guide-deploying-Sencha-touch-2.1-as-a-BlackBerry-n...

    Always on display white screen.

    Help, please.

    I removed the circumvention of the viewport from app.js and it works fine now.

  • Waterfalls package Blackberry application

    Hi all

    So far, I used to install blackberry application QNX momentics.

    I connected the device to the computer, created a token of debugging using QNX and installed the application.

    But is it possible that, without connecting the device to the computer I have export the application as an auto executable and send it to somone else anyone can install on blackberry without my help.

    Please suggest

    For example, see this tutorial on YouTube of BlackBerryDev chain:

    https://www.YouTube.com/watch?v=Szd_s_UBifM

Maybe you are looking for