xdocument parsing C# specific fields
hey guys im trying to parse a xml document . i have attached the xml
schema for that
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema attributeFormDefault="unqualified"
elementFormDefault="qualified" version="1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="ArrayOfCourse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Course">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="codeField" type="xsd:string" />
<xsd:element name="semesterField" type="xsd:string" />
<xsd:element name="titleField" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
im trying to choose the course name, course id, and the semester taught
im lost on how to using choose specific fields for every course
do i loop through every elements and store those into strings?
No comments:
Post a Comment