open 1.xml ; echo //doc/str[@name="docuid" and not(text() < //doc/str[@name="docuid"]/text())] ;