Hi i wanted to write a pmd xpath ruleset for my following lines of code. Can anyone suggest me the possible experience. I tried from everywhere but not able to write the ruleset for this xml content.
My code is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://ift.tt/nIICcg"
package="com.example.hi"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity android:name="com.example.imageencryption.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
1) I have to find the action tag with the condition that it has attribute android:name and its value is set to my said value.
2) I have to find the uses-sdk tag and find the android:minsdkversion with some fixed value. Any suggestion will be appreciated.
No comments:
Post a Comment