I have a very odd problem that is proving difficult to track down.

I have a document in memory that is used in a read-only scenerio by web photo album software I've written. I have problems in random places with about 1% of the times when I use XPath in my code (simple doc.valueOf("//something") expressions.) Around 1% of the time, valueOf doesn't return the string as it appears in the document on disk (if viewed directly, like notepad) but instead with a single space inserted somewhere in the result string.

What is strange is the problem is never with the same nodes, if the document is reloaded from disk. And, to top all, the nodes are all just boring occurences of filenames that all adhere to a common convention (i.e. img001.jpg). This is happening to multiple users all using 1.4.1 on XP I believe. Oddly, I've not ever seen this problem on Linux 1.4.0.

Has anybody seen this or have any wild ideas on something stupid I might be doing that could so cleverly clobber my document? Thanks!



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to