Похожие чаты

But the question aside, how is a DOM parser written?

What algorithms and data structures are used?

One way I came to think of was to traverse the string and find the first occurrence of the closing tag: </ul> then check if there are other beginning tags <ul in between and expand the traversing range.

I wasn't able to find a good article on web, I guess I have to look through available libraries to learn. This is like a riddle for me

11 ответов

34 просмотра

Does it matter? You won't be writing one, will you?

you don't want to role your own, do you? Sounds like a bad idea if all you want is to parse some HTML to solve a business issue

ㅤ- Автор вопроса
Roman Sharkov
you don't want to role your own, do you? Sounds li...

Not for this project, I'm just curious on the way its achieved. That might train my brain for same problems :D


Not for this project, I'm just curious on the way ...

You'd probably be writing a recursive descent parser, it's quite fun btw

ㅤ- Автор вопроса
Roman Sharkov
You'd probably be writing a recursive descent pars...

It does sound fun, I'm already looking into it. I hope by fun you didn't mean the quantum physic formulas


It does sound fun, I'm already looking into it. I ...

it ain't that difficult, also not quite trivial tho and a little time consuming

ㅤ- Автор вопроса

What doesn't kill you makes you stronger

time kills you, there ain't enough of it 😅

ㅤ- Автор вопроса
Roman Sharkov
time kills you, there ain't enough of it 😅

Who said this is the only time we live in. I'll die and born a better programmer

ㅤ- Автор вопроса
Roman Sharkov
highly doubt it's possible 😅

It's how I calm myself when I'm reminded of the time

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта