Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
353 views
in Technique[技术] by (71.8m points)

.net - What ever happened to XPathReader

XPathReader is/ was an implementation of a forward reading XML parser (built on XMLReader) which allowed you to register XPath queries for it to find (or at least a subset of XPath called Sequential XPath). This seems to be the perfect choice for easy access to elements of xml streams, or case where you just need to pull some information out of the start of a large xml document and therefore don't want to load the whole thing into memory.

There seemed to be a flurry of excitement about the open source implementation that one of the MS guys was releasing back in 2003/ 2004, eg:

http://donxml.com/allthingstechie/archive/2004/02/26/430.aspx

http://msdn.microsoft.com/en-us/library/ms950778.aspx

http://www.tkachenko.com/blog/archives/000472.html

But after that the trail seems to dry up. The references to where the implementation was hosted (http://workspaces.gotdotnet.com/xpathreader) no longer seem to work. Does anyone know what happened to it, and why the interested disappeared?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

XNode.ReadFrom combines the power (and supported status) of Linq to XML with the ability to process a stream rather than loading the entire file into memory

http://msdn.microsoft.com/en-us/library/system.xml.linq.xnode.readfrom.aspx


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...