We define a custom xmpp message format like this " app nameabc<app_version>1</app_version>.
I can see the complete xmpp response message from Smack Debug Log, but when I try to parse <app_version>1</app_version> custom extension via stanzalistener, I can only obtain element name, but I was not able to get the value of 1.
I found some discuss from forum or stackoverflow, the custom element should be define as
- “<app_version>1</app_version>” --> get value from element.toXML and parse it
- "<app_version xmlns=‘app_version:version’ value=‘1’/> --> get value from attribute
when I change the format to above two format then I can get what I want
my question will be: is other way to get the value without change the custom extension format?