KXML and J2ME

Okay, i've been reading up on the tutorials, and I think i'm grasping things alot better.
I will make two classes, one called "Card" for each individual card - and a collection of "Card" types will create a "Stack" class - in this manner I will only have to code the collection once.
I was hoping someone could give and example of how to translate this:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Not sure if the encoding is right, i don't know much about that. -->
<Stack>
<Card>
<Num> 1 </Num>
<SideA> This is a question. </Side A>
<SideB> This is a answer. </Side B>
</Card>
<!-- If this comment symbol is even correct, the flashcards would follow in the same suit -->
</Stack>
Into my Classes, using kXML.

Well, yes.
I have added the kXML package to the project, I just don't know which clas to use if the XML exists on the device, rather than a server - or if I need more than one.

Similar Messages

  • KXML and Netbeans

    Hello everyone,
    I wish to manipulate some simple XML on my J2ME application. From what i can find the best method seems to be using kXML.
    However, I am having trouble integrating this into my application as a namespace.
    Does anyone have any experience with this please?
    I am running Netbeans 5.5
    Thank You
    James

    Thanks Peace,
    But I am facing the same problem even when I use the source java files of kXML and include those in my project and use them as additional classes to my class.
    It again builds properly when I don't use the highest obfuscation level.
    But if I try to obfuscate using Level HIGH it throws the same error.
    However when I try to run this project from J2ME Wireless Toolkit, it is running fine on the emulator.
    I guess the error is something specific to Netbeans IDE. Have anyone of you encountered such a bizzare error.
    Thanks,
    Vikas

  • Mp3 and j2me supporting reliance mobile

    hi,
    if anyone know abt mp3 and j2me supporting Reliance phone in market.if so please give me the link where to get teh details I already checking it with reliance website and i want more information please help me.
    thanx in advance
    laxmi

    hi laxmi
    i dont know did you check this URL
    www.dadp.com
    there is one forum also avail for the j2me and realience phone you will get all the information tehre
    regards
    [email protected]

  • Bluetooth communication  between J2SE server and J2ME client

    Hi everyone!
    I'm new here in this forum...
    I try to make a small project to my studies,
    My project will include J2SE server and J2ME client.
    I'm stuck in the step of finding the server with the wireless toolkit emulator.
    I found this issue in old subject: here
    I try the solution in reply 6 but I don't understand exactly who to define kvem.home, and I got this error:
    " You must define the system property "kvem.home" "
    maybe someone can help me and explain how to do that?
    thanks!

    Hello,
    I want to find out how this can be done, too. I tried with
    System.setProperty("kvem.home", "C:\\WTK2.5.2");but I get an error:
    java.lang.UnsatisfiedLinkError: com.sun.kvem.jsr082.impl.bluetooth.BluetoothController.setSystemProperty(Ljava/lang/String;Ljava/lang/String;)I included these files in the build path:
    c:\WTK2.5.2\wtklib\gcf-op.jar
    c:\WTK2.5.2\wtklib\kenv.zip
    c:\WTK2.5.2\wtklib\kvem.jar
    and I import com.sun.kvem.bluetooth.*;
    I'd appreciate any help.

  • Educational Use of JMF and J2ME WTS

    Dear all,
    I have tried to find legal information about education use of JMF and J2ME WTS. I want to install these two packages in the computers of a tutorial room for student use.
    Would any kind soul please enlighten me where I can get such information?
    Thank you.
    Cheers,
    Andrew Lui
    The Open University of Hong Kong

    Maybe from Sun? If it's not mentioned in the terms and conditions of the libraries or their download sites, I wouldn't know where else to get more information.

  • KXML and ksoap

    Hi
    SOAP communication + JAXM and RPC use to communicate on XML base messaging and attachments.
    What is ksoap?Can soap run on midp emulators and palm tops?
    What is KXML?
    What is the status of kxml and ksoap ?? (relesed or still beta versions)
    Thanks

    See http://ksoap.enhydra.org
    kSOAP provides a SOAP runtime for MIDP.
    I've used kSOAP 1.0 and it seems pretty stable.
    kXML is an XML Parser for MIDP, which kSOAP uses.

  • SVG Tiny and J2ME?

    Is there any support for SVG (tiny or basic) in the standard libs or are you forced to use 3:rd party libs (alternatevly creating your own)? Since I havn't found it I'm guessing that your stuck with third party libs or the diys-rule but quite new to j2me and i havnt quite got the hang of all the diferent apis provided. Anyway, would be greatfull if anyone could straighten my questionmarks.
    Best Regards,
    John

    Hi,
    I'm currently working with SVG and J2ME and I've seen many products...but I think that TinyLine is the most useful (if you are looking for something free).
    There's also a jsr, "Scalable 2D Vector Graphics API for J2ME" (jsr 226)
    http://www.jcp.org/en/jsr/detail?id=226
    maybe you can find it interesting
    Another link, containing some interesting hints about Mobile SVG
    http://www.xml.com/pub/a/2004/08/18/sacre.html
    I don't know if I've told you news or not...hope to have been helpful :-)
    bye
    melian

  • Javacard and j2me

    hi all,recently i want to plan a project that is about
    i want to make a connection between javacard and j2me(on pda)
    i.e. a j2me game can communicate with javacard..
    but i don't know has any existed solution ??
    at beginning i only want to make project in the simulation environment (pda simulatior<->javacard simulator) ,i hope u can give me any solution that can communicate between pda and javacard
    thx in advance!!

    AFAIK the j2me (the MIDP profile) does not support smartcard communication
    i.e. a j2me gsm phone cannot communicate with the sim card inside
    unless something has changed in this subject recently
    regards
    Kuba

  • SyncML and J2ME

    Hello 2 all,
    is there example avail for the SyncML and j2me?
    does anybody know how to realte j2me wiht SyncML?
    waiitg for the reply
    [email protected]

    Also look at funambol.com (sync4j). They have a J2ME sync client API.

  • WML and J2ME

    hi,
    I have a WML page and have a midlet.
    Using the file connection API, i will request for the WML to my server.
    My midlet will get the WML response.
    But, the output of the WML should be reflected on my MIDLET, without the mobile browser.
    Have anyone tried this. Please help me out.
    with regards,
    Shirish.

    WML and J2ME are not directly related.
    1) If you want to download a WML page in your midlet you will need to use a HTTP connection. The downloaded WML markup can be displayed or processed in your midlet. To render the WML, you will need to write a parser and the rendering components.
    If you need to extract information from the WML document, I would suggest not using WML at all and starting with an XML document, tailored for your use.
    If you do not need to extract information from the WML document, consider using a PlatformRequest to launch the browser and render the WML document.
    2) You can host and create WML page similar to the methods you would use to create and host a HTML page. There are tools to help you author the pages, and emulators to help test your pages.
    I would suggest starting with one of the phone manufacturers developer groups, i.e. sony ericsson or Nokia. You can find support and tools on their sites.

  • SOAP and J2ME ?

    Does anyone have experience in using SOAP with J2ME to communicate with the web server?
    Can you please, give me good references and share your thoughts in using both together ?
    thanks
    chinimilli

    I haven't try it yet but ther is a SOAP implementation for J2ME : kSOAP (http://www.ksoap.org)
    It uses kXML (http://www.kxml.org) which I try and it work very well ;)

  • JAR files and J2ME

    Just starting a J2ME project.
    An embarrassingly Noobie Question:
    1) All the classes that are supposedly "built-in" to my device (phone)
    do NOT need to be included in the deployed JAR file, right?
    2) Anyone know how to do that in Netbeans 5.0?
    Project -> Properties -> Build shows sources filtering
    but that doesn't include anything from my "input"/library .JARS.
    However, all the com.*, javax.* and java.* files are being included in
    my output JAR file and it causes failures in preverify and loading
    on the phone.
    HELP!!

    hi,
    any know this question
    please send me the procedures about how load my J2ME
    application(jad and jar file) into CDMA mobiles
    like(Nokia 6255,6235,6235i etc..).
    its very urgent for me,
    please anybody known this answer reply very soon.
    thanks a lot
    laxmi.Hi
    I am also having the same problem , any one has found solutions kindly inform. I want to install the spreadsheet viewer. Has any body developed solutions for the same - Please help
    Thanks a lot
    Ragupathi

  • MySQL and J2ME

    Hello.
    I'm building an application for mobile phones that should get data from an mySQL database.
    I would like to know what's the simplest way to do this. The database will be very small. Can I do this directly, doing a query to the database or I have to use PHP or some kind of servlet?
    In case of servlets, do they need to be installed on the server or they're just those JSP files?
    Thanks for the help.
    Wilian Segatto
    Computer Engineering Student
    UNISINOS University
    S�o Leopoldo - RS - Brazil
    Current Projects:
    -Pervasive game:
    moBIO Threat // Disease Control
    Articles (in Portuguese):
    -Paradigma Imperativo versus Paradigma Orientado a Objetos
    -Linguagem de Montagem

    You're not helping me. yes I am.
    You are basically saying to me
    to look for information on Google.
    No I didn't! But I should have. Your question is very vague.
    Let me try again. Your question is not specific to J2ME. Do you understand that?
    So you can do it one of two ways.
    1) Just a normal web page created with whatever. There is no need for a code sample for this. There are many, many examples and tutorials available.
    2) Create a webservice and access it like that.
    I posted the link to Wikipedia because I wanted YOU to read it and then come back and say if you want a webservice or not. If you don't know what a webservice is than that link explains it.
    Can anyone give me specific directions, please?Please refrain from being rude and unpleasant.
    And .jsp = J2EE?
    JSP is part of J2EE yes.
    >
    >
    Wilian Segatto
    Please DESIST from posting your lengthy signature on everyone of your posts Wilian. Thank you.

  • JNI and J2ME

    Hello all. These days i've been asked to make a little aplication for a PDA and while looking for information about j2me it says jni its not supported. But the app i need to make needs to use some library written in C, and my question is if there is any way o making an application in j2me that can use those libraries.
    Thanks all.

    Yes i've found a compiler for my target platform and compiling and running the C libraries doesnt seem a problem at the time. My main problem is that I can't call them from my java application because jni is not supported and i dont know how to import them.
    Thanks for your answer
    Message was edited by:
    trospito

  • Bluetooth and j2me, a frustrating scenario...

    Hello all,
    I don't want to use propeitory sdk's so I need to get a bluetooth stack working with the wireless toolkit but I am not going to pay for it so I downloaded the stack from javabluetooth.org, but when trying to compile a program which uses the javax.bluetooth package I get an error...
    Error preverifying class org.javabluetooth.distributed.BluetoothTCPServer
        VERIFIER ERROR org/javabluetooth/distributed/BluetoothTCPServer.run()V:
    Cannot find class java/net/SocketI guess j2me api does not include the package socket at all?
    Does anyone have any ideas how to get a bluetooth stack working with j2me?
    Thanks for your time
    poncenby

    the WTK 2.2b is available since June 26 or so.
    To the JSR-82 API: the classes from sun (javax.bluetooth.* and javax.obex.*) are part of the WTK 2.2b and can be used. But remember: to use a bt app on a phone, the phone must support JSR82, not only MIDP and CLDC.
    I am too good for this world. You should check http://java.sun.com/j2me . There can at least 2 articles be found regarding the development of J2ME and Bluetooth, as well as the WTK downloads and many other interesting things ;-)
    here is the link to the WTK 2.2b
    http://java.sun.com/products/j2mewtoolkit/download-2_2.html
    good luck and have fun
    Killer_2001

Maybe you are looking for

  • About This Mac is showing wrong Storage information

    When I look to see how much my App, Movies, Photos, Autos, and Backups the GB being listed is wrong. I have a 120 GB hard drive. My Apps are claiming to be 130.43 gb, Movies at 22.13 gb, Photos 18.48 gb, Audio 1.17 gb, Backups 217.9 mb.  It states th

  • Import numbering question

    I've recently made the migration from Aperture to Lightroom. I was using a referenced workflow in Aperture so it was easy to simply import my folders into LR2.4. My keywords and metadata even came in without the use of sidecar files. My question is a

  • Harddrive noise

    i have bought new hard drive because my older one was damaged. it was making noise like beeping sometimes.  my new hard drive also makes same sometimes beeping and in my task manager sometimes it shows full 100% disk usage, mostaly when i turn on the

  • Trying to open Places freezes Aperture

    I am not able to open Places. Each time I click the icon I get the color wheel of death, after a while I have to Force Quit the program. There are about 6000 photos contained in Aperture, but almost 90% of that number is stored on a separate HDD and

  • Creating TestStand threads from a DLL

    I have a DLL function that creates a thread to maintain a LabWindows/CVI user-interface. I'm interested in having UI events trigger the execution of a sequence in TestStand. In the TestStand API, I can find methods to start a whole new Execution. But