JuliaIO / LibExpat.jl

Julia interface to the Expat XML parser library
Other
9 stars 32 forks source link

attribute node tests would be helpful #58

Open clarkevans opened 7 years ago

clarkevans commented 7 years ago

Being able to return only those elements where a set of attributes matched values would be very helpful. For example, /collection[@type='people']/item[@exists='true' and @length>1]/value

vtjnash commented 7 years ago

Does that not parse already? For example, I used those xpath tests in WinRPM: https://github.com/JuliaPackaging/WinRPM.jl/blob/7d6b190d9a264d68458810645a3d02f5e81d2238/src/WinRPM.jl#L170-L177