There is an error in XML document (1, 2).
I used XML spy to create the XML and XSD. When I asked to
have the XML validated it said it was OK.
I used the .net SDK to generate the class. I have done
this before but this time I have no idea why I am getting
the error. Any ideas ?? THANKS !
<qcsttatus>
<manual sourcerootfolder="" manualname="">
<pmainfo pmapath=""/>
<stateaction qcdate="" qcwho=""/>
</manual>
<manual sourcerootfolder="" manualname="">
<pmainfo pmapath=""/>
<stateaction qcdate="" qcwho=""/>
</manual>
</qcsttatus>
This is my class that was generated:
//---------------------------------------------------------
---------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.0.3705.209
//
// Changes to this file may cause incorrect behavior
and will be lost if
// the code is regenerated.
// </autogenerated>
//---------------------------------------------------------
---------------------
//
// This source code was auto-generated by xsd,
Version=1.0.3705.209.
//
namespace qcstatus
{
using System.Xml.Serialization;
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute(Namespac e="",
IsNullable=false)]
public class manual {
/// <remarks/>
public pmainfo pmainfo;
/// <remarks/>
public stateaction stateaction;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string sourcerootfolder;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string manualname;
}
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute(Namespac e="",
IsNullable=false)]
public class pmainfo {
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string pmapath;
}
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute(Namespac e="",
IsNullable=false)]
public class stateaction {
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string qcdate;
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string qcwho;
}
/// <remarks/>
[System.Xml.Serialization.XmlRootAttribute("qcsttat us",
Namespace="", IsNullable=false)]
public class qcsttatus {
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute
("manual")]
public manual[] manual;
}
}