File format vs. data model
- low: file format
- high: data model
- example: SVG, XML
- design model first, then find the format
<?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" ... > <g id="layer_3_top"> <line x1="8.2550" y1="13.3350" x2="8.2550" y2="1.9050" stroke-width="0.2540" stroke="#8b2323" stroke-linecap="round"/> <path d="M 8.25500000 1.90500000 A 6.3500 6.3500 0 0 0 1.9050 8.2550" stroke-width="0.2540" stroke="#8b2323" stroke-linecap="round" fill="none"/> <circle cx="6.9850" cy="12.0650" r="1.0000" stroke-width="0.0000" fill="#707070" stroke="none"/> <circle cx="6.9850" cy="12.0650" r="0.4001" stroke-width="0.0000" fill="#ffffff" stroke="none"/> </g> <g id="layer_9_outline"> <rect x="0.0000" y="0.0000" width="10.1600" height="15.2400" stroke-width="0.2540" stroke="#00868b" stroke-linecap="round" fill="none"/> </g> </svg> |