Assuming the elements you're trying to select are direct children of div
with the class content
and you don't need to select the parent "content" div, this xpath 1.0 should work...
//div[contains(concat(' ',normalize-space(@class),' '),' content ')]/*[not(contains(concat(' ',normalize-space(@class),' '),' markedl-list '))]
Note the possible misspelling of "markedl-list".
Also, the use of contains(concat(' ',normalize-space(@class),' '),' someclass ')
might seem like overkill, but will account for the possibility of classes other than the target class being in the class attribute. If you can use XPath 2.0, this test is much cleaner (How can I match on an attribute that contains a certain string?).
Example: http://www.xpathtester.com/xpath/d449841c402b3e15ef69e3004a39ee6c
` child of `` ?
– SomeDude Aug 31 '16 at 15:16` I think you are looking something like filter the xml element `` then you need an xslt. Xpath only serves as selector.