Click here to Skip to main content
15,902,198 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionValidation of attributes in combination of other attributes? Pin
mav.northwind8-Sep-08 1:48
mav.northwind8-Sep-08 1:48 
AnswerRe: Validation of attributes in combination of other attributes? Pin
Erik Westermann12-Sep-08 10:29
professionalErik Westermann12-Sep-08 10:29 
GeneralRe: Validation of attributes in combination of other attributes? Pin
mav.northwind12-Sep-08 19:05
mav.northwind12-Sep-08 19:05 
Question&lt; symbols in <xsl:text xmlns:xsl="#unknown"></xsl:text> Pin
danielk_6-Sep-08 4:26
danielk_6-Sep-08 4:26 
AnswerRe: &lt; symbols in Pin
Saul Johnson6-Sep-08 10:43
Saul Johnson6-Sep-08 10:43 
AnswerRe: &lt; symbols in Pin
Michael Dunn9-Sep-08 12:43
sitebuilderMichael Dunn9-Sep-08 12:43 
AnswerRe: &lt; symbols in Pin
Erik Westermann10-Sep-08 4:17
professionalErik Westermann10-Sep-08 4:17 
QuestionNot Able to validate the MSXML Pin
Kuldeep Bhatnagar5-Sep-08 0:30
Kuldeep Bhatnagar5-Sep-08 0:30 
Hi,


While calling the validate method I am getting the following error while validating the XML:
<b>"Validate failed because the document does not contain exactly one root node."</b>

The XMLDOM object i am creating is Msxml2.DOMDocument.4.0

I am having only one root but don't know why this error

Here is my XSD:
<xsd:schema id="XSDSchemaTest" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="DriverDetails">
<xsd:sequence>
<xsd:element name="VendorURLPath" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="DriverCureServerURLPath" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="MD5" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="ProductName" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="DriverVersionInfo" type="xsd:string" minOccurs="1" maxOccurs="1" />
<xsd:element name="ContentWriterInfo" type="xsd:string" minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="Drivers">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Driver" type="DriverDetails" />
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>

And here is the XML :

<?xml version="1.0" encoding="UTF-8" ?>
<Drivers xsd:SchemaLocation="F:\kuldeep\ProjectWork\XMLExtractorMFC\XMLSchema.xsd">
<Driver>
<VendorURLPath123>http://www.yahoo.com</VendorURLPath123>
<DriverCureServerURLPath>http://www.yahoo.com</DriverCureServerURLPath>
<MD5>12345678</MD5>
<ProductName123>abcd</ProductName123>
<DriverVersionInfo>Version No 1.1</DriverVersionInfo>
<ContentWriterInfo>Made By Microsoft</ContentWriterInfo>
</Driver>
</Drivers>

Anyone Please let me know what can be problem with this.

Kuldeep
AnswerRe: Not Able to validate the MSXML Pin
Erik Westermann10-Sep-08 4:28
professionalErik Westermann10-Sep-08 4:28 
QuestionXML transform to SQL by XSL Pin
AndieDu4-Sep-08 16:18
AndieDu4-Sep-08 16:18 
AnswerRe: XML transform to SQL by XSL Pin
led mike5-Sep-08 4:57
led mike5-Sep-08 4:57 
GeneralRe: XML transform to SQL by XSL Pin
AndieDu7-Sep-08 13:47
AndieDu7-Sep-08 13:47 
GeneralRe: XML transform to SQL by XSL Pin
led mike8-Sep-08 5:02
led mike8-Sep-08 5:02 
GeneralRe: XML transform to SQL by XSL Pin
AndieDu8-Sep-08 13:38
AndieDu8-Sep-08 13:38 
QuestionUsing XML to represent parameter data (VST) Pin
Leslie Sanford31-Aug-08 16:41
Leslie Sanford31-Aug-08 16:41 
QuestionGeocoding using google service Pin
mkanna29-Aug-08 6:21
mkanna29-Aug-08 6:21 
AnswerRe: Geocoding using google service Pin
led mike2-Sep-08 5:54
led mike2-Sep-08 5:54 
QuestionSchema and derived types Pin
Russell Jones29-Aug-08 4:56
Russell Jones29-Aug-08 4:56 
AnswerRe: Schema and derived types Pin
Erik Westermann10-Sep-08 4:45
professionalErik Westermann10-Sep-08 4:45 
Questionhow to get XML file. Pin
AtulRane28-Aug-08 19:14
AtulRane28-Aug-08 19:14 
AnswerRe: how to get XML file. Pin
Russell Jones29-Aug-08 4:51
Russell Jones29-Aug-08 4:51 
AnswerRe: how to get XML file. Pin
Michael Dunn29-Aug-08 13:30
sitebuilderMichael Dunn29-Aug-08 13:30 
Question[Message Deleted] Pin
vankayalapati27-Aug-08 19:04
vankayalapati27-Aug-08 19:04 
AnswerRe: how to add event handling in xslt Pin
led mike28-Aug-08 5:11
led mike28-Aug-08 5:11 
QuestionReading values from unformatted xml Pin
indian14325-Aug-08 23:40
indian14325-Aug-08 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.