Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » String express(how to express '&')
String express [message #1848967] Mon, 27 December 2021 14:00 Go to next message
Yanhong Dong is currently offline Yanhong DongFriend
Messages: 25
Registered: September 2021
Junior Member
When I input 'A & B ', the output content is A & B
I want to obtain A & B(this is string), so can you tell me how to express '&' in ATL
thank you
Re: String express [message #1848998 is a reply to message #1848967] Tue, 28 December 2021 18:11 Go to previous message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Do you mean the XMI file output? If so, the "&" escaped string is required by XML; see also https://stackoverflow.com/questions/14500800/how-can-i-include-an-ampersand-character-in-an-xml-document

When loading the XMI file in Java, the "&" string is automatically translated back to "&".


Cheers,
Dennis
Previous Topic:Using metamodels expressed in UML
Next Topic:Wrong Uris in the target model
Goto Forum:
  


Current Time: Thu Apr 25 06:58:31 GMT 2024

Powered by FUDForum. Page generated in 0.02657 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top