Ticket #95 (closed defect: fixed)
xpath modify original document
| Reported by: | ishkan | Owned by: | ser |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1.8 |
| Component: | DOM | Version: | 3.1.3 |
| Severity: | normal | Keywords: | |
| Cc: | Ruby version: | 1.8.4 | |
| Operating system: | Linux |
Description
System:
ruby -vrrexml/rexml -e 'p REXML::Version,PLATFORM'
ruby 1.8.4 (2005-12-24) [i386-freebsd6]
"3.1.3"
"i386-freebsd6"
Code:
testd = Document.new "<a><b><c/><c/><c/></b></a>" puts testd puts testd.elements["//c[2]"].xpath puts testd
Output:
<a><b><c/><c/><c/></b></a> /a/b/c[2] <a><b><c/><c[2]/><c/></b></a>
Change History
Note: See
TracTickets for help on using
tickets.
