我想为 android 权限创建 Element
<uses-permission android:name="android.permission.INTERNET"/>
我尝试这样的事情:
Element el = new Element("uses-permission", "android:name", "android.permission.);
rootNode.addContent(el);
这会引发异常
Exception in thread "main" org.jdom2.IllegalNameException: The name "android:name" is not legal for JDOM/XML Namespace prefixs: XML name 'android:name' cannot contain the character ":".
感谢您的建议。