# DQL parsing on a xmlns log

**URL:** <https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434>\
**Category:** DQL\
**Tags:** dql, log-processing, logs\
**Created:** [March 4, 2024, 8:16pm UTC](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434 "2024-03-04T20:16:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexis1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexis1](https://community.dynatrace.com/u/Alexis1)\
**Post date:** [March 4, 2024, 8:16pm UTC](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434/1 "2024-03-04T20:16:34Z")

</div>

Hello community,

I have difficulties to parse xmlns structure of log with DQL, the purpose of parsing this is obtain the values of xml attributes, is there any of you that have experience with this. I will copy an example structure, since it contains sensitive information for the client.

16:26:04,552 INFO [\*\*.\*\*\*.\*\*\*\*\*.\*\*\*\*\*\*.\*\*\*\*\*.\*\*\*\*\*\*.\*\*\*] (http-200.10.x.1xx:xx-x) method - BODY received: \<v20:\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* xmlns:v20=“[http://example.cl/exampleroute](http://example.cl/exampleroute)”\>  
\<firstAttribute\>Example\</firstAttribute\>  
\<secondAttribute\>Example1\</secondAttribute\>  
\<thirdAttribute\>Example2\</thirdAttribute\>

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [March 5, 2024, 7:22am UTC](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434/2 "2024-03-05T07:22:02Z")

</div>

Did you try something like this?:

```python
PARSE(content, "DATA '<firstAttribute>' DATA:firstAttribute '</firstAttribute>' DATA '<secondAttribute>' DATA:secondAttribute'</secondAttribute>' DATA '<thirdAttribute>' DATA:thirdAttribute'</thirdAttribute>' ")

```

---

<div class="post-metadata">

**Author:** ![Alexis1](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@Alexis1](https://community.dynatrace.com/u/Alexis1)\
**Post date:** [March 5, 2024, 12:21pm UTC](https://community.dynatrace.com/t/dql-parsing-on-a-xmlns-log/44434/3 "2024-03-05T12:21:34Z")

</div>

Hi Paco,

i didn’t try this, i was trying the way that Dynatrace show us at DQL Use cases documentation and nothing works, thank you for your help!
