验证AndroidManifest.xml文件 [英] Validating AndroidManifest.xml file

查看:180
本文介绍了验证AndroidManifest.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Java SE应用程序了,分析Android应用程序。

I am working on a Java SE applicaiton that analyzes android applications.

有没有可用于验证AndroidManifest.xml中的任何架构/ DTD?
如果发现命名空间定义,如:

Is there any schema/DTD that can be used to verify an AndroidManifest.xml? If found namespace definitions like:

xmlns:android="http://schemas.android.com/apk/res/android"

但schemas.android.com不能解决一个acutal主机所以没有模式文件有: - (

But schemas.android.com does not resolve to an acutal host so no schema file there :-(

请注意:我做的不可以想做Android上的验证作为一个平台

Note: I do not want to do the validation on Android as a platform.

推荐答案

有Android的XML ,你必须relly其他工具,可以做验证,例如像没有DTD /模式纳雷什说。

There are no DTD/schemas for Android XML, you have to relly on other tools which can do the validation, for example like Naresh explains.

另请参阅<一个href=\"http://stackoverflow.com/questions/605325/where-are-the-schemas-for-xml-files-on-an-android-project\">\"Where对于XML文件的架构上的Andr​​oid项目?

这篇关于验证AndroidManifest.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆