P
PablitoCarmelito
Guest
Hi I am very new to C# and have very little other development experience so please don't beat me up too bad. Also please talk on a 5th grade level I am very inexperienced.
I have an XSD generated class for the XML file I am trying to read with that class. The problem is this XML has a root node named "System" this is causing errors in the code generated by XSD. Is there any way I can encapsulate that "System" from the protected word System?
Thank you in advance for any advice you can offer me.
Paul
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by xsd, Version=4.8.3928.0.
//
using System.Xml.Serialization;
namespace XML_Test {
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class System {
private SystemFileHeader fileHeaderField;
private SystemPhysicalTree physicalTreeField;
private SystemGeographicTree geographicTreeField;
private string typeField;
private decimal versionField;
/// <remarks/>
public SystemFileHeader FileHeader {
get {
return this.fileHeaderField;
}
set {
this.fileHeaderField = value;
}
}
/// <remarks/>
public SystemPhysicalTree PhysicalTree {
get {
return this.physicalTreeField;
}
set {
this.physicalTreeField = value;
}
}
Continue reading...
I have an XSD generated class for the XML file I am trying to read with that class. The problem is this XML has a root node named "System" this is causing errors in the code generated by XSD. Is there any way I can encapsulate that "System" from the protected word System?
Thank you in advance for any advice you can offer me.
Paul
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by xsd, Version=4.8.3928.0.
//
using System.Xml.Serialization;
namespace XML_Test {
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
public partial class System {
private SystemFileHeader fileHeaderField;
private SystemPhysicalTree physicalTreeField;
private SystemGeographicTree geographicTreeField;
private string typeField;
private decimal versionField;
/// <remarks/>
public SystemFileHeader FileHeader {
get {
return this.fileHeaderField;
}
set {
this.fileHeaderField = value;
}
}
/// <remarks/>
public SystemPhysicalTree PhysicalTree {
get {
return this.physicalTreeField;
}
set {
this.physicalTreeField = value;
}
}
Continue reading...