Google Answers Logo
View Question
 
Q: Identifying Duplicate Xml Elements with XmlValidating Reader ( No Answer,   0 Comments )
Question  
Subject: Identifying Duplicate Xml Elements with XmlValidating Reader
Category: Computers > Programming
Asked by: kingtiny9-ga
List Price: $10.00
Posted: 04 Jul 2004 19:01 PDT
Expires: 03 Aug 2004 19:01 PDT
Question ID: 369694
Consider the XML document at the following location.

http://www.w3.org/2000/10/rdf-tests/rdfcore/rdf-containers-syntax-vs-schema/test008.rdf

I am using the .NET XmlValidatingReader [1] and I need to be able to
distinguish between the two XML rdf:description elements in the
documents.

If I was using the XmlDocument [2] then each XML element would be
represented by a different XmlNode object the address of which I could
store in a HashTable and then use that address value to determine
whether the element was one that had previously been encountered.

However with the XmlValidatingReader (a streaming parser) I cannot
programatically determine whether an element was previously
encountered.

Maybe this feature is not supported by the .NET XmlReader.

[1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmlvalidatingreaderclasstopic.asp

[2] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxmlxmldocumentclasstopic.asp
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy