PlantUML: plantumlΒΆ
Generate PlantUML class diagram
@startuml
class Items {
+item : item[]
}
Items +-- item
class item {
+productName : xsd:string
+quantity : xsd:positiveInteger
+USPrice : xsd:decimal
+comment : comment
+shipDate : xsd:date
+partNum : xsd:string
}
class PurchaseOrderType {
+shipTo : USAddress
+billTo : USAddress
+comment : comment
+items : Items
+orderDate : xsd:date
}
class USAddress {
+name : xsd:string
+street : xsd:string
+city : xsd:string
+state : xsd:string
+zip : xsd:decimal
+country : xsd:NMTOKEN
}
class comment {
+value : xsd:string
}
class purchaseOrder {
}
purchaseOrder *- PurchaseOrderType
@enduml
Which is translated to this nice svg
Hint
Then above output was generating by running the following command
xsdata docs/examples/primer.xsd --package docs.examples --renderer plantuml --print
The output was converted to svg with the plantUML cli tool
plantuml docs/examples/primer.pu -tsvg