It is currently June 20th, 2019, 3:54 am

Update WebParser to have true parsing

Report bugs with the Rainmeter application and suggest features.
Posts: 9
Joined: April 8th, 2017, 11:22 am

Update WebParser to have true parsing

Ytterbium » June 10th, 2018, 4:31 pm


I'm trying to parse some xml with the WebParser but it's very difficult to create some RegEx as it's not really designed for that function.

There was a plugin written as the RegEx became troublesome for this person.

I imagine that most people would prefer a true parser?

using XPath Syntax would be great choice for parser language.

Thanks for consideration
User avatar
Posts: 19265
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Update WebParser to have true parsing

jsmorley » June 10th, 2018, 4:47 pm

WebParser is not about XML. It is designed to be able to use regular expression to parse any site or text file. While I could see the charm of having some purposeful functionality that is intended to more easily parse properly formatted XML files, that is only a small part of what WebParser is used for by skin authors.

I personally don't see this in the cards. Regular expression is not the easiest thing to use, but is very flexible and powerful, and allows WebParser to be useful in many, many situations. Adding an external parser strictly for XML would be both difficult to implement in the option-driven language of Rainmeter, and not something that there is any great need for. I appreciate that regular expression is challenging, but you can in fact use it perfectly well for parsing any XML.