You are on page 1of 34

XML MODULE-VER1.

0
18th LIVESTOCK CENSUS 2007
User Manual
Pre requisite

1. Name of the machine is serverdadf - no need to change if already exist.
2. .NET Framework- 2.0.50727
3. SQL Server database LStock - Don’t Touch if present, or download it from“http://dahd.nic.in/Lstock.htm”
4. SQL Server database LStockhh-Don’t Touch if present, or download it from“http://dahd.nic.in/Lstock.htm”
5. Temporary database structure is Temp_Lstock - download it from “http://dahd.nic.in/Lstock.htm”
6. Temporary database Temp_Lstockhh - download it from “http://dahd.nic.in/Lstock.htm”
Installation Process of Software

1 Download the software from http://dahd.nic.in/Lstock.htm under the heading “XML Module ver1.0,
incorporating Generating/Validations/Verifications/Restorations/Merging XML files of Quick/Village and
Detailed/Household module” or copy it from CD.

2 Double click the “XML_18LCv1.0” folder .The following screen appears
Then double click the debug folder. The following screen appears:
You will find the setup.exe folder click that folder in order to install the software.
When you double click the setup.exe the following screen is displayed
Then click “Next” button. The following screen is displayed:
Then click “Next” button. The following screen is displayed
Then click “Next” button for further processing. The following screen is displayed. It will ask you to
confirm your installation.
Then click next to start the installation. The following screen is displayed:
Finally click “close” button to complete the installation.
Now the XML software is installed and you can see the “XML_18LCv1.0” shortcut on the desktop from
where you can start your XML Module of 18th livestock census as:

Click here for running
the software for XML
Generation and
Restoration
Double click the shortcut on Desktop. The following screen is displayed:

Kindly Click for
either executing
Detailed/Quick
software for XML Kindly Click for either
Generation and executing
Restoration Detailed/Quick
software for XML
Generation state wise
All India XML and
District Wise State
XML

There are two links in the above form with following given names:-
1. XML-Module-Quick-Tabulation-Village Level 1.0- for executing Quick Module- village level data
2. XML-Module-Detailed-Tabulation-Village Level 1.0 - for executing Detailed Module – household
data.
* Click any one link
3. After clicking button “XML-Module-Quick-Tabulation-Village Level 1.0” following form will
appear:-

Kindly Select an
appropriate Action
i.e ,Generating or
Restoring XML
File.
After selecting “Generate XML” we have an option to generate xml file at different levels which is given in
the following form:-

Kindly select
appropriate action
i.e., “state wise” at
state level,
“District Wise” at
District Level,
“Tahsil Wise” at
Tahsil level, and
“Town Wise” at
town Level.

Please select the appropriate Option, accordingly where you are working
• If you are working at State level kindly select “State Wise” option
• If you are working at District level kindly select “District Wise” option
• If you are working at Tahsil level kindly select “Tahsil Wise” option
• If you are working at Town level kindly select “Town Wise” option
Warning:--
If you will not select any of the options i.e. (State/District/Tahsil/Town Wise) according to your Level
then it is difficult to generate Xml files properly. So select any one of the options according to your Level.
Here “Level” indicates if you are working in “State” then you will be considered as “State Level” for
that you have to select “State Wise” Option, Similarly if you are working in “District” then you have to select
“District Wise” Option, If you are working in “Tahsil” then you have to select “Tahsil Wise” and If you are
working in “Town” then you have to select “Town Wise” Option.

Note:-
Please follow the above given instruction properly to get Optimum Result.

If you select “Generate XML” respectively at the state level by selecting the option “State Wise” Then the
following form will appear:-

Kindly Click to
Validate Your
Data in Database.

In this you will find a button named “Please Click To Validate your Data!”, Then click this Button to
validate your database accuracy, After clicking this button the whole database will be checked and if there is
any discrepancy in your data a message will be displayed regarding the data discrepancy and if there is no
problem in data then you will get the screen for “state wise” XML generation.
The following screen appears, if no discrepancy occurs:

Kindly Enter your
Respective State
code.

Here enter your state code and click “Generate XML” button
If you find any error in the data then the following screen will appear with the discrepancy message of data:--

Kindly Click yes
for watching the
discrepancies in
Data.

The Message is “Sorry your data is Incorrect, Data can not be generated. Do you want to see your
incorrect data”? Then Click “Yes” to see your Data discrepancy otherwise click “No” if you don’t want to
se your discrepancy or incorrect data.
If you click “Yes” then the following screen will appear related to the data discrepancy according to the
software:--

Kindly Click for
Invalid State code Kindly Click for Kindly Click for Kindly Click for
related Invalid Repeated Invalid Invalid Orphan
Discrepancy Records related Rural/Urban Records related
Discrepancy related Discrepancy
Kindly Click for Discrepancy
Invalid State code
related
Discrepancy

You will find five types of errors that are given below:-
(1)Invalid state Code
(2)Repeated Records (Duplicate Records
(3)Discrepancy regarding Rural/Urban
(4)Orphan Records (Without Master code)
(5)Discrepancy regarding Tahsil code Ward code either zero or non zero
(1) Invalid State Code:-
If “State code” is not in the range of “01 to 35” then “Invalid State Code error will
be shown after clicking the “Invalid State code” Button.

Click any Species
to get the related
Discrepancy

And respective species will be displayed where state code is wrong and when you click one of the specie the
following table is displayed along with the error regarding state code
The following screen will be displayed:-

Respective Species
Discrepancy will
be shown in the
grid format.

(2)Repeated Records (Duplicate Records):-
If more than one same records i.e., Duplicate records are available respective to
any of the species (Buffalo, camel, cattle, etc...) then that would be shown after clicking the “Repeated
Records (Duplicate Records)” Button.

(3)Discrepancy regarding Rural/Urban:-
There are two conditions related to “Discrepancy regarding rural/urban” and
must not be violated at any cost i.e., here data must be entered according to the given conditions:-
(a) If “Village code” starts with “0%”for ex: “01000100” then “Ward Code” must be “0000” and
“Tahsil_code” must have some value for ex: “0001”.

(b) If “Village code” starts with “4%” for ex: “40101010” then “Tahsil_code” must be “0000” and “Ward
code” must have some value for ex: “4321”.

(4)Orphan Records (Without Master code):-
It indicates the discrepancy in data which is not according to the software. If you click this
button then six links will appear described below in the following screen:-

Six Links

• Breed wise:-It indicates that the entered breed code is not valid or correct i.e. invalid breed code
respective to its species. So if any incorrect breed code is entered then it is shown after clicking on the
“Breed Wise” button.
• District Wise: - If “District code” will be not available in the database in respect of the given “State
code” then the errors would be shown after clicking the “District Wise” Button.

• Tahsil Wise:- If “Tahsil code” will be not available in the database in respect of the given “State
code”,” District code” then the errors would be shown after clicking the “District Wise” Button.

• Village Wise:- If “Village code” will be not available in the database in respect of the given “State
code”, “District code”, “Tahsil code,” then the errors would be shown after clicking the “Village Wise”
Button.

• Town Wise: - If “Village code” will be not available in the database in respect of the given “State code”,
“District code” then the errors would be shown after clicking the “Town Wise” Button.

• Ward Wise:- If “Ward code” will be not available in the database in respect of the given “State code”,
“District code”, “Town code”, then the errors would be shown after clicking the “Ward Wise” Button.

(5)Discrepancy regarding Tahsil code Ward code both Zero or non Zero: It will show those records
which are not valid. The records are invalid if they didn’t satisfy the following two conditions:-
• RURAL RECORD:
The tahsil code should be of “4 digits”, village code should be of “8 digit” and start from “0”
and ward code is of”0000”.

• URBAN RECORD:
The tahsil code should be “1000”, village code should be of “8 digit” and start from “4 digit”
and ward code should be of “4 digit”.
The following screen is displayed after clicking” Discrepancy regarding Tahsil code Ward code both Zero
or non Zero:”
Restore XML

If you select “Restore XML” respectively at the state level by selecting the option “District Wise” Then the
following form will appear:-

Kindly Click to
merge your XML
file for District
Wise

In this you will find a button named “Please Click To merge your XML file for District”, when you click
this button all the data will be merged and if old file already exist, a message box will appear stating “File
already exist with name 01_livestockhh.xml into the folder c:\detailed_distmerg and will be deleted for
new merged XML file with the same name”.
When the data is merged then the following screen is displayed along with the message box stating “All
Tahsil and Town files are merged successfully in a single file with name 01_08_livestockhh.xML
into the folder c:\Detailed_distmerg folder, Now you can restore it!”.

After Merging the
Following
Message will be
shown.
When all the data is merged then screen of validation will appear.
The following screen is displayed:

Kindly Click for
Validate Your
XML Data

Here click “please click to validate your data” and then your merged xml file will be validated and if
there would be any error then the “data discrepancy Form” will appear and show the discrepancy in
the data as described above.
But if there is No error then the Restoration form will appear.
The “District Wise” restoration form is given below:

Enter Here State Click to Restore
code. XML File in
Database
Enter Here
District code.

Now, here please enter your state code and respective district code and then click the
“Restore XML” button to restore the file.
Similarly for “Tahsil wise” following screen will come:-

Enter Here State
code. Click to Restore
XML File in
Enter Here Database
Enter Here Tahsil code.
District code.

Here enter the state code, district code and respective tahsil code and then click the restore button.
Similarly following screen will appear for the town wise restoration:-

Enter Here State
code. Click to Restore
XML File in
Enter Here Database
Enter Here Town code.
District code.

Here please enter the respective state, district and town code .then click the “Restore xml” button
and your data will be restored in your database.
Generate state wise all India
xml and district wise state xml
for Quick
Select An
Appropriate
Action for
Generating XML
either State Wise
All India XML
or District Wise
All India XML

• Click State Wise All India XML to Generate XML of all States.
• Click District Wise All State’s XML for Generating XML district Wise of Respective State.
Click Here to
Generate State
Wise All India
XML Files.

• After Selecting StateWIse All India XML Option The Button With Name “Click To Generate
StateWise All India XML” Will appear.Click This Button to Generate XML file For all States
.

The Message
Will Appear
after generating
the File of every
state.

Here the Xml will be generated in the folder “C:\Quick_Statewise_xml” with the file name respective to there
state code. Such as Jammu & Kashmir file will be generated with the file name ”01_livestock.XML”.
Select Your
Respective
Click to State .
Generate District
Wise All States
XML File.

• If we will select “District Wise all States XML” and any State then a button will Appear with Name
“Click to Generate District Wise All States XML File” Click it to Generate all Districts XML file for
the selected State.
The Message will appear after
generating District Wise XML
of the related State.

• The Message will appear after generating every district wise XML for related State.
• According to message the file will be generated in the folder with name of respective state code
Such as jammu kashmir state code is “01” then “01” folder will be created and an xml file will be
generated in that folder with name “01_livestock.XML”.Similarly all files will be created with them
repective state code named folder.