4 ms·
> Why XPath? Because if your markup language doesnt map to normal programming data structures you need a band aid to fix it. How do you express easily “every e
by kaba0 5y ago
> Why XPath? Because if your markup language doesnt map to normal programming data structures you need a band aid to fix it.
How do you express easily “every element that has X in its path” with a programming language? Of course you can write such a program but it is similar to regex - you could write a FSM but it is much easier to use a DSL for that.