Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
easypo.xsd - Purchase Order Test XML Schema
What is the Purchase Order Test XML Schema, easypo.xsd?
✍: FYIcenter.com
easypo.xsd is a test XML Schema represents a typical purchase order. It is included in the \fyicenter\xmlbeans-2.6.0\schemas folder, if you have XMLBeans-2.6.0.zip installed as described in the previous tutorial:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:po="http://openuri.org/easypo" targetNamespace="http://openuri.org/easypo" elementFormDefault="qualified"> <xs:element name="purchase-order"> <xs:complexType> <xs:sequence> <xs:element name="customer" type="po:customer"/> <xs:element name="date" type="xs:dateTime"/> <xs:element name="line-item" type="po:line-item" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="shipper" type="po:shipper" minOccurs="0" maxOccurs="1"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="customer"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="address" type="xs:string"/> </xs:sequence> <xs:attribute name="age" type="xs:int"/> <xs:attribute name="moo" type="xs:int" default="100"/> <xs:attribute name="poo" type="xs:int" fixed="200"/> </xs:complexType> <xs:complexType name="line-item"> <xs:sequence> <xs:element name="description" type="xs:string"/> <xs:element name="per-unit-ounces" type="xs:decimal"/> <xs:element name="price" type="xs:decimal"/> <xs:element name="quantity" type="xs:integer"/> </xs:sequence> </xs:complexType> <xs:complexType name="shipper"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="per-ounce-rate" type="xs:decimal"/> </xs:sequence> </xs:complexType> </xs:schema>
You see 4 complex element types defined in easypo.xsd: purchase-order, customer, line-item, and shipper. See the next tutorial on how to compile these XML data types into Java data types.
⇒ scomp - Compile XML Schema to Java Data Types
⇐ xpretty - Print XML in Pretty Format
2018-01-13, 1734🔥, 0💬
Popular Posts:
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
Rhino JavaScript Java Library is an open-source implementation of JavaScript written entirely in Jav...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...