how to parse wbxml file with xml namespace using kxml/kxml2 parser or which is the best parser to work with j2me midp.
for example xml file with namespace:
<?xml version="1.0" encoding="utf-8"?>
<Sync xmlns="AirSync:" xmlns:A="CONTACTS:">
<Collections>
<Collection>
<Class>Contacts</Class>
<SyncKey>{6A374473-D63E-45FA-8556-129C8C1C3CFA}11</SyncKey>
<Status>1</Status>
<Commands>
<Add>
<ServerId>rid:01c133474e27d04faba48d02078cf41d00000090e129
</ServerId>
<ApplicationData>
<A:FileAs>Mouse, Mickey</A:FileAs>
<A:FirstName>Mickey</A:FirstName>
<A:LastName>Mouse</A:LastName>
<A:BusinessPhoneNumber>(425) 555-1212</A:BusinessPhoneNumber>
</ApplicationData>
</Add>
</Commands>
</Collection>
</Collections>
</Sync>

Reply With Quote

