[xsl] Validate XSD

Subject: [xsl] Validate XSD
From: "Sachidanandam E.K" <sachidanandam.kumaraswamy@xxxxxxxxxxxxxx>
Date: Tue, 15 May 2001 20:51:16 +0530
Hi there,
   I had a XSD file and a XML file like below. I want to validate it. Once I
am trying for it. I am geting a error. Help me out..

HELPInfo.xml

<VIMHelp xmlns="x-schema:VIMHelpSchema.xml">
 <HelpInfo>
  <HelpID>HID_FILTERDIALOG</HelpID>
  <FileString>dhtmlTree.chm::/FilterDialog.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_CHECKUPDATES</HelpID>
  <FileString>dhtmlTree.chm::/CheckUpdates.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_CHOOSE VIM ITEM</HelpID>
  <FileString>dhtmlTree.chm::/ChooseVIMItem.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_SUBMITVIMATOM</HelpID>
  <FileString>dhtmlTree.chm::/SubmitVIMAtom.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_CONFIRMUPGRADE</HelpID>
  <FileString>dhtmlTree.chm::/Confirmupgrade.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_GENERAL HELP</HelpID>
  <FileString>dhtmlTree.chm::/GeneralHelp.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_NEWVIMPROJECT</HelpID>
  <FileString>dhtmlTree.chm::/NewVIMProject.htm</FileString>
 </HelpInfo>
 <HelpInfo>
  <HelpID>HID_COMPONENTATOMPROPERTIES</HelpID>
  <FileString>dhtmlTree.chm::/ComponentAtomProperties.htm</FileString>
 </HelpInfo>
</VIMHelp>

VIMHelpSchema.xsd

<xsd:schema id="VIMHelpSchema"
targetNameSpace="http://raghavapc/VIMHelpSchema.xml";
xmlns="http://raghavapc/VIMHelpSchema.xml";
xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
 <xsd:complexType name ="HelpInfo">
  <xsd:sequence>
  <xsd:element name="HelpID" type="xsd:string"/>
  <xsd:element name="FileString" type="xsd:string"/>
  </xsd:sequence>
 </xsd:complexType>
</xsd:schema>

Error which I am geting

Error opening the input file VIMHelpSchema.xml . Incorrect defenition for
the root element in schema.
Line 2 position 46.

Looking for help..

Cheers!!
Sachi




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread