- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ben_leung
Builder
09-13-2014
06:41 PM
I have the below in my defaul.xml
<nav search_view="search" color="#2B60DE">
<view name="private_searches" default='true' />
<view name="private_dashboards" />
<a href="/manager/search/saved/searches/_new?action=edit&ns=search">Create a saved search</a>
<a href="/manager/search/data/ui/views/_new?action=edit&ns=search">Create a dashboard</a>
</nav>
When trying to save the page, I am getting the red banner
Encountered the following error while trying to update: In handler 'nav': Error parsing XML on line 5: EntityRef: expecting ';'
I am not sure, but I think it has to be escaped somehow. Does anyone know what should be done in this situation? I want to have a button on the navigation bar for redirecting directly to the create saved search and dashboard endpoint.
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
09-14-2014
04:44 AM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
09-14-2014
08:42 AM
That 5.
is just the new answers platform labelling every fifth line of code.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
martin_mueller

SplunkTrust
09-14-2014
04:44 AM
Replace &
with &
, the XML entity for an ampersand.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

jrodman

Splunk Employee
09-14-2014
01:10 AM
Sure looks like it thinks the & is the start of an entity, but it's part of a quoted attribute value. Not sure where to go from here other than trying it and debugging it.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ben_leung
Builder
09-13-2014
10:06 PM
<nav search_view="search" color="#2B60DE">
<view name="private_searches" default='true' />
<view name="private_dashboards" />
<a href="/manager/search/saved/searches/_new?action=edit&ns=search">Create a saved search</a>
<a href="/manager/search/data/ui/views/_new?action=edit&ns=search">Create a dashboard</a>
</nav>
Weird how I see a "5." displayed in the code section above. Is there a bug in the new answers page?
