Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

XPath expression to select elements that don't have a particular child

I'm trying to write an XPath expression to select elements that don't contain a particular child element. My document looks something like this:










I want to select all of the PAGE_ELEMENT nodes that don't have a PROPERTY child element with a NAME attribute that equals "GROUPID".
Any suggestions?

Comments

  • Chris BrownChris Brown USAMember Posts: 4,496 ✭✭

    < http://forcoder.org /> free ebooks and video tutorials about // Visual Basic .NET, Objective-C, Assembly, C++, C#, Swift, PHP, Scratch, Ruby, C, Visual Basic, Java, PL/SQL, JavaScript, R, Go, Python, MATLAB, Perl, Delphi Lua, Dart, Scala, FoxPro, Lisp, Apex, ML, Kotlin, Rust, Scheme, Julia, Fortran, Transact-SQL, Logo, Bash, F#, SAS, Crystal, Alice, ABAP, COBOL, VBScript, Ada, D, Awk, LabVIEW, Hack, Prolog, Erlang, Clojure // _________

Sign In or Register to comment.