Schema Examples
The sample schemas for the flat file examples are very similar to the CSV examples. The primary differences should be evident from examining the primary differences between the instance documents. In the CSV file representations all data is in a sequence of identically formatted Elements, each representing a single row in the CSV file. In the flat file representations the data is broken up into separate record formats, and the line item detail and description records are grouped together.
Invoice Schema (FlatInvoice.xsd)
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"> <xs:element name="FlatInvoice"> <xs:complexType> <xs:sequence> <xs:element name="Header"> ... |
Get Using XML with Legacy Business Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.