Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XPath to enforce document order XPath to enforce document orderTo: NULL Date: 3/16/2009 7:25:00 PM XMLers: Here's my XPath: //form[ ./descendant::fieldset[ ./descendant::legend and ./descendant::li[ ./descendant::label and ./descendant::input ] ] ] Its purpose is unit tests to assert that HTML has certain elements and attributes (not shown). I want it to fail if the <li> appears above the <legend>, in document order. Or if the <label> appears below the <input>. Any ideas? libxml2, 2.6.32.dfsg-4ubuntu1.1, BTW... Tx! -- Phlip http://www.zeroplayer.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
