#XPath

2026-02-25

I … I think I fell into a hole.

Said hole seems to be #XML + #XSLT shaped.

XSLT’s ability to translate XML into #HTML and / or plain text … is — in a word —AMAZING to me.

Combine #XPath selection and … WOW!

I feel like this is going to be a game changer for some things that I do. Similar to #regularExpressions were 25+ years ago.

2026-02-24

The #DNBLab Workshop at #DHd2026 hammers home the continued importance of #XML despite all the nay-sayers. Yes, one can read and parse catalogue data provided through SRU with #Python but one still has to be familiar with #XPath to do anything meaningful.

The pain of MARC fields, tags, and codes remains … on to the MARC manual and the beauty of field 800 …

2026-02-20

Just updated the Go based XML processing repositories:

XML DOM loading and accessing:
github.com/speedata/goxml

XPATH 2.0 (and a bit of 3.1) accessing:
github.com/speedata/goxpath

The new kid on the block (experimental!) a new XSLT 2.0 processor:

github.com/speedata/goxslt

#xml #xpath #xslt

Thomas Steiner :chrome:tomayac@toot.cafe
2026-02-09

@brucelawson Not CSS, but JavaScript with some #XPath:

```js
Node.prototype.querySelectorText = function (t) {
return document.evaluate(`.//*[text()='${t}']`, this, null, 9, null)
.singleNodeValue;
};
```

Sorry for the "reply guy" kinda answer, but I just had fun recalling how all this works, and maybe it's actually useful for someone. Likely not a good idea to spam the `Node` prototype in production, though.

Elisa Beshero-Bondarepyllia@indieweb.social
2026-02-06

This isn't just about our course. It's about keeping XML/TEI processing education alive at DHSI. We need MORE of these courses, not fewer!
Please boost, share with your networks, consider enrolling!
#XSLT #XPath #XQuery #Schematron #DHSI2026 #XMLProcessing #ScholarlyCoding
🧵3/3

2026-01-31

Instead of working something productive, I have been fighting with #FreshRSS and its #XPath (scraping) feature to make a working #unifi blog #RSS feed.

After some back and forth with documentation and #AI, I finally have a working version.

Still blown away that they have terminated the feeds (especially for the blog site), and glad that 1.20 version has introduced this possibility with no need to depend on other public or #selfhosted services.

Powered via @rizzi #Reeder 🤘🏻

2026-01-27

XQuery & XPath users, watch out - i spent a day debugging!

Turns out in BaseX & i think XPath 4 (upcoming), `else` clauses are optional.

This is unexpected in an expression language -

`let $name := if ($p) then get-name($p)
return some-func($name)`

is the same as

`let $name := if ($p) then get-name($p) else ( )
return some-func($name)`

but in a multi-screen if/then/else it’s more likely you just forgot the else() or mismatched some parens.

#xquery #MarkupMonday #basex #xpath #xslt4

N-gated Hacker Newsngate
2026-01-20

Ah, , because using was just too easy before 🙄. Now with extra layers of , just in case you weren't already confused enough by web crawling! 🕸️😵‍💫
github.com/rodricios/wxpath

Hacker Newsh4ckernews
2026-01-20

I'm thinking about experimenting with replacing the filters in #FCLI with something more general purpose, inspired by #procmail recipes.

Procmail uses regular expressions on email headers (and bodies), so I wonder what the equivalent is for #JSON documents. Is this an #XPath like use case? I started looking for the JSON equivalent of XPath, and found #JSONPath, and then realised that XPath supports JSON natively nowadays.

Roman Liromanli
2026-01-13

About XML and HTML parsing.

I've now accumulated a lot of code that could be contributed as an SPM library for XML/HTML parsing. See below for a simple example of how I currently parse an HTML file loaded into Data. The 'query' and 'subscript' functions accept an XPath string as a parameter.

What do you think?

What do you usually use in your projects for XML parsing?

2026-01-07

Nouvelle mouture du moteur de recherche. Abandon du Dom pour xPath, plus rapide, et qui permet d'inclure les mots clefs associés des rubriques et des territoires, pratique pour par exemple lister tous les flux RSS d'un département (avec majuscule «Pyrénées-Orientales») ou ceux d'un thème qui ne possède pas sa page dédiée, comme le théâtre (sans accent «theatre»).

#rss #opml #syndication #agrégateur #atlasdesflux #veille #xml #xpath

2026-01-06

Work continues on XPath 4, XQuery 4, XSLT 4 - see qt4cg.org/ - but the focus has shifted to “getting it finished”i think. Although i wasn’t able to be as active as i wanted (and had a meeting conflict) i did write some proposals, some accepted and some not.

If you have concerns, now is teh time to voice them. Or sooner 🙂

#markupMonday #XML #XSLT #XSLT4 #XQuery #XQuery4 #XPath #XPath4

2025-12-10

2nd update: I also figured out how to apply the new-ish JSON transformations of #XSLT 3 and #XPath 3.1 to parse the encapsulated #MarcXML

»Older Tech In The Browser Stack«
smashingmagazine.com/2025/11/o

Man stelle sich vor, wie produktiv eine Browser-Implementierung von #XPath 3.1 sein könnte.

Thomas Steiner :chrome:tomayac@toot.cafe
2025-11-13

Older Tech In The Browser Stack: smashingmagazine.com/2025/11/o. Essentially a decent "#XPath by examples" tutorial after a mostly unrelated introductory paragraph.

2025-11-10

Получить цены акций, фондов и ОФЗ в Google Sheets

Привет, Хабр! Изучая информацию по работе с API в таблицах Google/Excel, понял лишь то, что я ничего не понимаю, разбираться в xpath, в парсинге XML внутри формулы это всё, как-то очень тяжело и громостко. У меня была простая задача, разработать что бы то ни было для получения текущей цены по конкретному активу с Мосбиржи. И как мне кажется, у меня это получилось в дотаточной степени чтобы можно было получить информацию и далее, как-то её агригировать, как вам удобно. Также сразу поясню, что функция GOOGLEFINANCE больше не работает, по этому остается искать другие пути решения.

habr.com/ru/articles/964722/

#api #GoogleТаблицы #excel #xpath #json #мосбиржа #appsscript

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst