Dashboards & Visualizations

xml use Comparison "<"

crazyeva
Contributor


xxx afield<$value$
....
then i get:
"StartTag: invalid element name" with an unexpected "<"
How could i fix this?

Tags (2)
0 Karma
1 Solution

ShaneNewman
Motivator

The way to reference the less than sign inside of XML is & l t ; without the spaces between.

View solution in original post

0 Karma

ShaneNewman
Motivator

The way to reference the less than sign inside of XML is & l t ; without the spaces between.

0 Karma

nfilippi_splunk
Splunk Employee
Splunk Employee

You also have the option to wrap it in a CDATA tag:

<![CDATA[xxx afield<$value$]]>

ShaneNewman
Motivator

= is not a special charactor, so & l t ;= should work.

0 Karma

ShaneNewman
Motivator

& l t ; < less than
& g t ; > greater than
& a m p ; & ampersand
& a po s ; ' apostrophe
& q u o t ; " quotation mark

0 Karma

crazyeva
Contributor

how about "<=" ">=" "ge" "le" return error

0 Karma

crazyeva
Contributor

thanks then gt ge le?

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...