Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问一下 你是怎么解析Android字符串xml文件的? #3

Open
xiaohuajian opened this issue Aug 25, 2019 · 0 comments
Open

Comments

@xiaohuajian
Copy link

xiaohuajian commented Aug 25, 2019

想问一下 你是怎么解析Android字符串xml文件的?
string name="a">1</string
string name="b">2</string
Android字符串都是这种,不是标准的xml;我只能拿到 name的值(key),拿不到 1 和 2(value);如果格式是
string name="a"
value >1</value
/string

就可以拿到 key 和value 得到 a = 1。请问你是怎么解决的?是拆分字符串吗?有没有比较优雅的办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant