G
Guest
I am reading data out of a relational database and converting the data to XML.
I after I send this data from a web service I am reading the data using
XMLTextReader calls like the following:
if(customerReader.NodeType == XmlNodeType.Element)
if (customerReader.LocalName.Equals("COLUMN1NAME"))
I hate using the colmn names like this (or in a constant).
What I want to do is specify the structure of the XML doc wiht a Schema (or
DTD) and then generate an object model from this. The Schema would have to
match my query i.e. there needs to be easy to add the data.
I would like to call something like.
row = xmldoc.readRow();
String row.COLUMN1NAME();
Any suggestiong on how I can do this?
I after I send this data from a web service I am reading the data using
XMLTextReader calls like the following:
if(customerReader.NodeType == XmlNodeType.Element)
if (customerReader.LocalName.Equals("COLUMN1NAME"))
I hate using the colmn names like this (or in a constant).
What I want to do is specify the structure of the XML doc wiht a Schema (or
DTD) and then generate an object model from this. The Schema would have to
match my query i.e. there needs to be easy to add the data.
I would like to call something like.
row = xmldoc.readRow();
String row.COLUMN1NAME();
Any suggestiong on how I can do this?