Tutorials References Exercises VideosMenu
Free WebsiteGet CertifiedPro

XML Tutorial

XML HOMEXML IntroductionXML How to useXML TreeXML SyntaxXML ElementsXML AttributesXML NamespacesXML DisplayXML HttpRequestXML ParserXML DOMXML XPathXML XSLTXML XQueryXML XLinkXML ValidatorXML DTDXML SchemaXML ServerXML ExamplesXML QuizXML Certificate

XML AJAX

AJAX IntroductionAJAX XMLHttpAJAX RequestAJAX ResponseAJAX XML FileAJAX PHPAJAX ASPAJAX DatabaseAJAX ApplicationsAJAX Examples

XML DOM

DOM IntroductionDOM NodesDOM AccessingDOM Node InfoDOM Node ListDOM TraversingDOM NavigatingDOM Get ValuesDOM Change NodesDOM Remove NodesDOM Replace NodesDOM Create NodesDOM Add NodesDOM Clone NodesDOM Examples

XPath Tutorial

XPath IntroductionXPath NodesXPath SyntaxXPath AxesXPath OperatorsXPath Examples

XSLT Tutorial

XSLT IntroductionXSL LanguagesXSLT TransformXSLT <template>XSLT <value-of>XSLT <for-each>XSLT <sort>XSLT <if>XSLT <choose>XSLT ApplyXSLT on the ClientXSLT on the ServerXSLT Edit XMLXSLT Examples

XQuery Tutorial

XQuery IntroductionXQuery ExampleXQuery FLWORXQuery HTMLXQuery TermsXQuery SyntaxXQuery AddXQuery SelectXQuery Functions

XML DTD

DTD IntroductionDTD Building BlocksDTD ElementsDTD AttributesDTD Elements vs AttrDTD EntitiesDTD Examples

XSD Schema

XSD IntroductionXSD How ToXSD <schema>XSD ElementsXSD AttributesXSD RestrictionsXSD Complex ElementsXSD EmptyXSD Elements-onlyXSD Text-onlyXSD MixedXSD IndicatorsXSD <any>XSD <anyAttribute>XSD SubstitutionXSD Example

XSD Data Types

XSD StringXSD Date/TimeXSD NumericXSD MiscXSD Reference

Web Services

XML ServicesXML WSDLXML SOAPXML RDFXML RSS

References

DOM Node TypesDOM NodeDOM NodeListDOM NamedNodeMapDOM DocumentDOM ElementDOM AttributeDOM TextDOM CDATADOM CommentDOM XMLHttpRequestDOM ParserXSLT ElementsXSLT/XPath Functions

XML Schema Reference


XSD Elements

ElementExplanation
allSpecifies that the child elements can appear in any order. Each child element can occur 0 or 1 time
annotationSpecifies the top-level element for schema comments
anyEnables the author to extend the XML document with elements not specified by the schema
anyAttribute

Enables the author to extend the XML document with attributes not specified by the schema

appinfoSpecifies information to be used by the application (must go inside annotation)
attributeDefines an attribute
attributeGroupDefines an attribute group to be used in complex type definitions
choiceAllows only one of the elements contained in the <choice> declaration to be present within the containing element
complexContentDefines extensions or restrictions on a complex type that contains mixed content or elements only
complexTypeDefines a complex type element
documentationDefines text comments in a schema (must go inside annotation)
elementDefines an element
extensionExtends an existing simpleType or complexType element
fieldSpecifies an XPath expression that specifies the value used to define an identity constraint
groupDefines a group of elements to be used in complex type definitions
importAdds multiple schemas with different target namespace to a document
includeAdds multiple schemas with the same target namespace to a document
keySpecifies an attribute or element value as a key (unique, non-nullable, and always present) within the containing element in an instance document
keyrefSpecifies that an attribute or element value correspond to those of the specified key or unique element
listDefines a simple type element as a list of values
notationDescribes the format of non-XML data within an XML document
redefineRedefines simple and complex types, groups, and attribute groups from an external schema
restrictionDefines restrictions on a simpleType, simpleContent, or a complexContent
schemaDefines the root element of a schema
selectorSpecifies an XPath expression that selects a set of elements for an identity constraint
sequenceSpecifies that the child elements must appear in a sequence. Each child element can occur from 0 to any number of times
simpleContentContains extensions or restrictions on a text-only complex type or on a simple type as content and contains no elements
simpleTypeDefines a simple type and specifies the constraints and information about the values of attributes or text-only elements
unionDefines a simple type as a collection (union) of values from specified simple data types
uniqueDefines that an element or an attribute value must be unique within the scope


XSD Restrictions/Facets for Datatypes

Look at XSD Restrictions!

ConstraintDescription
enumerationDefines a list of acceptable values
fractionDigitsSpecifies the maximum number of decimal places allowed. Must be equal to or greater than zero
lengthSpecifies the exact number of characters or list items allowed. Must be equal to or greater than zero
maxExclusiveSpecifies the upper bounds for numeric values (the value must be less than this value)
maxInclusiveSpecifies the upper bounds for numeric values (the value must be less than or equal to this value)
maxLengthSpecifies the maximum number of characters or list items allowed. Must be equal to or greater than zero
minExclusiveSpecifies the lower bounds for numeric values (the value must be greater than this value)
minInclusiveSpecifies the lower bounds for numeric values (the value must be greater than or equal to this value)
minLengthSpecifies the minimum number of characters or list items allowed. Must be equal to or greater than zero
patternDefines the exact sequence of characters that are acceptable
totalDigitsSpecifies the maximum number of digits allowed. Must be greater than zero
whiteSpaceSpecifies how white space (line feeds, tabs, spaces, and carriage returns) is handled