PlantUMLΒΆ

Generate PlantUML class diagram

@startuml

class Items {
    +item : item[]
}
Items +-- item
class item {
    +productName : string
    +quantity : positiveInteger
    +USPrice : decimal
    +comment : comment
    +shipDate : date
    +partNum : string
}
class PurchaseOrderType {
    +shipTo : USAddress
    +billTo : USAddress
    +comment : comment
    +items : Items
    +orderDate : date
}
class USAddress {
    +name : string
    +street : string
    +city : string
    +state : string
    +zip : decimal
    +country : NMTOKEN
}
class comment {
    +value : string
}
class purchaseOrder {
}
purchaseOrder *- PurchaseOrderType

@enduml

Which is translated to this nice svg

_images/primer.svg

Hint

Then above output was generating by running the following command

xsdata docs/examples/primer.xsd --package docs.examples --output plantuml --print

The output was converted to svg with the plantUML cli tool

plantuml docs/examples/primer.pu -tsvg