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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...