Skip to main content
Contributor
Jan 8, 2024 10:58 AM UTC
Solved

Using "<" or ">" as a description in metadata

Dear all,

I'd like to know how you deal with this kind of case, because > and < symbols are special for .XML files. I have a case where the description uses a ">" or "<" symbols but they are not properly recognized once they have been loaded, instead they are loaded as "&gt;" or "&lt;". Do you know how to define them so the load would work properly?

 

Thank you.

MarcusHAnswer
Expert
Jan 8, 2024 11:55 AM UTC

Can you expand on the question? Where do you want to define them? What process are you going through that needs <> defined as &lt; &gt;?

Your summary is correct: there are a number of characters that XML needs to treat differently and <> are 2 of them. You must 'escape' these special characters using the &gt; and &lt; strings. That is how they must appear in the XML file and OneStream will display them as < and >. 

2 replies

MarcusHAnswer
Expert
Jan 8, 2024 11:55 AM UTC

Can you expand on the question? Where do you want to define them? What process are you going through that needs <> defined as &lt; &gt;?

Your summary is correct: there are a number of characters that XML needs to treat differently and <> are 2 of them. You must 'escape' these special characters using the &gt; and &lt; strings. That is how they must appear in the XML file and OneStream will display them as < and >. 

Contributor
Jan 8, 2024 5:51 PM UTC

Thank you Marcus, yes, those values should be in the XML so that they can be read by OS properly.

Thank you for your answer!