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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...