Questions tagged [kxml2]

kxml2 is a parser for converting WBXML to KML and KML to WBXML

kxml2 is a java parser for converting WBXML to KML and KML to WBXML.

WAP Binary XML (WBXML) is a binary representation of XML. It was developed by the WAP Forum and is now maintained by the Open Mobile Alliance as a standard to allow XML documents to be transmitted in a compact manner over mobile networks

kxml2 can be downloaded from http://kxml.org/.

Beginner tutorial can be found here Blog.

26 questions
7
votes
3 answers

ArrayIndexOutOfBoundsException in android's KXmlParser

I am doing regular XML parsing on android, and very rarely I get this exception and only on particular phones. Haven't been able to get to the root of this issue. Does anybody have an idea what might be causing this? …
isneesh
  • 436
  • 5
  • 5
4
votes
1 answer

Parsing an XML string into a kXML Element

I'm writing an Android app that connects to a SOAP webservice using kSOAP2, and I have a kXML element where I would like to inject a child based on an XML string I got from elsewhere (a REST API). I have the following code: Element samlHeader = new…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
3
votes
1 answer

XML parsing not working on android build of lwuit app

I use Kxml2 parser to parse the xml response I get as a response from a remote page. It is for user authentication, and the returned xml gives several details about the user. The app is built with LWUIT 1.5 and it works on MIDP and Blackberry…
Daydah
  • 372
  • 7
  • 20
3
votes
1 answer

XmlPullParserException parsing attribute that contains entity

I'm using kXML2 on a legacy JavaME project. I'm receiving an XML where some attributes contain encoded entites. When I retrieve that attribute value with the call: parser.getAttributeValue It throws an Exception: XmlPullParserException:…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
2
votes
1 answer

How to consume ASP.NET Web API from a Java ME Application

I have created a java ME application (prototype) and now I need to consume my WEB API service from a MIDlet. First of all, is it possible to consume Web API services from MIDlets?? I have converted my WCF to Web API just so that I can make my J2ME…
Axel
  • 1,674
  • 4
  • 26
  • 38
2
votes
5 answers

How do I get kXML to work?

I'm trying to implement an existing XML parser: kXML. I ran into the following error: java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException at com.sun.midp.midlet.MIDletState.createMIDlet(+29) at…
hsmit
  • 3,906
  • 7
  • 34
  • 46
1
vote
1 answer

kxml2 to parse xml file on blackberry

I want to get data in my BlackBerry app from an xml file. I reseach and see that using kxml2 is the best choice. But I can not find example code for it on Blackberry. I open kxml2.jar, I see xmlParser and kxmlParser, which one should I use? Can…
1
vote
0 answers

No Class Defined Error In J2Me

I developed an app in j2me which is working fine in default emulator. I added 3rd party library in this app but I'm facing a problem when I try to deploy it in device(Mobiles) . I get an error of Undefined Exception. Please help me to solve it.
Tufan
  • 2,789
  • 4
  • 34
  • 52
1
vote
2 answers

How to edit an XML file in JavaME using kXML?

kXML is an alternative XML parser I chose to use for JavaME apps. The XML file to be editted is inside the mobile app's own JAR. I'm using CLDC profile. Please help
cancelledout
  • 538
  • 1
  • 10
  • 24
1
vote
1 answer

j2me: How to parse a byte array into xml and then read and display specific data from that XML

I'm consuming a ASP.NET Web API method that returns data in xml format. Everything was fine until I had to parse the byte array I got ,resulting from the openInputStream. Everyone says use this or that library,but unfortunately there isn't much…
Axel
  • 1,674
  • 4
  • 26
  • 38
1
vote
1 answer

Kxml2 How to convert xml to wbxml?

I have configured the tag_tables. But the issues it that conversion is not happening for the namespaces. Any help?
jindal
  • 248
  • 1
  • 2
  • 7
1
vote
2 answers

to read XML file from phone/card memory instead from .jar file in J2ME

i can parse an xml file when it is added to the resource using InputStream in = getClass().getResourceAsStream("/data.xml"); KXmlParser parser = new KXmlParser(); parser.setInput(new InputStreamReader(in)); But i need to know how to read the xml…
Sin
  • 1,836
  • 2
  • 17
  • 24
0
votes
1 answer

kxml2 parsing error org.xmlpull.v1.XmlPullParserException

I have following xml structure:
olegk
  • 765
  • 4
  • 13
0
votes
0 answers
0
votes
1 answer

Show loading form while parsing XML in J2ME

I am parsing xml from remote server using kxml parser. I am using the following code to parse xml public void validateUser(String name, String password, String mobile, String code) { Display.getDisplay(parent).setCurrent(new…
Abdullah Md. Zubair
  • 3,312
  • 2
  • 30
  • 39
1
2