# Meta --\> name --\> content. GREL expression?

**URL:** <https://forum.openrefine.org/t/meta-name-content-grel-expression/1014>\
**Category:** Support and Helpdesk\
**Created:** [October 6, 2023, 8:08pm UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014 "2023-10-06T20:08:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcyzyk](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mcyzyk](https://forum.openrefine.org/u/mcyzyk)\
**Post date:** [October 6, 2023, 8:08pm UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/1 "2023-10-06T20:08:35Z")

</div>

Hello, OpenRefine newbie here...

I have what I think is probably a really simple question regarding GREL:

Given this in my HTML:

meta name="DC.date" content="1739"

How do I extract the DC.date "content" value ("1739")?

value.parseHtml().select("meta") gets me to all the meta tags in my HTML, but how to drill down to DC.date --\> content?

Advice much appreciated,

Mark

---

<div class="post-metadata">

**Author:** ![thadguidry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/thadguidry/32/653_2.png) [@thadguidry](https://forum.openrefine.org/u/thadguidry)\
**Post date:** [October 6, 2023, 11:29pm UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/2 "2023-10-06T23:29:53Z")

</div>

We have a lot of great examples in our wiki that includes Recipes. Take a look in that section at the many HTML parsing recipes and see if you can work it out, and if not just reply back here and we’ll be glad to help further!

---

<div class="post-metadata">

**Author:** ![mcyzyk](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mcyzyk](https://forum.openrefine.org/u/mcyzyk)\
**Post date:** [October 7, 2023, 3:31pm UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/3 "2023-10-07T15:31:35Z")

</div>

Bingo!

value.parseHtml().select("meta[name='DC.title']")[0].htmlAttr("content").toString()

OpenRefine is about the coolest thing, evah!

---

<div class="post-metadata">

**Author:** ![thadguidry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/thadguidry/32/653_2.png) [@thadguidry](https://forum.openrefine.org/u/thadguidry)\
**Post date:** [October 8, 2023, 12:21am UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/5 "2023-10-08T00:21:13Z")

</div>

Thanks! We think so also 🙂 😃 And to be fair special thanks here goes to Richard Crummy, the author of Beautiful Soup and the basis for the Jsoup library we use in OpenRefine!

---

<div class="post-metadata">

**Author:** ![mcyzyk](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mcyzyk](https://forum.openrefine.org/u/mcyzyk)\
**Post date:** [October 8, 2023, 9:46am UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/6 "2023-10-08T09:46:27Z")

</div>

Jsoup, very powerful!

Now I'm trying to figure out why this:

forEach(value.parseHtml().select("meta[name='DC.subject']").htmlAttr("content"), e, e.ownText()).join("|")

Does not work against this:

meta name="DC.subject" lang="fre" content="Vierges Britanniques, Îles"  
meta name="DC.subject" lang="fre" content="Indes occidentales danoises"  
meta name="DC.subject" lang="fre" content="Anguilla, Île d'"  
meta name="DC.subject" lang="fre" content="Saint-Martin, Île de"

Learning!

---

<div class="post-metadata">

**Author:** ![mcyzyk](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@mcyzyk](https://forum.openrefine.org/u/mcyzyk)\
**Post date:** [October 8, 2023, 9:56am UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/7 "2023-10-08T09:56:39Z")

</div>

et viola!

forEach(value.parseHtml().select("meta[name='DC.subject']"), e, e.htmlAttr("content").toString()).join("|")

Spinning in chair,

Mark

---

<div class="post-metadata">

**Author:** ![thadguidry](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openrefine.org/thadguidry/32/653_2.png) [@thadguidry](https://forum.openrefine.org/u/thadguidry)\
**Post date:** [October 8, 2023, 10:12am UTC](https://forum.openrefine.org/t/meta-name-content-grel-expression/1014/8 "2023-10-08T10:12:47Z")

</div>

Now you are a parsing expert and can help others! Great perseverance!
