XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://xml.ra.se/Economics
Version 1.6.1
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Documentation Detta är Riksarkivets egen variant av det SIEXML schema (fil: XMLSIE_1_0.xsd) som togs fram av SIE-Gruppen 2005

Schemat är kompletterat med de punkter som vi kommit fram till saknas för att idagsläget uppfylla långtidslagringen.

Kompletterat med ett targetnamespace. Karin Bredenberg, 2007-02-23

Engelska kommentarer inlyfta som riktiga kommentarer. Karin Bredenberg, 2007-02-23

Bytt namn på tagetnamespace till http://xml.ra.se/Economics. Karin Bredenberg, 2007-10-30

Declared Namespaces

Prefix Namespace
Default namespace http://xml.ra.se/Economics
xml http://www.w3.org/XML/1998/namespace
xsd http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xsd:schema targetNamespace="http://xml.ra.se/Economics" elementFormDefault="qualified" version="1.6.1">
...
</xsd:schema>
top

Global Declarations

Element: BTLA

Name BTLA
Type Locally-defined complex type
Nillable no
Abstract no
Documentation Detta är rotelementet för samtliga typer av meddelande som kan skapas inom ramen för XMLBTLA. Varje meddelande skall alltid inledas med detta element.

Typ av meddelande anges i attributet BTLAType. Se dokumentation för detta för giltiga värden och dess innebörd.

B = Balances, T = Transaktions, L = Ledgerentries, A = Assets
XML Instance Representation
<BTLA
BTLAType=" xsd:NMTOKEN (value comes from list: {'BALANCES'|'TRANSACTIONS'|'LEDGERENTRIES'|'ASSETS'}) [0..1] ?">
<FileInfo
softwareProduct=" xsd:string [1] ?"
softwareVersion=" xsd:string [1] ?"
createdBy=" xsd:string [0..1] ?"
createdDate=" xsd:date [1] ?"
createdTime=" xsd:time [1] ?"
comment=" xsd:string [0..1] ?"/> [1] ?
<Company
id=" xsd:string [1] ?"
name=" xsd:string [1] ?"
organizationalnumber=" xsd:string [0..1] ?"
contact=" xsd:string [0..1] ?"
addressLine1=" xsd:string [0..1] ?"
addressLine2=" xsd:string [0..1] ?"
postcode=" xsd:string [0..1] ?"
city=" xsd:string [0..1] ?"
state=" xsd:string [0..1] ?"
country=" xsd:string [0..1] ?"
countryCode=" xsd:token (length = 2) [0..1] ?"
telephone=" xsd:string [0..1] ?"
fax=" xsd:string [0..1] ?"
email=" xsd:string [0..1] ?"
homepage=" xsd:string [0..1] ?"/> [1] ?
<Currency> CurrencyIdTYPE </Currency> [0..1] ?
<Accounting> [0..1] ?
<Accounts
chartOfAccountsType=" xsd:NMTOKEN (value comes from list: {'BAS95'|'BAS96'|'EUBAS97'|'BAS2000'|'OTHER'}) [0..1] ?"
nameOfChartOfAccounts=" xsd:string [0..1] ?"> [0..1] ?
<Account> [1..*] ?
<Id> AccountIdTYPE </Id> [1] ?
<Name> xsd:string </Name> [1] ?
<Type> xsd:string </Type> [0..1] ?
<SruCode
number=" xsd:integer (total no. of digits = 3) [0..1] ?"> [0..*] ?
xsd:integer
</SruCode>
</Account>
</Accounts>
<TypeOfObjectGroups> [0..1] ?
<TypeOfObjectGroup> [1..*] ?
<Id> TypeOfObjectGroupIdTYPE </Id> [1] ?
<Name> xsd:string </Name> [1] ?
</TypeOfObjectGroup>
</TypeOfObjectGroups>
<ObjectGroups> [0..1] ?
<ObjectGroup> [1..*] ?
<Id> ObjectGroupIdTYPE </Id> [1] ?
<Name> xsd:string </Name> [1] ?
<TypeOfObjectGroupId> TypeOfObjectGroupIdTYPE </TypeOfObjectGroupId> [1] ?
</ObjectGroup>
</ObjectGroups>
<TypeOfObjects> [0..1] ?
<TypeOfObject> [1..*] ?
<Id> TypeOfObjectIdTYPE </Id> [1] ?
<Name> xsd:string </Name> [1] ?
</TypeOfObject>
</TypeOfObjects>
<Objects> [0..1] ?
<Object> [1..*] ?
<Id> ObjectIdTYPE </Id> [1] ?
<Name> xsd:string </Name> [1] ?
<TypeOfObjectId> TypeOfObjectIdTYPE </TypeOfObjectId> [1] ?
</Object>
</Objects>
<FinancialYears> [1] ?
<FinancialYear
start=" xsd:date [1] ?"
end=" xsd:date [1] ?"
isClosed=" xsd:boolean [0..1] ?"> [1..*] ?
<Journals> [0..1] ?
<Journal> [1..*] ?
<Id> xsd:string </Id> [0..1] ?
<Name> xsd:string </Name> [0..1] ?
<JournalEntry> [1..*] ?
<Id> xsd:string </Id> [1] ?
<Date> xsd:date </Date> [1] ?
<JournalEntryType> JournalEntryInfoTYPE </JournalEntryType> [0..1] ?
<Text> xsd:string </Text> [0..1] ?
<Period> PeriodTYPE </Period> [0..1] ?
<LedgerEntry
revoked=" xsd:boolean [0..1] ?"
revokedBy=" xsd:string [0..1] ?"> [1..*] ?
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<RegistredDate> xsd:date </RegistredDate> [0..1] ?
<RegistredBy> xsd:string </RegistredBy> [0..1] ?
<Text> xsd:string </Text> [0..1] ?
<Date> xsd:date </Date> [0..1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</LedgerEntry>
</JournalEntry>
</Journal>
</Journals>
<OpeningBalances> [0..1] ?
<OpeningBalance> [1..*] ?
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</OpeningBalance>
</OpeningBalances>
<Balances> [0..1] ?
<Balance> BalanceWithPeriodTYPE </Balance> [1..*] ?
</Balances>
<Budgets> [0..1] ?
<Budget
BudgetID=" xsd:string [0..1]"
BudgetName=" xsd:string [0..1]"> [1..*] ?
<Id> ... </Id> [0..1] ?
<Name> xsd:string </Name> [0..1] ?
<BudgetEntry> BalanceWithPeriodTYPE </BudgetEntry> [1..*] ?
</Budget>
</Budgets>
<ClosingBalances> [0..1] ?
<ClosingBalance> [1..*] ?
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</ClosingBalance>
</ClosingBalances>
<Assets> [0..1] ?
<Assetgroups> [1] ?
<AssetsGroup> [1..*] ?
<AssetGroupId> AssetGroupIdTYPE </AssetGroupId> [0..1]
<Name> xsd:string </Name> [0..1]
<Asset
status=" xsd:string (value comes from list: {'Active'|'Closed'|'Other'}) [0..1]"> [1..*]
<Id> AssetIdTYPE </Id> [1] ?
<Text> xsd:string </Text> [0..1] ?
<PurchaseDate> xsd:date </PurchaseDate> [0..1] ?
<DepreciationMethod> xsd:string </DepreciationMethod> [0..1] ?
<DepreciationFrequence> xsd:string </DepreciationFrequence> [0..1] ?
<DepreciationTime> xsd:int </DepreciationTime> [0..1] ?
<DepreciationValue> xsd:double </DepreciationValue> [0..1] ?
<AcquireValue> xsd:decimal </AcquireValue> [0..1] ?
<DepreciationThisYear> xsd:decimal </DepreciationThisYear> [0..1] ?
<AccumulatedDepreciation> xsd:decimal </AccumulatedDepreciation> [0..1] ?
<RestValue> xsd:decimal </RestValue> [0..1] ?
<CurrencyId> CurrencyIdTYPE </CurrencyId> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</Asset>
</AssetsGroup>
</Assetgroups>
</Assets>
</FinancialYear>
</FinancialYears>
</Accounting>
<AccountsPayable> [0..1] ?
<Suppliers> [1] ?
<Supplier> [1..*] ?
<SupplierId> SupplierIdTYPE </SupplierId> [1] ?
<SupplierName> xsd:string </SupplierName> [1] ?
<SupplierCity> xsd:string </SupplierCity> [0..1] ?
<SupplierOrganizationalNumber> xsd:string </SupplierOrganizationalNumber> [0..1] ?
<SubNumber> xsd:string </SubNumber> [0..1] ?
</Supplier>
</Suppliers>
<Invoices> [1] ?
<Invoice> [1..*] ?
<SupplierId> SupplierIdTYPE </SupplierId> [1] ?
<InvoiceType> xsd:NMTOKEN (value comes from list: {'DEBIT'|'CREDIT'}) </InvoiceType> [0..1] ?
<InvoiceNumber> xsd:string </InvoiceNumber> [1] ?
<InvoiceDate> xsd:date </InvoiceDate> [1] ?
<DueDate> xsd:date </DueDate> [0..1] ?
<InternalId> xsd:string </InternalId> [0..1] ?
<ArrivalDate> xsd:date </ArrivalDate> [0..1] ?
<RegistredDate> xsd:date </RegistredDate> [0..1] ?
<ApprovalSign> xsd:string </ApprovalSign> [0..1] ?
<GrossAmount> xsd:decimal </GrossAmount> [1] ?
<VatAmount> xsd:decimal </VatAmount> [0..1] ?
<GrossAmountInCurrency> xsd:decimal </GrossAmountInCurrency> [0..1] ?
<VatAmountInCurrency> xsd:decimal </VatAmountInCurrency> [0..1] ?
<CurrencyId> CurrencyIdTYPE </CurrencyId> [0..1] ?
<Payment> PaymentTYPE </Payment> [0..*] ?
<JournalInfo> JournalInfoTYPE </JournalInfo> [0..1] ?
</Invoice>
</Invoices>
</AccountsPayable>
<AccountsReceivable> [0..1] ?
<Customers> [1] ?
<Customer> [1..*] ?
<CustomerId> CustomerIdTYPE </CustomerId> [1] ?
<CustomerName> xsd:string </CustomerName> [1] ?
<CustomerCity> xsd:string </CustomerCity> [0..1] ?
<CustomerOrganizationalNumber> xsd:string </CustomerOrganizationalNumber> [0..1] ?
<SubNumber> xsd:string </SubNumber> [0..1] ?
</Customer>
</Customers>
<Invoices> [1] ?
<Invoice> [1..*] ?
<CustomerId> CustomerIdTYPE </CustomerId> [1] ?
<InvoiceType> xsd:NMTOKEN (value comes from list: {'DEBIT'|'CREDIT'}) </InvoiceType> [0..1] ?
<InvoiceDate> xsd:date </InvoiceDate> [1] ?
<RegistredDate> xsd:date </RegistredDate> [0..1] ?
<InvoiceNumber> xsd:string </InvoiceNumber> [1] ?
<GrossAmount> xsd:decimal </GrossAmount> [1] ?
<VatAmount> xsd:decimal </VatAmount> [0..1] ?
<GrossAmountInCurrency> xsd:decimal </GrossAmountInCurrency> [0..1] ?
<VatAmountInCurrency> xsd:decimal </VatAmountInCurrency> [0..1] ?
<CurrencyId> CurrencyIdTYPE </CurrencyId> [0..1] ?
<Payment> PaymentTYPE </Payment> [0..*] ?
<JournalInfo> JournalInfoTYPE </JournalInfo> [0..1] ?
</Invoice>
</Invoices>
</AccountsReceivable>
</BTLA>
Schema Component Representation
<xsd:element name="BTLA">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="FileInfo">
<xsd:complexType>
<xsd:attribute name="softwareProduct" type=" xsd:string " use="required"/>
<xsd:attribute name="softwareVersion" type=" xsd:string " use="required"/>
<xsd:attribute name="createdBy" type=" xsd:string "/>
<xsd:attribute name="createdDate" type=" xsd:date " use="required"/>
<xsd:attribute name="createdTime" type=" xsd:time " use="required"/>
<xsd:attribute name="comment" type=" xsd:string "/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Company">
<xsd:complexType>
<xsd:attribute name="id" type=" xsd:string " use="required"/>
<xsd:attribute name="name" type=" xsd:string " use="required"/>
<xsd:attribute name="organizationalnumber" type=" xsd:string "/>
<xsd:attribute name="contact" type=" xsd:string "/>
<xsd:attribute name="addressLine1" type=" xsd:string "/>
<xsd:attribute name="addressLine2" type=" xsd:string "/>
<xsd:attribute name="postcode" type=" xsd:string "/>
<xsd:attribute name="city" type=" xsd:string "/>
<xsd:attribute name="state" type=" xsd:string "/>
<xsd:attribute name="country" type=" xsd:string "/>
<xsd:attribute name="countryCode">
<xsd:simpleType>
<xsd:restriction base=" xsd:token ">
<xsd:length value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="telephone" type=" xsd:string "/>
<xsd:attribute name="fax" type=" xsd:string "/>
<xsd:attribute name="email" type=" xsd:string "/>
<xsd:attribute name="homepage" type=" xsd:string "/>
</xsd:complexType>
</xsd:element>
<xsd:element name="Currency" type=" CurrencyIdTYPE " default="SEK" minOccurs="0"/>
<xsd:element name="Accounting" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Accounts" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Account" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" AccountIdTYPE "/>
<xsd:element name="Name" type=" xsd:string "/>
<xsd:element name="Type" type=" xsd:string " minOccurs="0"/>
<--<xsd:element name="Type" type="AccountTypeTYPE" minOccurs="0"> <xsd:annotation> <xsd:documentation xml:lang="sv">Kontotyp enligt kodlista</xsd:documentation> </xsd:annotation> </xsd:element>-->
<xsd:element name="SruCode" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base=" xsd:integer ">
<xsd:attribute name="number" use="optional">
<xsd:simpleType>
<xsd:restriction base=" xsd:integer ">
<xsd:totalDigits value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="chartOfAccountsType" use="optional">
<xsd:simpleType>
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="BAS95"/>
<xsd:enumeration value="BAS96"/>
<xsd:enumeration value="EUBAS97"/>
<xsd:enumeration value="BAS2000"/>
<xsd:enumeration value="OTHER"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="nameOfChartOfAccounts" type=" xsd:string " use="optional"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="TypeOfObjectGroups" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TypeOfObjectGroup" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" TypeOfObjectGroupIdTYPE "/>
<xsd:element name="Name" type=" xsd:string "/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ObjectGroups" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ObjectGroup" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" ObjectGroupIdTYPE "/>
<xsd:element name="Name" type=" xsd:string "/>
<xsd:element name="TypeOfObjectGroupId" type=" TypeOfObjectGroupIdTYPE "/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="TypeOfObjects" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="TypeOfObject" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" TypeOfObjectIdTYPE "/>
<xsd:element name="Name" type=" xsd:string "/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Objects" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Object" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" ObjectIdTYPE "/>
<xsd:element name="Name" type=" xsd:string "/>
<xsd:element name="TypeOfObjectId" type=" TypeOfObjectIdTYPE "/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="FinancialYears">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="FinancialYear" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Journals" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Journal" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" xsd:string " minOccurs="0"/>
<xsd:element name="Name" type=" xsd:string " minOccurs="0"/>
<xsd:element name="JournalEntry" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type=" xsd:string "/>
<xsd:element name="Date" type=" xsd:date "/>
<xsd:element name="JournalEntryType" type=" JournalEntryInfoTYPE " minOccurs="0"/>
<xsd:element name="Text" type=" xsd:string " minOccurs="0"/>
<xsd:element name="Period" type=" PeriodTYPE " minOccurs="0"/>
<xsd:element name="LedgerEntry" maxOccurs="unbounded">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base=" LedgerEntryTYPE ">
<xsd:attribute name="revoked" type=" xsd:boolean " use="optional" default="false"/>
<xsd:attribute name="revokedBy" type=" xsd:string " use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="OpeningBalances" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="OpeningBalance" maxOccurs="unbounded">
<xsd:complexType>
<xsd:group ref=" BalanceGROUP "/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Balances" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Balance" type=" BalanceWithPeriodTYPE " maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Budgets" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Budget" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" minOccurs="0"/>
<xsd:element name="Name" type=" xsd:string " minOccurs="0"/>
<xsd:element name="BudgetEntry" type=" BalanceWithPeriodTYPE " maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="BudgetID" type=" xsd:string "/>
<xsd:attribute name="BudgetName" type=" xsd:string "/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ClosingBalances" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="ClosingBalance" maxOccurs="unbounded">
<xsd:complexType>
<xsd:group ref=" BalanceGROUP "/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Assets" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Assetgroups">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AssetsGroup" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="AssetGroupId" type=" AssetGroupIdTYPE " minOccurs="0"/>
<xsd:element name="Name" type=" xsd:string " minOccurs="0"/>
<xsd:element name="Asset" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:group ref=" AssetGroup "/>
</xsd:sequence>
<xsd:attribute name="status">
<xsd:simpleType>
<xsd:restriction base=" xsd:string ">
<xsd:enumeration value="Active"/>
<xsd:enumeration value="Closed"/>
<xsd:enumeration value="Other"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="start" type=" xsd:date " use="required"/>
<xsd:attribute name="end" type=" xsd:date " use="required"/>
<xsd:attribute name="isClosed" type=" xsd:boolean " default="true"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AccountsPayable" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Suppliers">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Supplier" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SupplierId" type=" SupplierIdTYPE "/>
<xsd:element name="SupplierName" type=" xsd:string "/>
<xsd:element name="SupplierCity" type=" xsd:string " minOccurs="0"/>
<xsd:element name="SupplierOrganizationalNumber" type=" xsd:string " minOccurs="0"/>
<xsd:element name="SubNumber" type=" xsd:string " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Invoices">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Invoice" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="SupplierId" type=" SupplierIdTYPE "/>
<xsd:element name="InvoiceType" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="DEBIT"/>
<xsd:enumeration value="CREDIT"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="InvoiceNumber" type=" xsd:string "/>
<xsd:element name="InvoiceDate" type=" xsd:date "/>
<xsd:element name="DueDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="InternalId" type=" xsd:string " minOccurs="0"/>
<xsd:element name="ArrivalDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="RegistredDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="ApprovalSign" type=" xsd:string " minOccurs="0"/>
<xsd:element name="GrossAmount" type=" xsd:decimal "/>
<xsd:element name="VatAmount" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="GrossAmountInCurrency" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="VatAmountInCurrency" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="CurrencyId" type=" CurrencyIdTYPE " minOccurs="0"/>
<xsd:element name="Payment" type=" PaymentTYPE " minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="JournalInfo" type=" JournalInfoTYPE " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AccountsReceivable" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Customers">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Customer" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CustomerId" type=" CustomerIdTYPE "/>
<xsd:element name="CustomerName" type=" xsd:string "/>
<xsd:element name="CustomerCity" type=" xsd:string " minOccurs="0"/>
<xsd:element name="CustomerOrganizationalNumber" type=" xsd:string " minOccurs="0"/>
<xsd:element name="SubNumber" type=" xsd:string " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Invoices">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Invoice" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="CustomerId" type=" CustomerIdTYPE "/>
<xsd:element name="InvoiceType" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="DEBIT"/>
<xsd:enumeration value="CREDIT"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="InvoiceDate" type=" xsd:date "/>
<xsd:element name="RegistredDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="InvoiceNumber" type=" xsd:string "/>
<xsd:element name="GrossAmount" type=" xsd:decimal "/>
<xsd:element name="VatAmount" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="GrossAmountInCurrency" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="VatAmountInCurrency" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="CurrencyId" type=" CurrencyIdTYPE " minOccurs="0"/>
<xsd:element name="Payment" type=" PaymentTYPE " minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="JournalInfo" type=" JournalInfoTYPE " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="BTLAType">
<xsd:simpleType>
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="BALANCES"/>
<xsd:enumeration value="TRANSACTIONS"/>
<xsd:enumeration value="LEDGERENTRIES"/>
<xsd:enumeration value="ASSETS"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
top

Global Definitions

Complex Type: BalanceWithPeriodTYPE

Super-types: None
Sub-types: None
Name BalanceWithPeriodTYPE
Abstract no
Documentation Typdefinition för en saldopost för en viss period
XML Instance Representation
<...>
<Period> PeriodTYPE </Period> [1] ?
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</...>
Schema Component Representation
<xsd:complexType name="BalanceWithPeriodTYPE">
<xsd:sequence>
<xsd:element name="Period" type=" PeriodTYPE "/>
<xsd:group ref=" BalanceGROUP "/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: JournalInfoTYPE

Super-types: None
Sub-types: None
Name JournalInfoTYPE
Abstract no
Documentation Typdefinition för en referens till en verifikationspost
XML Instance Representation
<...>
<FinancialYear> xsd:date </FinancialYear> [1] ?
<JournalId> xsd:string </JournalId> [1] ?
<JournalEntryId> xsd:string </JournalEntryId> [1] ?
<JournalDate> xsd:date </JournalDate> [1] ?
</...>
Schema Component Representation
<xsd:complexType name="JournalInfoTYPE">
<xsd:sequence>
<xsd:element name="FinancialYear" type=" xsd:date "/>
<xsd:element name="JournalId" type=" xsd:string "/>
<xsd:element name="JournalEntryId" type=" xsd:string "/>
<xsd:element name="JournalDate" type=" xsd:date "/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: LedgerEntryTYPE

Super-types: None
Sub-types: None
Name LedgerEntryTYPE
Abstract no
Documentation Typdefinition för en transaktionspost
XML Instance Representation
<...>
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<RegistredDate> xsd:date </RegistredDate> [0..1] ?
<RegistredBy> xsd:string </RegistredBy> [0..1] ?
<Text> xsd:string </Text> [0..1] ?
<Date> xsd:date </Date> [0..1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
</...>
Schema Component Representation
<xsd:complexType name="LedgerEntryTYPE">
<xsd:sequence>
<xsd:element name="AccountId" type=" AccountIdTYPE "/>
<xsd:element name="Amount" type=" xsd:decimal "/>
<xsd:element name="RegistredDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="RegistredBy" type=" xsd:string " minOccurs="0"/>
<xsd:element name="Text" type=" xsd:string " minOccurs="0"/>
<xsd:element name="Date" type=" xsd:date " minOccurs="0"/>
<xsd:element name="Quantity" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="Unit" type=" xsd:string " minOccurs="0"/>
<xsd:element name="ObjectGroup" type=" ObjectGroupReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Object" type=" ObjectReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: ObjectGroupReferenceTYPE

Super-types: None
Sub-types: None
Name ObjectGroupReferenceTYPE
Abstract no
Documentation Typdefinition för en angivelse av en dimension
XML Instance Representation
<...>
<TypeOfObjectGroupId> TypeOfObjectGroupIdTYPE </TypeOfObjectGroupId> [1] ?
<ObjectGroupId> ObjectGroupIdTYPE </ObjectGroupId> [1] ?
</...>
Schema Component Representation
<xsd:complexType name="ObjectGroupReferenceTYPE">
<xsd:sequence>
<xsd:element name="TypeOfObjectGroupId" type=" TypeOfObjectGroupIdTYPE "/>
<xsd:element name="ObjectGroupId" type=" ObjectGroupIdTYPE "/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: ObjectReferenceTYPE

Super-types: None
Sub-types: None
Name ObjectReferenceTYPE
Abstract no
Documentation Typdefinition för en angivelse av ett objekt
XML Instance Representation
<...>
<TypeOfObjectId> TypeOfObjectIdTYPE </TypeOfObjectId> [1] ?
<ObjectId> ObjectIdTYPE </ObjectId> [1] ?
</...>
Schema Component Representation
<xsd:complexType name="ObjectReferenceTYPE">
<xsd:sequence>
<xsd:element name="TypeOfObjectId" type=" TypeOfObjectIdTYPE "/>
<xsd:element name="ObjectId" type=" ObjectIdTYPE "/>
</xsd:sequence>
</xsd:complexType>
top

Complex Type: PaymentTYPE

Super-types: None
Sub-types: None
Name PaymentTYPE
Abstract no
Documentation Typdefinition för en betalningshändelse
XML Instance Representation
<...>
<AssignmentDate> xsd:date </AssignmentDate> [0..1] ?
<PaymentDate> xsd:date </PaymentDate> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<AmountInCurrency> xsd:decimal </AmountInCurrency> [0..1] ?
<CurrencyId> CurrencyIdTYPE </CurrencyId> [0..1] ?
<ReceiverReference> xsd:string </ReceiverReference> [0..1] ?
<SenderReference> xsd:string </SenderReference> [0..1] ?
<IntermediaryReference> xsd:string </IntermediaryReference> [0..1] ?
<ModeOfPayment> xsd:NMTOKEN (value comes from list: {'POSTALGIRO'|'BANKGIRO'|'DEPOSIT'|'CHECK'|'CASH'|'SETTLEMENT'|'IBAN'|'UNKNOWN'}) </ModeOfPayment> [1] ?
<AccountNumber> xsd:string </AccountNumber> [0..1] ?
<AdditionalInfo> xsd:string </AdditionalInfo> [0..1] ?
<JournalInfo> JournalInfoTYPE </JournalInfo> [0..1] ?
</...>
Schema Component Representation
<xsd:complexType name="PaymentTYPE">
<xsd:sequence>
<xsd:element name="AssignmentDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="PaymentDate" type=" xsd:date "/>
<xsd:element name="Amount" type=" xsd:decimal "/>
<xsd:element name="AmountInCurrency" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="CurrencyId" type=" CurrencyIdTYPE " minOccurs="0"/>
<xsd:element name="ReceiverReference" type=" xsd:string " minOccurs="0"/>
<xsd:element name="SenderReference" type=" xsd:string " minOccurs="0"/>
<xsd:element name="IntermediaryReference" type=" xsd:string " minOccurs="0"/>
<xsd:element name="ModeOfPayment">
<xsd:simpleType>
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="POSTALGIRO"/>
<xsd:enumeration value="BANKGIRO"/>
<xsd:enumeration value="DEPOSIT"/>
<xsd:enumeration value="CHECK"/>
<xsd:enumeration value="CASH"/>
<xsd:enumeration value="SETTLEMENT"/>
<xsd:enumeration value="IBAN"/>
<xsd:enumeration value="UNKNOWN"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="AccountNumber" type=" xsd:string " minOccurs="0"/>
<xsd:element name="AdditionalInfo" type=" xsd:string " minOccurs="0"/>
<xsd:element name="JournalInfo" type=" JournalInfoTYPE " minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
top

Model Group: AssetGroup

Name AssetGroup
Documentation Beskriver en anläggningstillgång
XML Instance Representation
<Id> AssetIdTYPE </Id> [1] ?
<Text> xsd:string </Text> [0..1] ?
<PurchaseDate> xsd:date </PurchaseDate> [0..1] ?
<DepreciationMethod> xsd:string </DepreciationMethod> [0..1] ?
<DepreciationFrequence> xsd:string </DepreciationFrequence> [0..1] ?
<DepreciationTime> xsd:int </DepreciationTime> [0..1] ?
<DepreciationValue> xsd:double </DepreciationValue> [0..1] ?
<AcquireValue> xsd:decimal </AcquireValue> [0..1] ?
<DepreciationThisYear> xsd:decimal </DepreciationThisYear> [0..1] ?
<AccumulatedDepreciation> xsd:decimal </AccumulatedDepreciation> [0..1] ?
<RestValue> xsd:decimal </RestValue> [0..1] ?
<CurrencyId> CurrencyIdTYPE </CurrencyId> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
Schema Component Representation
<xsd:group name="AssetGroup">
<xsd:sequence>
<xsd:element name="Id" type=" AssetIdTYPE "/>
<xsd:element name="Text" type=" xsd:string " minOccurs="0"/>
<xsd:element name="PurchaseDate" type=" xsd:date " minOccurs="0"/>
<xsd:element name="DepreciationMethod" type=" xsd:string " minOccurs="0"/>
<xsd:element name="DepreciationFrequence" type=" xsd:string " minOccurs="0"/>
<xsd:element name="DepreciationTime" type=" xsd:int " minOccurs="0"/>
<xsd:element name="DepreciationValue" type=" xsd:double " minOccurs="0"/>
<xsd:element name="AcquireValue" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="DepreciationThisYear" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="AccumulatedDepreciation" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="RestValue" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="CurrencyId" type=" CurrencyIdTYPE " minOccurs="0"/>
<xsd:element name="ObjectGroup" type=" ObjectGroupReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Object" type=" ObjectReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:group>
top

Model Group: BalanceGROUP

Name BalanceGROUP
Documentation Typdefinition för en saldopost
XML Instance Representation
<AccountId> AccountIdTYPE </AccountId> [1] ?
<Amount> xsd:decimal </Amount> [1] ?
<Quantity> xsd:decimal </Quantity> [0..1] ?
<Unit> xsd:string </Unit> [0..1] ?
<ObjectGroup> ObjectGroupReferenceTYPE </ObjectGroup> [0..*] ?
<Object> ObjectReferenceTYPE </Object> [0..*] ?
Schema Component Representation
<xsd:group name="BalanceGROUP">
<xsd:sequence>
<xsd:element name="AccountId" type=" AccountIdTYPE " nillable="1"/>
<xsd:element name="Amount" type=" xsd:decimal "/>
<xsd:element name="Quantity" type=" xsd:decimal " minOccurs="0"/>
<xsd:element name="Unit" type=" xsd:string " minOccurs="0"/>
<xsd:element name="ObjectGroup" type=" ObjectGroupReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="Object" type=" ObjectReferenceTYPE " minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:group>
top

Simple Type: AccountIdTYPE

Super-types: xsd:integer < AccountIdTYPE (by restriction)
Sub-types: None
Name AccountIdTYPE
Content
  • Base XSD Type: integer
  • value >= 1
Documentation Typdefinition för ett kontonr

En int kan inte ha en minsta längd. Däremot kan man säga att den ska ha ett värde större än eller lika med 1. Karin Bredenberg 2007-03-30
Schema Component Representation
<xsd:simpleType name="AccountIdTYPE">
<xsd:restriction base=" xsd:integer ">
<xsd:minInclusive value="1"/>
<--<xsd:minLength value="1"/>-->
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: AccountTypeTYPE

Super-types: xsd:NMTOKEN < AccountTypeTYPE (by restriction)
Sub-types: None
Name AccountTypeTYPE
Content
  • Base XSD Type: NMTOKEN
  • value comes from list: {'ASSET'|'LIABILITY'|'INCOME'|'COST'}
Documentation Typdefinition för en kontotyp
Schema Component Representation
<xsd:simpleType name="AccountTypeTYPE">
<xsd:restriction base=" xsd:NMTOKEN ">
<xsd:enumeration value="ASSET"/>
<xsd:enumeration value="LIABILITY"/>
<xsd:enumeration value="INCOME"/>
<xsd:enumeration value="COST"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: AssetGroupIdTYPE

Super-types: xsd:string < AssetGroupIdTYPE (by restriction)
Sub-types: None
Name AssetGroupIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en assetgroupidentitet
Schema Component Representation
<xsd:simpleType name="AssetGroupIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: AssetIdTYPE

Super-types: xsd:string < AssetIdTYPE (by restriction)
Sub-types: None
Name AssetIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en assetidentitet
Schema Component Representation
<xsd:simpleType name="AssetIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: CurrencyIdTYPE

Super-types: xsd:token < CurrencyIdTYPE (by restriction)
Sub-types: None
Name CurrencyIdTYPE
Content
  • Base XSD Type: token
  • length = 3
Documentation Typdefinition för en valutakod. Anges enligt kodlista ISO 4217.
Schema Component Representation
<xsd:simpleType name="CurrencyIdTYPE">
<xsd:restriction base=" xsd:token ">
<xsd:length value="3"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: CustomerIdTYPE

Super-types: xsd:string < CustomerIdTYPE (by restriction)
Sub-types: None
Name CustomerIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en kundidentitet
Schema Component Representation
<xsd:simpleType name="CustomerIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: JournalEntryInfoTYPE

Super-types: xsd:string < JournalEntryInfoTYPE (by restriction)
Sub-types: None
Name JournalEntryInfoTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en JournalEntryType
Schema Component Representation
<xsd:simpleType name="JournalEntryInfoTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: ObjectGroupIdTYPE

Super-types: xsd:string < ObjectGroupIdTYPE (by restriction)
Sub-types: None
Name ObjectGroupIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en dimensionsidentitet
Schema Component Representation
<xsd:simpleType name="ObjectGroupIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: ObjectIdTYPE

Super-types: xsd:string < ObjectIdTYPE (by restriction)
Sub-types: None
Name ObjectIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en objektidentitet
Schema Component Representation
<xsd:simpleType name="ObjectIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: PeriodTYPE

Super-types: xsd:integer < PeriodTYPE (by restriction)
Sub-types: None
Name PeriodTYPE
Content
  • Base XSD Type: integer
  • value >= 0
  • total no. of digits = 6
Documentation Typdefinition för en bokföringsperiod. Period anger kalandermånad inom räkenskapsåret. Period 1 är lika med första månaden i räkenskapsåret. Period 0 avser hela året.

I elementet period som är av denna typ sägs att det skall anges med fyra siffror. Detta medför att vi ändrar totalDigits från 2 till 4. Karin Bredenberg, 2007-03-30

Möjlighet att ange perioden med året med fyra siffror måste finnas vilket ger att max blir 6 stället för 4. Karin Bredenberg, 2007-11-07
Schema Component Representation
<xsd:simpleType name="PeriodTYPE">
<xsd:restriction base=" xsd:integer ">
<xsd:minInclusive value="0"/>
<xsd:totalDigits value="6"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: SupplierIdTYPE

Super-types: xsd:string < SupplierIdTYPE (by restriction)
Sub-types: None
Name SupplierIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinititon för en leverantörsidentitet
Schema Component Representation
<xsd:simpleType name="SupplierIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Simple Type: TypeOfObjectGroupIdTYPE

Super-types: xsd:string < TypeOfObjectGroupIdTYPE (by restriction)
Sub-types: None
Name TypeOfObjectGroupIdTYPE
Content
  • Base XSD Type: string
Documentation Typdefinititon för en dimensionstypsidentitet
Schema Component Representation
<xsd:simpleType name="TypeOfObjectGroupIdTYPE">
<xsd:restriction base=" xsd:string "/>
</xsd:simpleType>
top

Simple Type: TypeOfObjectIdTYPE

Super-types: xsd:string < TypeOfObjectIdTYPE (by restriction)
Sub-types: None
Name TypeOfObjectIdTYPE
Content
  • Base XSD Type: string
  • length >= 1
Documentation Typdefinition för en objektidentitet
Schema Component Representation
<xsd:simpleType name="TypeOfObjectIdTYPE">
<xsd:restriction base=" xsd:string ">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia" >
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice [1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1] ?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexType name="AusAddress">
<complexContent>
<extension base=" Address ">
<sequence>
<element name="state" type=" AusStates "/>
<element name="postcode">
<simpleType>
<restriction base=" string ">
<pattern value="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attribute name="country" type=" string " fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top