Xml Push Parsing in J2Me applications

Hi all,
I would like to use Push parser in j2me application.Can u please tell me how can i use sax parser in mobile application.Because when i included "jaxp-api.jar" in mobile application,it gives an error "FactoryFinder class not found".. So please tell me how can i overcome this error or any other push parser available for J2me applications.
Thanks
Regards
Sourab

Please review this article.
http://developers.sun.com/techtopics/mobility/midp/articles/parsingxml/
There is a link to a push parser mid way through the article. If you search "push parser j2me" you should be able to find others.
If you still are not able to find a push parser you could create your own. How complex is the xml you need to parse?
I created an example called y!p! some time ago that uses a push parser to parse Yahoo's Image Search web service. (http://developer.yahoo.com/search/image/V1/imageSearch.html)
You can download the example src code. For a more complex example you could look at w!k!. It uses a push parser to parse html wikipedia articles.
w!k! push parser src:
http://hostj2me.cliqcafe.com/www/forumtopicview.html?fid=58&categoryId=36&fpn=0
w!k! src code:
http://www.hostj2me.com/appdetails.html?id=1569

Similar Messages

  • What's the best XML parser for J2ME

    Hello,
    has anybody a suggestione about a light and (hopefully) performant opern source XML parser library to use in a J2ME application?
    I'm going to explore Xparse-J and Kxml: Is there anything better?
    Thank you,
    Andrea

    kXML is the most important and popularly use XML parser for KVM. This is a combination of pull parser and the XMLWriter. It coantains a WAP Binary XML and a special kDOM.
    NanoXML is another parser for KVM, which works on push-parsing technology. Now it is not very popular.

  • Where I can Find AelFred XML Parser for J2ME?

    Hi,
    I need the Aelfred XML SAXParser to run MIDP applications.
    The actual url is www.microstar.com
    but the site is not avialable.
    If any body has an idea about the new URL? or if u have the aelfred parser kit for the J2ME API, then please send it back to
    [email protected]
    Thanks
    Eldo.

    The AElfred project has been merged with the GNU JAXP project:
    http://www.gnu.org/software/classpathx/jaxp/jaxp.html
    There, you have a link to the FTP mirror sites..
    GNU JAXP includes the �lfred2 SAX2 parser.

  • Validating XML parser for J2ME?

    Hello,
    does anybody know a validating XML parser for J2ME?
    Thanks
    Volker

    I mean the XML parser.
    I want to know if there are XML parsers which can validate a XML document against a DTD or Schema
    Thanks
    Volker

  • How to use SAX parser in J2ME

    Please help me how to use SAX parser in J2ME.
    Is there any function to find the value of a particular element from a XML file?
    I am able to get Element name, Values, Attributes. But control is not in my hand, DefaultHanldler automatically invokes Character method, then only I am able to get values. But I don't know when this method gets invoked.
    Is there any way or method so that I can get value of any element or attribute just by passing element name as parameter in SAX parser?
    Is there any other parser through which I can perform this task in J2ME?
    Thanks in advance.

    Hi..
    have a look at this.
    http://www-128.ibm.com/developerworks/library/wi-parsexml/
    MeTitus

  • How to install J2ME application on Nokia 6600

    Can you help me in How to install J2ME application on Nokia 6600.Is it enough to build the application using J2ME wireless toolkit or we need any other Nokia SDK for it.

    hi, it is not very difficult. I have done it this way :
    1) i have set the following mime type in my web server (JRun 4):
    text/vnd.sun.j2me.app-descriptor for the jad extension
    application/java-archive for the jar extension
    (in Jrun 4 i added them in the mime.types file in the lib directory)
    2) i have published a wml page like this :
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.3//EN" "http://www.phone.com/dtd/wml13.dtd">
    <!-- WML file -->
    <wml>
    <card id="main" title="App Title">
    <p>
    </p>
    <p><b>
    <a title="Download App" href="http://xxx.xxx.xxx.xxx/App.jad "> Download </a>
    </b></p>
    </card>
    </wml>
    to download the jad file
    3) then my AMS has started and i could download the application, which runs successfully.
    Anyhow I had to configure 1 wap profile and 1 java profile in my M50 according to my provider configuration, and I bet you had to do so if you have not yet done it. I have successfully used a gprs configuration.
    I am in Italy an so I have the italian provider's configurations. If this may be usefull to you i may send it.
    Feel free to ask.
    Hope this helps.

  • J2me application with ejb

    Hi,
    i wish to access an ejb from my j2me application.
    Can I create stub for that ejb and use it with my application?
    or
    shall I use a servlet for the access of EJB ?
    I need a value to be returned from a function in my ejb. If i am using servlet then, i should return any xml file which contains the value returned from ejb function. this xml file should be sent to the client.
    Please help me.
    Thanks in advance

    If EJB like RIM? I'd guess not, you would have to have a HTTP/servlet go between.

  • Error while parsing uri /portalAppTools/application

    I am in the process of setting up WLP7.0 SP1 to run with Oracle (changed from
    Pointbase).
    When I try to access either my newly deployed portal or the admin application,
    I am getting the following error:
    Is this because I havent run the loadads and loaddocs scripts? (I have a seperate
    problem running them)
    Regards,
    Nick
    <16-Jan-03 23:58:45 GMT> <Info> <Data Synchronization> <000000> <Application:
    portalApp; Data sync complete (OK) [DR: Master Data Repository]> <16-Jan-03 23:58:45
    GMT> <Warning> <Webflow> <401201> <Webflow could not resolve a destination given:
    appname [tools], namespace [admin_main], origin [begin], event [defaultEvent]
    with request id [7604357]; Attempting to load Configuration-error-page.> <16-Jan-03
    23:58:45 GMT> <Error> <Webflow> <401200> <Error while parsing uri /portalAppTools/application,
    path null, query string namespace=admin_main
    - Webflow XML does not exist, is not loaded properly, or you do not have a configuration-error-page
    defined.
    Exception[com.bea.p13n.appflow.exception.ConfigurationException: The configuration-error-page
    node was not found in the webflow xml file. for webapp [tools], namespace [admin_main].
    While trying to display CONFIGURATION ERROR: [Exception[com.bea.p13n.appflow.exception.ConfigurationException:
    Bad Nam espace - namespace [admin_main] is not available for webflow execution.
    Make sure the [admin_main.wf] file is deployed in webapp [tools].]],] at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurationError(WebflowExecutorImpl.java:859)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:556)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:491)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDispatcherImpl.java:341)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:116)
    at jsp_servlet.__index._jspService(index.jsp:2)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >

    I am in the process of setting up WLP7.0 SP1 to run with Oracle (changed from
    Pointbase).
    When I try to access either my newly deployed portal or the admin application,
    I am getting the following error:
    Is this because I havent run the loadads and loaddocs scripts? (I have a seperate
    problem running them)
    Regards,
    Nick
    <16-Jan-03 23:58:45 GMT> <Info> <Data Synchronization> <000000> <Application:
    portalApp; Data sync complete (OK) [DR: Master Data Repository]> <16-Jan-03 23:58:45
    GMT> <Warning> <Webflow> <401201> <Webflow could not resolve a destination given:
    appname [tools], namespace [admin_main], origin [begin], event [defaultEvent]
    with request id [7604357]; Attempting to load Configuration-error-page.> <16-Jan-03
    23:58:45 GMT> <Error> <Webflow> <401200> <Error while parsing uri /portalAppTools/application,
    path null, query string namespace=admin_main
    - Webflow XML does not exist, is not loaded properly, or you do not have a configuration-error-page
    defined.
    Exception[com.bea.p13n.appflow.exception.ConfigurationException: The configuration-error-page
    node was not found in the webflow xml file. for webapp [tools], namespace [admin_main].
    While trying to display CONFIGURATION ERROR: [Exception[com.bea.p13n.appflow.exception.ConfigurationException:
    Bad Nam espace - namespace [admin_main] is not available for webflow execution.
    Make sure the [admin_main.wf] file is deployed in webapp [tools].]],] at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurationError(WebflowExecutorImpl.java:859)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:556)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:491)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:148)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDispatcherImpl.java:341)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:251)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:116)
    at jsp_servlet.__index._jspService(index.jsp:2)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    >

  • Send SMS from J2ME application to a mobile number...

    Hi guys,
    Need your help on sending SMS from J2ME application saved from mobile to send to another mobile number...
    I have tried the WMA demo from suns WTK it send message but the other number cannot received the message.
    Please help or give any idea or sample code that can guide
    me...
    Thanks in Advance...
    Regards,
    Psyeu

    WMADemo works fine.
    Try to do this:
    1. Open WMADemo
    2. Run WMA Console (File->Utilites->WMA Console)
    3. On the top of the window of WMA Console you will see the number of "Console's phone". If you don't have any started emulators, the number will be +5550000.
    4. Run WMADemo
    5. Select SMS Send in emulator menu.
    6. In destination address write +5550000
    7. Enter message
    8. Push "Send" command. Emulator asks you to send SMS. Push "OK" twise.
    9. Then you will see your message in WMA Console

  • How to install j2me application on Siemens M50 over OTA

    Hi...
    I had been develop J2ME application.
    I had made its jad and jar file, and success test with M50 emulator
    And now, I like to try to install it in Siemens M50.
    Can anyone tell me how to do that over OTA ??? or any other way ???
    Please help me ... And Thanks before
    Emha TL

    hi, it is not very difficult. I have done it this way :
    1) i have set the following mime type in my web server (JRun 4):
    text/vnd.sun.j2me.app-descriptor for the jad extension
    application/java-archive for the jar extension
    (in Jrun 4 i added them in the mime.types file in the lib directory)
    2) i have published a wml page like this :
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.3//EN" "http://www.phone.com/dtd/wml13.dtd">
    <!-- WML file -->
    <wml>
    <card id="main" title="App Title">
    <p>
    </p>
    <p><b>
    <a title="Download App" href="http://xxx.xxx.xxx.xxx/App.jad "> Download </a>
    </b></p>
    </card>
    </wml>
    to download the jad file
    3) then my AMS has started and i could download the application, which runs successfully.
    Anyhow I had to configure 1 wap profile and 1 java profile in my M50 according to my provider configuration, and I bet you had to do so if you have not yet done it. I have successfully used a gprs configuration.
    I am in Italy an so I have the italian provider's configurations. If this may be usefull to you i may send it.
    Feel free to ask.
    Hope this helps.

  • Error while loading an XML document using a structured application

    Hi,
    I try to load an XML document using a structured application defined in the default structapps.fm
    My code is shown down, extracted from the FDK API code sample.
    Problem, I always have the same message :
    "Cannot find the file named e:\xml\AdobeFrameMaker10\file. Make sure that the file exists. "
    Where "e:\xml\AdobeFrameMaker10\" is my install directory.
    So I assume that frame try to find the structapps.fm file but does not find it.
    What else can it be ?
    Does anyone knowns how to achieve this simple task using extendScript ?
    Thanks for any comments, Pierre
    function openXMLFile(myLastFile) {
        var filename = myLastFile.openDlg("Choose XML file ...", "*.xml", false);
        if (filename != null) {
            /* Get default open properties. Return if it can’t be allocated. */
            var params = GetOpenDefaultParams();
            /* Set properties to open an XML document*/
            /*Specify XML as file type to open*/
            var i = GetPropIndex(params, Constants.FS_OpenAsType)
            params[i].propVal.ival = Constants.FV_TYPE_XML;
            /* Specify the XML application to be used when opening the document.*/
            i = GetPropIndex(params, Constants.FS_StructuredOpenApplication)
            params[i].propVal.sval = "myApp";
            i = GetPropIndex(params, Constants.FS_FileIsOldVersion)
            params[i].propVal.ival = Constants.FV_DoOK
            i = GetPropIndex(params, Constants.FS_FontNotFoundInDoc)
            params[i].propVal.ival = Constants.FV_DoOK
            i = GetPropIndex(params, Constants.FS_FileIsInUse)
            params[i].propVal.ival = Constants.FV_DoCancel
            i = GetPropIndex(params, Constants.FS_AlertUserAboutFailure)
            params[i].propVal.ival = Constants.FV_DoCancel
            /*The structapps.fm file containing the specified application must have
            already been read. The default structapps.fm file is read when FrameMaker is
            opened so this shouldn't be a problem if the application to be used is
            listed in the structapps.fm file.*/
            var retParm = new PropVals()
            var fileObj = Open(filename, params, retParm);
            return fileObj
        } else {
            return null;

    Pierre,
    Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow, as you are presenting a dialog to select a file to open. I recommend using the global ChooseFile( ) method instead. This will give you a filename as string in full path notation, or null when no file was selected in the dialog. I am not sure what your ExtendScript documentation states about the return value for ChooseFile, but if that differs from what I am telling you here, the documentation is wrong. So, if you replace the first lines of your code with the following it should work:
    function openXMLFile ( ) {
        var filename = ChooseFile ( "Choose XML file ...", "", "*.xml", Constants.FV_ChooseSelect );
    While writing this, I see that Russ has already given you the same advice. Use the symbolic constant value I indicated to use the ChooseFile dialog to select a single file (it can also be used to select a directory or open a file - but you want to control the opening process yourself). Note that this method allows you to set a start directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" which is undocumented and can safely be ignored.
    Good luck
    Jang

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi
    i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
    is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.

    Hi Vignesh,
    Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
    Have a  look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
    CLA 2014
    CCVID 2014

  • How to get the Mobile information by using J2ME application

    hi all,
    I am lakshman.I am developing an application in j2me,I want my program compatible to all mobile devices.
    I want to know properties and the device information with the help of a j2me application.I got the information with the help of System.getProperty(String).I found some of the information like sms,videocapture,and some of the values and the variables ... in the following
    platform...null
    encoding...ISO-8859-1
    configuration...CLDC-1.0
    profile...MIDP-2.0
    locale...null
    fileconnection...1.0
    comport...null
    hostname...iwmc-07
    sms...null
    smartcard...null
    location version...null
    sip version...null
    m3gversion...null
    mms...null
    videocapture...false
    videoencoding...null
    snapshotencoding...encoding=png encoding=jpeg encoding=gif encoding=bmp
    audioencoding...null
    supaudcap...false
    suprecod...false
    supmixing...false
    mediaversion...1.1
    streamcont...null
    I want to know these are the only variables or is there are lot...
    Now my question is I want to get the information of the service provider and also the present location that the mobile was present.I think there was some method to get that ...I want to get what firmware it was using .
    Can anybody tell me that way and also the package to get the information
    thanks in advance
    lakshman

    hi all,
    I am lakshman,I found the answer for my question,By using the Location API(jsr179).It was not include in the WTK2.2.for that i have downloaded the WTK2.3 then i have implemented the location api in the application and it was working.
    And I have the following warning...
    Warning: To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    I am running the application from my Emulator(by using the default color phone).I have to check that in the device.
    Can any body please give me the way to fix that,i want to test my application from my emulator is that is possible if possible ...how?.what is the procedure to implement..
    thanks in advance

  • XML SAX parser that support  LexicalHandler

    Hello,
    I'm looking for an XML SAX parser that support a LexicalHandler.
    I have xml files that are not well formed, ie: (&, <, >, etc...) characters within tags and I need to ignore them.
    Anyone have a link to some opensource library ??
    Thanks,
    Samir

    Don't waste your time. Using a LexicalHandler isn't going to help with parsing malformed XML. You should get the person who produced those files to replace them with correct XML.
    PC&#178;

  • Opening a web page through my J2ME application.

    Hi All,
    I am creating a j2me application, that has to connect to the server online and open a page on that server, and then upload a file at a particular location in that server.
    I am using Nokia 6681. I was exploring it, but since I have very less time, I am posting a query here also.
    If this is possible (opening a connection with a server - I have the IP address of the server and also the path to that page), and display that page on my cell phone from within the j2me application.
    Is this somehow related to JSR-172 (Which is not supported on Nokia 6681).
    If this is not possible this way, Is there any way I can upload that file to the server from within the application.
    Urgent help is required.
    Thanking you in anticipation
    Ashish

    Just compile and run the testVisit program as follows:
    java testVisit http://www.yahoo.com
    testVisit.java
    ==========
    import java.net.*;
    import java.io.*;
    public class testVisit {
       public static void main(String[] args) {
          try {
             URL url = new URL(args[0]);
             URLConnection connection = url.openConnection();
             connection.setRequestProperty("Referer", args[0]);
             connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0");
             BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
             String Line;
             while ((Line = in.readLine()) != null) System.out.println(Line);
             in.close();
          } catch (Throwable e) {e.printStackTrace();}
    };o)
    V.V.

Maybe you are looking for

  • Field Read Only based on a value of another field

    Hello, In our project we´d like to have Field A made Read Only based on a value of Field B. Otherwise it should be R/W. Would this be possible in OnDemand ? Txs. a lot for any help. Antonio

  • IE9 problem linking to a specific tab

    I have been happy with my website for almost a year now after asking a few questions relating to Tabbed panels and having my problems solved here. But I've realised there is a problem that didin't exist before! I have a Horizontal menu bar at the top

  • Delete button and backspace

    I've got a iBook Power Book 4.1 or a Power PC G3. Unlike my G4 desk top, the keyboard does not appear to have a backspace button. The delete button deletes backwards. Is there anyway to delete forward? The Delete on my desktop deletes forward and the

  • Cannot see photos in iTunes

    I have an iPod 2nd Gen and am trying to get some .jpeg photos from my PC to the iPod. When I go to SYNC and select the folder iTunes cannot see the photos in the folder on my PC.

  • Second display turned off

    Hello guys I plug a 2nd screen (Philips) on my iMac late 2013 (with GTX 780M 4G°) by Minidisplay to HDMI. It works fine... but, sometimes, when i reboot or start a new session, the display stay off and doesn't appear in the display preferences. I cha