Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading XML into a property/member of class?
Message
From
16/03/2010 16:47:26
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Loading XML into a property/member of class?
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01454941
Message ID:
01454941
Views:
71
Hi,

What type of property or member in a class I should/could use to populate values from and XML file of the following (sample) content:
<?xml version="1.0" encoding="utf-8" ?>
<rules>
	<field>
		<fld_name>ColumnName1</fld_name>
		<def_value></def_value>
		<req_entry>True</req_entry>
	</field>
	<field>
		<fld_name>ColumnName2</fld_name>
		<def_value></def_value>
		<req_entry>False</req_entry>
	</field>	
</rules>	
I should be able to later to scan through the values of this member (array or list or whatever) checking the values.

TIA.

Update: Just as I posted this message I thought about loading this XML into a dataset member of the class. Unless someone suggests a better approach, I think I will go with a dataset.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform