### TTimePeriod XML Instance Representation Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01MetaInformation.html Shows the XML instance structure for the TTimePeriod complex type, including attributes and child elements for start and end dates. ```xml <... dataValidForEntirePeriod="xsd:boolean" [1] text="TString32000" [0..1] > Start Choice [1] xsd:gYear [1] xsd:gYearMonth [1] xsd:date [1] End Choice Start Choice [1] xsd:gYear [1] xsd:gYearMonth [1] xsd:date [1] End Choice ``` -------------------------------- ### XML instance representation of ecoSpold element with constraints Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01ImpactDataset.html Shows the XML structure of the ecoSpold root element, including its attributes (validationId, validationStatus) and nested dataset elements with comments for uniqueness and key reference constraints. The dataset is repeated [1..*] and allows any elements from other namespaces (lax validation). Used to understand the instance format of EcoSpold 01 impact datasets. ```xml es:TDataset [1..*] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation for regionalCodes Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoInventRegionalCodes.html Example XML instance of the regionalCodes element. It contains one or more regionalCode elements, each with an optional description attribute and text content of type regionalCode. ```xml [1..*] regionalCode ``` -------------------------------- ### XML Instance Representation of EcoSpold01Dataset Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01Dataset.html Shows the XML structure of the EcoSpold01Dataset with placeholders for attributes and elements. Includes comments for uniqueness constraints (pkPersonNumber, pkSourceNumber, pkExchangeNumber) and key reference constraints (fkDataEntryByPerson, fkDataGenerationAndPublication, fkDataGenerationAndPublicationSource, fkAllocationExchange, fkAllocationExchangeInOut, fkValidationPerson, fkExchangeSource). ```xml <... validationId="xsd:integer" [0..1] validationStatus="xsd:string" [0..1] > es:TDataset [1..*] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation for units element Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoInventUnits.html Shows an example XML instance of the 'units' element with a 'unit' child element. The 'localUnit' attribute is required and must be a string with a maximum length of 20 characters. ```xml Start Sequence [1..*] [1] TUnit End Sequence ``` -------------------------------- ### XML Instance Representation of TActivityDescription Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02Activity.html Shows the XML instance structure for TActivityDescription, listing child elements with their types, cardinalities, and uniqueness constraints. The comments indicate the selector and field for each uniqueness constraint. This is a representation of the XML instance, not a complete document. ```xml <...> TActivity [1] TClassification [0..*] TGeography [1] TTechnology [1] TTimePeriod [1] TMacroEconomicScenario [1] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation for TIntermediateExchange Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02ChildFlowData.html Shows the XML structure for an intermediate exchange, including attributes like intermediateExchangeId, activityLinkId, productionVolumeAmount, and child elements such as productionVolumeComment and productionVolumeUncertainty. Includes a choice between inputGroup and outputGroup with allowed values, and allows any elements from other namespaces. ```xml <... intermediateExchangeId="TUuid" [0..1] intermediateExchangeContextId="TUuid" [0..1] activityLinkId="TUuid" [0..1] activityLinkIdOverwrittenByChild="xsd:boolean" [0..1] activityLinkContextId="TUuid" [0..1] productionVolumeAmount="TFloatNumber" [0..1] productionVolumeVariableName="TVariableName" [0..1] productionVolumeMathematicalRelation="TBaseString32000" [0..1] productionVolumeSourceId="TUuid" [0..1] productionVolumeSourceIdOverwrittenByChild="xsd:boolean" [0..1] productionVolumeSourceContextId="TUuid" [0..1] productionVolumeSourceYear="TBaseString30" [0..1] productionVolumeSourceFirstAuthor="TBaseString40" [0..1] > TString32000 [0..*] TUncertainty [0..1] TClassification [0..*] Start Choice [1] xsd:integer (_value_ comes from list: {'1'|'2'|'3'|'5'}) [0..1] xsd:integer (_value_ comes from list: {'0'|'2'|'3'|'5'}) [0..1] End Choice Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation of TExchange Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01FlowData.html Shows the XML instance structure for the TExchange complex type, listing all attributes and the choice between inputGroup and outputGroup. Attribute cardinalities are shown in brackets, and the CASNumber pattern and length constraints are noted. ```xml <... number="TIndexNumber" [1] category="TCategoryName" [0..1] subCategory="TCategoryName" [0..1] localCategory="TCategoryName" [0..1] localSubCategory="TCategoryName" [0..1] CASNumber="xsd:string (_pattern_ = \d{6,6}-\d{2,2}-\d) (_length_ = 11)" [0..1] name="TString255" [1] location="TRegionalCode" [0..1] unit="TUnit" [1] meanValue="TFloatNumber" [1] uncertaintyType="xsd:integer (0 <= _value_ <= 4)" [0..1] standardDeviation95="TFloatNumber" [0..1] formula="TString40" [0..1] referenceToSource="TIndexNumber" [0..1] pageNumbers="TString30" [0..1] generalComment="TString32000" [0..1] localName="TString80" [0..1] infrastructureProcess="xsd:boolean" [0..1] minValue="TFloatNumber" [0..1] maxValue="TFloatNumber" [0..1] mostLikelyValue="TFloatNumber" [0..1] > Start Choice [0..1] xsd:integer (1 <= _value_ <= 5) [1] xsd:integer (0 <= _value_ <= 4) [1] End Choice ``` -------------------------------- ### XML Instance Representation for ecoSpold Element Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01ElementaryDataset.html Shows the XML instance representation for the ecoSpold element, including attributes and child elements. It includes comments about uniqueness and key reference constraints. ```XML TDataset [1..*] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation of TReferenceFunction Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01MetaInformation.html Shows the XML instance structure for the TReferenceFunction complex type, listing attributes and their types, with a sequence of synonym elements. Attributes include datasetRelatesToProduct, name, localName, infrastructureProcess, amount, unit, category, subCategory, localCategory, localSubCategory, and optional attributes like includedProcesses, generalComment, infrastructureIncluded, CASNumber, statisticalClassification, and formula. ```xml <... datasetRelatesToProduct="xsd:boolean" [1] name="TString255" [1] localName="TString255" [1] infrastructureProcess="xsd:boolean" [1] amount="TFloatNumber" [1] unit="TUnit" [1] category="TCategoryName" [1] subCategory="TCategoryName" [1] localCategory="TCategoryName" [1] localSubCategory="TCategoryName" [1] includedProcesses="TString32000" [0..1] generalComment="TString32000" [0..1] infrastructureIncluded="xsd:boolean" [0..1] CASNumber="xsd:string (_pattern_ = \d{1,6}-\d{2,2}-\d) (_length_ <= 11)" [0..1] statisticalClassification="xsd:long (_pattern_ = \d{1,8})" [0..1] formula="TString40" [0..1] > Start Sequence [0..*] TString255 [1] End Sequence ``` -------------------------------- ### TValidation XML Instance Representation Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01MetaInformation.html Shows the XML instance structure for the TValidation complex type, including attributes for proofreading details and validator. ```xml <... proofReadingDetails="TString32000" [1] proofReadingValidator="TIndexNumber" [1] otherDetails="TString32000" [0..1] /> ``` -------------------------------- ### TActivity XML instance representation Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02ChildMetaInformation.html Shows the XML instance representation of the TActivity complex type, listing its attributes and child elements with cardinalities and data types. Includes uniqueness constraints for allocationComment and generalComment. ```xml <... id="TUuid" [0..1] activityNameId="TUuid" [0..1] activityNameContextId="TUuid" [0..1] parentActivityId="TUuid" [1] parentActivityContextId="TUuid" [0..1] inheritanceDepth="xsd:integer" [1] type="xsd:integer (1 <= _value_ <= 2)" [0..1] specialActivityType="xsd:integer (0 <= _value_ <= 10)" [1] energyValues="xsd:integer (0 <= _value_ <= 2)" [0..1] masterAllocationPropertyId="TUuid" [0..1] masterAllocationPropertyIdOverwrittenByChild="xsd:boolean" [0..1] masterAllocationPropertyContextId="TUuid" [0..1] datasetIcon="xsd:anyURI" [0..1] > TString120 [0..*] TSynonym [0..*] TString32000 [0..*] TString32000 [0..*] TTextAndImage [0..1] TTextAndImage [0..1] TTag [0..*] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### TActivityDataset XML Instance Structure Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02Activity.html XML instance representation of TActivityDataset showing the required child elements and their types, with uniqueness constraints on classification and variableName. ```xml <...> TActivityDescription [1] TFlowData [1] TModellingAndValidation [1] TAdministrativeInformation [1] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### TAdministrativeInformation XML instance and XSD schema Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02Activity.html Shows the XML instance structure and the corresponding XSD schema definition for the TAdministrativeInformation complex type. The instance representation includes the dataEntryBy, dataGeneratorAndPublication, and fileAttributes elements, with a uniqueness constraint on contextName by xml:lang. The schema component defines the sequence and the same uniqueness constraint. ```XML <...> TDataEntryBy [1] TDataGeneratorAndPublication [1] TFileAttributes [1] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` ```XSD ``` -------------------------------- ### EcoSpold 01 Schema Root Element Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01FlowData.html Shows the root element of the EcoSpold 01 schema, including the include directive for the data types schema and the version attribute. ```xml ... ``` -------------------------------- ### Schema Component Representation: xsd:schema with includes Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01Dataset.html XSD schema declaration for EcoSpold01 with target namespace, form defaults, version, and includes for data types, meta-information, and flow data. ```xsd ... ``` -------------------------------- ### ecoSpold XML Instance Structure Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02.html XML instance representation of the ecoSpold element, showing the choice between activityDataset and childActivityDataset, each with cardinality [1], and the allowance for any elements from other namespaces with lax validation. ```xml Start Choice [1..*] es:TActivityDataset [1] esc:TActivityDataset [1] End Choice Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation for TMacroEconomicScenario Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02ChildMetaInformation.html Shows the XML instance structure for the TMacroEconomicScenario complex type, including optional attributes macroEconomicScenarioId and macroEconomicScenarioContextId, and child elements name and comment. The placeholder <...> indicates the root element name. ```xml <... macroEconomicScenarioId="TUuid" [0..1] macroEconomicScenarioContextId="TUuid" [0..1] > TString80 [0..*] TString32000 [0..*] Allow any elements from a namespace other than this schema's namespace (strict validation). [0..*] ``` -------------------------------- ### XML Instance Representation of TTechnology Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02ChildMetaInformation.html Shows the XML instance structure for the TTechnology complex type, including the technologyLevel attribute and comment element with uniqueness constraints. It allows any elements from other namespaces. ```xml <... technologyLevel="xsd:integer (0 <= _value_ <= 5)" [0..1] > TTextAndImage [0..1] Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ``` -------------------------------- ### XML Instance Representation for TAdministrativeInformation Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01ElementaryDataset.html Shows the XML instance structure for the TAdministrativeInformation complex type, including dataEntryBy and person elements with cardinalities. ```xml <...> TDataEntryBy [0..1] TPerson [0..*] ``` -------------------------------- ### Schema Component Representation: xsd:schema Source: https://pyecospold.readthedocs.io/en/latest/_static/v1-schema/EcoSpold01ElementaryDataset.html Represents the EcoSpold01Elementary schema component, including includes and redefines for related schema files. ```xsd ... ``` -------------------------------- ### TIntermediateExchange XML instance representation Source: https://pyecospold.readthedocs.io/en/latest/_static/v2-schema/EcoSpold02FlowData.html XML instance representation of the TIntermediateExchange type, extending TCustomExchange. Shows attributes and child elements for intermediate exchanges, including production volume fields, uncertainty, classification, and a choice between inputGroup and outputGroup. Includes uniqueness constraints for productionVolumeUncertainty and classification. ```XML <... intermediateExchangeId="TUuid" [1] intermediateExchangeContextId="TUuid" [0..1] activityLinkId="TUuid" [0..1] activityLinkIdOverwrittenByChild="xsd:boolean" [0..1] activityLinkContextId="TUuid" [0..1] productionVolumeAmount="TFloatNumber" [0..1] productionVolumeVariableName="TVariableName" [0..1] productionVolumeMathematicalRelation="TBaseString32000" [0..1] productionVolumeSourceId="TUuid" [0..1] productionVolumeSourceIdOverwrittenByChild="xsd:boolean" [0..1] productionVolumeSourceContextId="TUuid" [0..1] productionVolumeSourceYear="TBaseString30" [0..1] productionVolumeSourceFirstAuthor="TBaseString40" [0..1] > TString32000 [0..*] TUncertainty [0..1] TClassification [0..*] Start Choice [1] xsd:integer (_value_ comes from list: {'1'|'2'|'3'|'5'}) [1] xsd:integer (_value_ comes from list: {'0'|'2'|'3'|'5'}) [1] End Choice Allow any elements from a namespace other than this schema's namespace (lax validation). [0..*] ```