Tcl Library Source Code

View Ticket
Login
Ticket UUID: 2974624
Title: man page for xsxp package incorrect
Type: Bug Version: None
Submitter: cwjolly Created on: 2010-03-22 15:28:15
Subsystem: amazon-s3 Assigned To: aku
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2014-06-23 19:21:13
Resolution: Fixed Closed By:
    Closed on:
Description:
In the manpage for the xsxp package the example is given : 

xsxp::fetch $pxml {html body p#4 b} %PCDATA

This should be corrected to: 

xsxp::fetch $pxml {body p#4 b} %PCDATA

fetch does not use the root node ( i.e. html ) by name and the fetch function purposely steps over it. In fact the only way to return any information about the root node is to specify {} as your path.  
Having looked at the code one could also update the manpage to say that xsxp::fetch accepts paths in both list and '/' delimited format  (e.g { body p#4 b }  and /body/p#4/b )
User Comments: aku added on 2014-06-23 19:21:13:
Fixed with [749a54b5ef].
Committed.
Pushed.