Search the web
Sign In
New User? Sign Up
tdom · tDOM - fast DOM / XPath for Tcl in C
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
selectNode error   Message List  
Reply | Forward Message #1610 of 1984 |
Given an XML document with the following line in it

<library>test</library>

shouldn't the following command return the text node containing the
value "test"

% set node [$root selectNode library/text()=\"test\"]

Instead, the command returns the value 1, which I interpret to mean that
the node was found. The following command will return the library
element itself

% set node [$root selectNode library\[text()=\"test\"\]]
domNode0x80b6a04
% $node asXML
<library>test</library>

Kevin
--
Kevin Partin
Applied Structural Dynamics, Inc.
(281) 286-8959




Thu May 24, 2007 8:46 pm

Kevin.Partin@...
Send Email Send Email

Forward
Message #1610 of 1984 |
Expand Messages Author Sort by Date

Given an XML document with the following line in it <library>test</library> shouldn't the following command return the text node containing the value "test" %...
Kevin Partin
Kevin.Partin@...
Send Email
May 24, 2007
8:47 pm

... No. ... The return value 1 is correct. An XPath expression doesn't necessary return always a node set. Your XPath expression is a boolean expression. You...
rolf@...
Send Email
May 24, 2007
10:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help