我主要是在j2me上用,就是硬件环境有可能很苛刻,
所以找了一个kxml的包!
可是苦于没有例子,所以上网来向大家咨询咨询的!

解决方案 »

  1.   

    According to the Javadoc it provides, you can use its pull-based parser to parse XML document. The package org.kxml.parser will solve your question. As for XML creation, currently kXML seems only support hard-code-liked XML compose. The package org.kxml.io will help you. In a word, it will force you to write element and attribute like this:1. <
    2. <xyz
    3. <xyz>Of course there are better solution by kDOM, a JDOM's child in kWorld. But currently the kDOM only remain its optional state in kXML. To use or not, that's your choice.