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?