This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Validate XSD
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Validate XSD
- From: "Sachidanandam E.K" <sachidanandam dot kumaraswamy at kla-tencor dot com>
- Date: Tue, 15 May 2001 20:51:16 +0530
- References: <20010515140721.12076.qmail@web12606.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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