33
Views
2
Comments
Solved
[XML Records] Adding colon in element attributes when exporting to xml
xml-records
Service icon
Forge asset by Afonso Carvalho
Application Type
Reactive

I am trying to export an element attribute to a node that looks like < NodeName xmlns:xsi="http://something" > I am using an attribute in my struct that has the default "Attr_" prefix, but as colon is not valid within an attribute name, it won't allow me to use it, usually changes it to _ instead. 

Is there a way to export non valid characters in element attributes?

2019-06-15 21-39-22
Afonso Carvalho
 
MVP
Solution

Hello Martin,

Sorry for the delay, I haven't had a lot of free time lately. If I understood your problem correctly, you can use the AttributesConfig structure to develop aliases for your fields/attributes, and those aliases can contain characters that would be invalid as OutSystems structure names. This is not quite the same as your situation, but check this thread for the implementation logic.

2019-06-15 21-39-22
Afonso Carvalho
 
MVP

Hello Martin,

I'm marking my post as the solution. I believe the linked thread contains the correct answer to your issue, but please feel free to respond if this is not the case.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.