Skip to content. | Skip to navigation

Personal tools
Sections
You are here: Home Members Eric Jahn can standards Redcross Schema v.01x Extended

Redcross Schema v.01x Extended

This is an example of how the Red Cross Schema tAddress complexType could be extended to add an additional data element.

extend_redcross.xsd — Extensible Markup Language (XML), 964 bytes

File contents

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.redcross.org/schema/extend_redcross.xsd" xmlns:rc="http://www.redcross.org/schema/redcross.xsd" targetNamespace="http://www.redcross.org/schema/extend_redcross.xsd" elementFormDefault="qualified">
    <!--Import only an Red Cross client record and extend it with the state where the client was born -->
    <xsd:import namespace="http://www.redcross.org/schema/redcross.xsd" schemaLocation="file:/home/eric/workspace/HSXML/redcross.xsd"/>    
    <xsd:element name="Address" type="ExtendedAddress"/>
    <xsd:complexType name="ExtendedAddress">
        <xsd:complexContent>
            <xsd:extension base="rc:tAddress">
                <xsd:sequence>
                    <xsd:element name="Planet" type="xsd:string"/>
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>    
</xsd:schema>