From: Stefanie S. <ste...@gm...> - 2006-11-11 05:34:27
|
Hi, I evaluated the query //person on the input file <a> <person id="person1"> <name>Vidar Reinsch</name> <profile income="91891.75"> <age/> </profile> <watches/> </person> <person id="person2"> <name>Rens Rifaut</name> </person> </a> but as a result I get <person id="person1"> <name>Vidar Reinsch</name> <profile income="91891.75"> <age/> </profile> </person><person/> The result is correct if either the attribute in "profile" or the "age" token are missing. It seems that the end-context for the XPath expression is invoked at both </profile> and </person>. However, I could not find out the reason beyond that. Did anybody else observe this behavior? And if so, how can I fix it? Thanks, Steffi |