我的问题是 Xml 文件,要查看:这是行不通的。
IEnumerable<XElement> stepsList = doc.Elements();
XML 文件
<OneGoal>
<Goal>100000</Goal>
<StepOne>ewewewe</StepOne>
<StepTwo>wee</StepTwo>
<StepThree>MY</StepThree>
<StepFour>wwwww</StepFour>
<StepFive>ddddw</StepFive>
<StepSix>fcd</StepSix>
<StepSeven>blblblfl</StepSeven>
<StepEight>z dwadddddsssssssssssss</StepEight>
<StepNine>radwds</StepNine>
<StepTen>
blblblblblblb
</StepTen>
<DateDay>18</DateDay>
<DateMonth>7</DateMonth>
<DateYear>2019</DateYear>
</OneGoal>
我想要所有元素到 IEnumberable 。早些时候,所有元素都有名称“步骤”。