<page number="1" width="2550" height="3300">
<text X="2188" Y="162" Width="162" Height="47" Font="Z@R327A.tmp">3/5/2021</text>
<text X="342" Y="329" Width="308" Height="47" Font="Z@R327A.tmp">Sergio R Aguirre</text>
<text X="2163" Y="332" Width="153" Height="56" Font="Z@R327A.tmp">834.38</text>
<text X="146" Y="424" Width="969" Height="56" Font="Z@R327A.tmp">Eight hundred thirty-our and 38/100 Dollars</text>
</page>
How do you guys read an XML like this?
I do have a sample class but don't know how to use it.
[XmlRoot(ElementName="text")]
public class Text {
[XmlAttribute(AttributeName="X")]
public string X { get; set; }
[XmlAttribute(AttributeName="Y")]
public string Y { get; set; }
[XmlAttribute(AttributeName="Width")]
public string Width { get; set; }
[XmlAttribute(AttributeName="Height")]
public string Height { get; set; }
[XmlAttribute(AttributeName="Font")]
public string Font { get; set; }
}
[XmlRoot(ElementName="page")]
public class Page {
[XmlElement(ElementName="text")]
public List<Text> Text { get; set; }
[XmlAttribute(AttributeName="number")]
public string Number { get; set; }
[XmlAttribute(AttributeName="width")]
public string Width { get; set; }
[XmlAttribute(AttributeName="height")]
public string Height { get; set; }
}