Re: How do I determine if a element exists in an xml file?
- From: stcheng@xxxxxxxxxxxxxxxxxxxx (Steven Cheng[MSFT])
- Date: Wed, 01 Aug 2007 03:12:25 GMT
Hi cj
As for the response XML document, does it have fixed schema or structure
or will the target elements you want to detect/verify always have some
fixed attributes(such as location in the document or have certain attribute
values ...). If so, I think using XPATH query to locate XML element in a
XML document is the reasonable approach. Here are some web articles
introducing using xpath query in .NET xml processing:
#INFO: Roadmap for Executing XPath Queries in .NET Applications
http://support.microsoft.com/kb/313828
#.NET and XML: XPath Queries
http://www.developer.com/xml/article.php/3383961
#.NET and XML: Part 1¡ªXPath Queries
http://www.codeguru.com/csharp/csharp/cs_misc/designtechniques/article.php/c
7589/
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Prev by Date: Re: Resize a .NET form
- Next by Date: Re: Version Numbering
- Previous by thread: Problems with Windows Server 2003
- Next by thread: Re: How do I determine if a element exists in an xml file?
- Index(es):
Relevant Pages
|