473,666 Members | 2,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XPathReader bug?

I am using XPathReader 1.1, a free download:

http://msdn2.microsoft.com/en-gb/library/ms950778.aspx

....I am building C# on 64bit Windows 2k3, and I am having problems when I
use the XmlPathCollecti on.Add() method **after** I have already started using
"ReadUntilMatch ()." Basically, all XPath expressions added dynamically this
way "after the fact" wil fail to match, unless they are EXACTLY of this form:

//<child>

So, it will fail if I do any of these:

//<child>/<grandchild>
//@<attribute>
../<child>

I thought perhaps there is some kind of "re-initialize" method I need to
call, but I can't find any such thing (nor does the literature suggest it).
I've also tried both forms of the XmlPathCollecti on.Add() method, one that
takes a string and the other a XmlPathQuery. Anyone run into this problem
before?

Nov 21 '06 #1
0 1136

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5479
by: Bnaya Eshet | last post by:
I do like XPath, I really do. But I'm working on the compact framework which XPath is not included. So I come to understanding that if XPath do not come to the mountain,
1
1102
by: Steve Taylor | last post by:
I've got a custom XPathNavigator that encapsulates a stream. I'm using xpath expressions to seek forward to various positions within the stream. Using a limited set of xpaths, I can get my stream to move forward only (no backward seeks). This works fine until a filter expression is introduced, at which point the entire stream is read before the first selection is returned. I've traced the problem to the System.Xml.XPath.MergeFilterQuery...
2
2070
by: JerryShea | last post by:
My program runs out of memory when I do this: string filename = @"large.xml"; XPathDocument doc = new XPathDocument(filename); XPathNavigator nav = doc.CreateNavigator(); XPathNodeIterator iterator = nav.Select("//items/item"); while (iterator.MoveNext()) { .... }
1
1613
by: CodeMonkey | last post by:
Hi, I am reading values from an Xml file using XPathDocument / NodeIterators etc. My question is, is it possible to retrieve the XML for a node as a string so that i can use XML Serialization to instantiate an object from the XML Fragment returned WITHOUT using XmlDocument which loads the whole file?
1
1566
by: Damon Allison | last post by:
Hello, My program is being sent a large XML file, anywhere between 500k - 1MB. Of the entire file, I need to allow a user to view/edit approximately 5% of it. To make matters a bit more complicated, there are occasions where the program needs to load up around 5 instances of these documents. I'm trying to find the most efficient and non-complicated way to do this. My initial idea was to load the XML file into a DOM and get/set the...
1
4295
by: John A Grandy | last post by:
I've got an app that has hundreds of medium-sized (100s of elements) XML files on disk (not in db). Right now these are loaded via XMLDocument.Load and searched with XPATH. The performance has become unacceptable. Performance improvment strategies I know of: 1. Switching to XMLReader
5
2880
by: Julia | last post by:
Strategy to read part of XML log file Hi, My log file will contains entries formatted as XML(i use this format since some time i would like to log entire objects) I am going to use FileSystemWatcher in order to detect when changes occur to the file and now I am facing a problem reading the last added node I came to the following strategy:
5
1616
by: John A Grandy | last post by:
In 2.0 what is the fastest way to iterate through an element set in a read-only forward-only XMLDocument ? For example , load the key/value pairs in the following xml doc into a hashtable : <Mappings> <Mapping MappingKey="AL" MappingValue="Alabama" /> <Mapping MappingKey="CA" MappingValue="Alabama" /> </Mappings>
0
1214
by: billsahiker | last post by:
Where is XPathReader 1.1 available for download? I have 1.0 and found the 2005 MS announcement for 1.1 but the link was for godotnet which no longer exists. Nothing shows up in a search at the MS download center or Google. Bill
0
8360
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8876
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8784
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8556
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4371
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.