Representing a file with file extension (dot '.' file extension)

0 votes
asked Oct 6, 2017 in To be sorted by agoncal (120 points)

Hi all,

In my diagram I want to represent a file (I have classes, packages, and one XML file). For that, I picked up an artifact : 

artifact "validation.xml"

But the problem is the dot (.). This represents an artifact called "validation.xml" inside a package called "validation". So it looks like the dot (.) creates this split between a package and an artifact. If I change the name of the artifact to "validation_xml" (underscore) for example, the "validation" package disapears.

I've tried to escape the dot (.) but with no success.

Any idea ?

Thanks

Antonio

1 Answer

+1 vote
answered Oct 6, 2017 by plantuml (298,440 points)

There is an ugly workaround :

@startuml
artifact "validation<U+002E>xml" as validation
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuG9IcMc9oIKAIcM9EPafYIMP-NaseTe61aQkTXMvEKeAYSKA21akXzIy5A0s0000

Hope this helps!

 

commented Oct 6, 2017 by agoncal (120 points)
Brilliant trick, thanks !!
...