Re: [Mono-list] XML reading problem

2013-03-13 Thread Daniel Lo Nigro
This sounds like a job for the XML serializer (eg. http://geekswithblogs.net/TimH/archive/2006/02/09/68857.aspx). You should be able to use an XML deserializer (either the standard .NET one or a custom one) to parse your XML into objects. Mapping XML to objects is pretty common and a XML deserializ

Re: [Mono-list] XML reading problem

2013-03-13 Thread Ian Norton
Have you tried XmlDocument? On Wed, Mar 13, 2013 at 03:58:57PM +, Paul Johnson wrote: > Hi, > > Got a small XML issue I could do with some help on. > > I have an XML file that looks like this > > > Girly > Girl > ... > > > The GirlRecord can contain upto 50 different fields - it doesn't

[Mono-list] XML reading problem

2013-03-13 Thread Paul Johnson
Hi, Got a small XML issue I could do with some help on. I have an XML file that looks like this Girly Girl ... The GirlRecord can contain upto 50 different fields - it doesn't have to contain all of them (so a record with 26 fields is fine). I have a containing class which looks like this