PHP Classes

File: example/schema.xsd

Recommend this page to a friend!
  Classes of Victor Bolshov  >  PHP Xforms  >  example/schema.xsd  >  Download  
File: example/schema.xsd
Role: Auxiliary data
Content type: text/plain
Description: XMLSchema for the example
Class: PHP Xforms
Validate XML documents using XML Schema
Author: By
Last change:
Date: 15 years ago
Size: 830 bytes


Class file image Download
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:xs=""

	<xs:simpleType name="content">
		<xs:restriction base="xs:string">
			<xs:whiteSpace value="collapse"/>
			<xs:minLength value="1" />

	<!-- Notice that restriction base type is our own datatype "content" -->
	<xs:simpleType name="title">
		<xs:restriction base="content">
			<xs:maxLength value="255" />

	<xs:element name="article">
				<xs:element name="publishdate" type="xs:date" />
				<xs:element name="title" type="xs:string" />
				<xs:element name="content" type="xs:string" />

For more information send a message to info at phpclasses dot org.