No Schema or DTD associated....
Posted: Mon Nov 03, 2014 7:30 am
Hi all,
I am trying to validate my xml schema and it's not working. The error that keeps coming up is "There is no schema or DTD associated with this document..." I am trying to validate it against an xsd document. This is for a project at my university and I am in the process of learning xml, but I can't get past this. Please help me! Many many thanks in return!
I am trying to validate my xml schema and it's not working. The error that keeps coming up is "There is no schema or DTD associated with this document..." I am trying to validate it against an xsd document. This is for a project at my university and I am in the process of learning xml, but I can't get past this. Please help me! Many many thanks in return!
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="PoliticalLeader.xsd" media="screen"?>
<report> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<report>Tracking Report</report>
<Country>
<countryname>Pakistan</countryname>
<Leader>
<leadername>Nawaz Sharif</leadername>
<role>Prime Minister</role>
<party >Democratic Islamic Party </party>
<Messge>
<messageid>1</messageid>
<code>3</code>
<info>Build more parks inside Pakistan to improve conditions </info>
</Messge>
</Leader>
</Country>
<Country>
<countryname>United States</countryname>
<Leader>
<leadername>Condoleeza Rice</leadername>
<role>Secretary of State</role>
<party>Republican Party</party>
<Messge>
<messageid>2</messageid>
<code>1</code>
<info>Making more parks won’t help any living conditions and it is pointless to do so. </info>
</Messge>
<Messge>
<messageid>3</messageid>
<code>2</code>
<info>Fund Pakistan’s plan to build more parks in their country </info>
</Messge>
</Leader>
</Country>
</report>