|
Email lists >
>
[aspnet-architecture] Question Regarding Reading XML String >
[aspnet-architecture] Question Regarding Reading XML String
[aspnet-architecture] Question Regarding Reading XML String
This post if a part of this thread
|
2007-04-25 12:30:47 |
|
|
Question Regarding Reading XML String
|
Hello,
I have a question I cannot decide which one of these options
I opt.
Please help me in identifying with pros & cons in terms
of usability,
performance, strategic solution
I getting a XML String from a web service method which I
need to
validate and read values in C#.
Sample XML:
<people>
<FirstName>ABC</FirstName>
<LastName>ABC</LastName>
<CurrentlyAvialableInd>Y</CurrentlyAvialableInd&
gt;
<PeopleAddress>
<Add1>Main Street</Add1>
</PeopleAddress>
<PeopleAddress>
<Add1>Milk Street</Add2>
</PeopleAddress>
<AvialableInfo>
<when>10-2</when>
<where>CA</where>
<how>via e-mail</how>
<AvialableInfo>
.
.
.
</people>
The 3 options are:
1. Use XSD for validation and XPath Query for reading the
data
2. Only Use XPath for Validation and Reading
3. Use ReadXML method of Dataset.
Please, before jump to a conculsion, consider these points:
1. The XML I am getting is not normalized means I have a
same
child node in the root node for e.g.
"PeopleAddress" node
2. It is a big XML file which I am interested in few nodes
3. If "CurrentlyAvialableInd" element value is
"N" then
"AvialableInfo" Node do not exist.
I really appreciate any response.
Thanks in advance,
Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com
|
|
|
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|