Revision: 29
Author: duraid
Date: Wed Sep 16 13:27:46 2009
Log: [No log message]
http://code.google.com/p/sdmxdotnet/source/detail?r=29
Added:
/trunk/lib/BIS_JOINT_DEBT_Compact.xsd
/trunk/lib/BIS_JOINT_DEBT_CrossSectional.xsd
/trunk/lib/BIS_JOINT_DEBT_Utility.xsd
/trunk/lib/CompactSample.xml
/trunk/lib/ContactMDStructureSample.xml
/trunk/lib/CrossSectionalSample.xml
/trunk/lib/GenericMetadataSample.xml
/trunk/lib/GenericMetadataSample2.xml
/trunk/lib/GenericSample.xml
/trunk/lib/IMF_CONTACT_MetadataReport.xsd
/trunk/lib/MetadataReportSample.xml
/trunk/lib/NotifyRegistryEvent.xml
/trunk/lib/QueryProvisioningRequest.xml
/trunk/lib/QueryProvisioningResponse.xml
/trunk/lib/QueryRegistrationRequest.xml
/trunk/lib/QueryRegistrationResponse.xml
/trunk/lib/QuerySample.xml
/trunk/lib/QueryStructureRequest.xml
/trunk/lib/QueryStructureResponse.xml
/trunk/lib/ReadMe.txt
/trunk/lib/StructureSample.xml
/trunk/lib/SubmitProvisioningRequest.xml
/trunk/lib/SubmitProvisioningResponse.xml
/trunk/lib/SubmitRegistrationRequest.xml
/trunk/lib/SubmitRegistrationResponse.xml
/trunk/lib/SubmitStructureRequest.xml
/trunk/lib/SubmitStructureResponse.xml
/trunk/lib/SubmitSubscriptionRequest.xml
/trunk/lib/SubmitSubscriptionResponse.xml
/trunk/lib/UtilitySample.xml
/trunk/src/SDMX.Tests/Code.cs
/trunk/src/SDMX.Tests/CodeList.cs
/trunk/src/SDMX.Tests/Concept.cs
/trunk/src/SDMX.Tests/DataSet.cs
/trunk/src/SDMX.Tests/Dimension.cs
/trunk/src/SDMX.Tests/Extensions.cs
/trunk/src/SDMX.Tests/GenericDataTests.cs
/trunk/src/SDMX.Tests/GenericDataTests.cs.bak
/trunk/src/SDMX.Tests/KeyFamily.cs
/trunk/src/SDMX.Tests/Obs.cs
/trunk/src/SDMX.Tests/SDMXException.cs
/trunk/src/SDMX.Tests/Series.cs
Modified:
/trunk/src/SDMX/Messages/Structure.cs
/trunk/src/SDMX.Tests/QueryMessageTests.cs
/trunk/src/SDMX.Tests/SDMX.Tests.csproj
/trunk/src/SDMX.Tests/Utility.cs
=======================================
--- /dev/null
+++ /trunk/lib/BIS_JOINT_DEBT_Compact.xsd Wed Sep 16 13:27:46 2009
@@ -0,0 +1,465 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<xs:schema
targetNamespace="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:compact"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:compact"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common">
+ <xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
schemaLocation="SDMXCompactData.xsd"/>
+ <xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
schemaLocation="SDMXCommon.xsd"/>
+ <xs:element name="DataSet" type="DataSetType"
substitutionGroup="compact:DataSet"/>
+ <xs:complexType name="DataSetType">
+ <xs:complexContent>
+ <xs:extension base="compact:DataSetType">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="SiblingGroup"/>
+ <xs:element ref="Series"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"/>
+ </xs:choice>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="SiblingGroup" type="SiblingGroupType"
substitutionGroup="compact:Group"/>
+ <xs:complexType name="SiblingGroupType">
+ <xs:complexContent>
+ <xs:extension base="compact:GroupType">
+ <xs:sequence>
+
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="JD_TYPE" type="CL_JD_TYPE" use="optional"/>
+ <xs:attribute name="JD_CATEGORY" type="CL_JD_CATEGORY" use="optional"/>
+ <xs:attribute name="VIS_CTY" type="CL_BIS_IF_REF_AREA" use="optional"/>
+ <xs:attribute name="AVAILABILITY" type="CL_AVAILABILITY"
use="optional"/>
+ <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="required"/>
+ <xs:attribute name="BIS_UNIT" type="CL_BIS_UNIT" use="required"/>
+ <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="Series" type="SeriesType"
substitutionGroup="compact:Series"/>
+ <xs:complexType name="SeriesType">
+ <xs:complexContent>
+ <xs:extension base="compact:SeriesType">
+ <xs:sequence>
+ <xs:element ref="Obs" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="COLLECTION" type="CL_COLLECTION" use="optional"/>
+ <xs:attribute name="FREQ" type="CL_FREQ" use="optional"/>
+ <xs:attribute name="JD_TYPE" type="CL_JD_TYPE" use="optional"/>
+ <xs:attribute name="JD_CATEGORY" type="CL_JD_CATEGORY" use="optional"/>
+ <xs:attribute name="VIS_CTY" type="CL_BIS_IF_REF_AREA" use="optional"/>
+ <xs:attribute name="TIME_FORMAT" type="CL_TIME_FORMAT" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="Obs" type="ObsType" substitutionGroup="compact:Obs"/>
+ <xs:complexType name="ObsType">
+ <xs:complexContent>
+ <xs:extension base="compact:ObsType">
+ <xs:attribute name="TIME_PERIOD" type="common:TimePeriodType"
use="optional"/>
+ <xs:attribute name="OBS_VALUE" type="xs:double" use="optional"/>
+ <xs:attribute name="OBS_CONF" type="CL_BIS_OBS_CONF" use="optional"/>
+ <xs:attribute name="OBS_PRE_BREAK" type="xs:string" use="optional"/>
+ <xs:attribute name="OBS_STATUS" type="xs:string" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+
+ <xs:simpleType name="CL_OBS_STATUS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Present</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Missing</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_AVAILABILITY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_DECIMALS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>zero</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>one</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>two</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>three</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>four</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>five</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>six</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="7">
+ <xs:annotation>
+ <xs:documentation>seven</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="8">
+ <xs:annotation>
+ <xs:documentation>eight</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_UNIT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CHF">
+ <xs:annotation>
+ <xs:documentation>Swiss Francs</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="EUR">
+ <xs:annotation>
+ <xs:documentation>Euros</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="NZD">
+ <xs:annotation>
+ <xs:documentation>New Zealand Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="USD">
+ <xs:annotation>
+ <xs:documentation>United States Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_UNIT_MULT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>Units</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>Tens</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>Hundreds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>Ten Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>Millions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>Billions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_COLLECTION">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Average of observations through
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>Beginning of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>End of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Highest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Lowest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Middle of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="S">
+ <xs:annotation>
+ <xs:documentation>Summed through period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="U">
+ <xs:annotation>
+ <xs:documentation>Unknown</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="V">
+ <xs:annotation>
+ <xs:documentation>Other</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Y">
+ <xs:annotation>
+ <xs:documentation>Annualized</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_OBS_CONF">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>Non-publishable and confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Non-publishable, but
non-confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="R">
+ <xs:annotation>
+ <xs:documentation>Confidential statistical information due to
identifiable respondents</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_FREQ">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Semi-annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="W">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_JD_TYPE">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P">
+ <xs:annotation>
+ <xs:documentation>Amounts outstanding at end of
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Net Disbursm.(Cat B,C,E,F) or Val.Adj.Change in
stocks(Cat A,D,J,L,M)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_JD_CATEGORY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Bank
Loans</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Debt Securities
Issued Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Brady
Bonds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Multilateral
Claims</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Off. Bilateral Loans
(DAC Creditors)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="G">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Liabilities To
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Debt Securities Issued
Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="I">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="J">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Locational)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="K">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Consolidated)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Claims on
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, International Reserve Assets
(excl. Gold)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_IF_REF_AREA">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CH">
+ <xs:annotation>
+ <xs:documentation>Switzerland (includes the Bank for International
Settlements)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="DE">
+ <xs:annotation>
+ <xs:documentation>Germany (includes the European Central
Bank)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="US">
+ <xs:annotation>
+ <xs:documentation>United States (includes American Samoa, Guam,
Midway Islands)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="MX">
+ <xs:annotation>
+ <xs:documentation>Mexico</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_TIME_FORMAT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P1Y">
+ <xs:annotation>
+ <xs:documentation>Annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P6M">
+ <xs:annotation>
+ <xs:documentation>Semi-annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P3M">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P7D">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="PT1M">
+ <xs:annotation>
+ <xs:documentation>Minutely</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
=======================================
--- /dev/null
+++ /trunk/lib/BIS_JOINT_DEBT_CrossSectional.xsd Wed Sep 16 13:27:46 2009
@@ -0,0 +1,479 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<xs:schema
targetNamespace="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:cross"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:cross"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common">
+ <xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
schemaLocation="SDMXCrossSectionalData.xsd"/>
+ <xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
schemaLocation="SDMXCommon.xsd"/>
+ <xs:element name="DataSet" type="DataSetType"
substitutionGroup="cross:DataSet"/>
+ <xs:complexType name="DataSetType">
+ <xs:complexContent>
+ <xs:extension base="cross:DataSetType">
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="Group"/>
+ <xs:element ref="Section"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"/>
+ </xs:choice>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="Group" type="GroupType"
substitutionGroup="cross:Group"/>
+ <xs:complexType name="GroupType">
+ <xs:complexContent>
+ <xs:extension base="cross:GroupType">
+ <xs:sequence>
+ <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="TIME" type="common:TimePeriodType" use="optional"/>
+ <xs:attribute name="AVAILABILITY" type="CL_AVAILABILITY"
use="optional"/>
+ <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="optional"/>
+ <xs:attribute name="BIS_UNIT" type="CL_BIS_UNIT" use="optional"/>
+ <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>
+ <xs:attribute name="FREQ" type="CL_FREQ" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="Section" type="SectionType"
substitutionGroup="cross:Section"/>
+ <xs:complexType name="SectionType">
+ <xs:complexContent>
+ <xs:extension base="cross:SectionType">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="STOCKS" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element ref="FLOWS" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"/>
+ </xs:choice>
+ <xs:attribute name="COLLECTION" type="CL_COLLECTION" use="optional"/>
+ <xs:attribute name="TIME_FORMAT" type="CL_TIME_FORMAT" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="STOCKS" type="STOCKSType"
substitutionGroup="cross:Obs"/>
+ <xs:complexType name="STOCKSType">
+ <xs:complexContent>
+ <xs:extension base="cross:ObsType">
+ <xs:sequence>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>
+ <xs:attribute name="OBS_CONF" type="CL_BIS_OBS_CONF" use="optional"/>
+ <xs:attribute name="OBS_PRE_BREAK" type="xs:string" use="optional"/>
+ <xs:attribute name="JD_CATEGORY" type="CL_JD_CATEGORY" use="optional"/>
+ <xs:attribute name="VIS_CTY" type="CL_BIS_IF_REF_AREA" use="optional"/>
+ <xs:attribute name="value" type="xs:double" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="FLOWS" type="FLOWSType" substitutionGroup="cross:Obs"/>
+ <xs:complexType name="FLOWSType">
+ <xs:complexContent>
+ <xs:extension base="cross:ObsType">
+ <xs:sequence>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>
+ <xs:attribute name="OBS_CONF" type="CL_BIS_OBS_CONF" use="optional"/>
+ <xs:attribute name="OBS_PRE_BREAK" type="xs:string" use="optional"/>
+ <xs:attribute name="JD_CATEGORY" type="CL_JD_CATEGORY" use="optional"/>
+ <xs:attribute name="VIS_CTY" type="CL_BIS_IF_REF_AREA" use="optional"/>
+ <xs:attribute name="value" type="xs:double" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:simpleType name="CL_OBS_STATUS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Present</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Missing</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_AVAILABILITY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_DECIMALS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>zero</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>one</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>two</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>three</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>four</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>five</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>six</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="7">
+ <xs:annotation>
+ <xs:documentation>seven</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="8">
+ <xs:annotation>
+ <xs:documentation>eight</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_UNIT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CHF">
+ <xs:annotation>
+ <xs:documentation>Swiss Francs</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="EUR">
+ <xs:annotation>
+ <xs:documentation>Euros</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="NZD">
+ <xs:annotation>
+ <xs:documentation>New Zealand Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="USD">
+ <xs:annotation>
+ <xs:documentation>United States Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_UNIT_MULT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>Units</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>Tens</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>Hundreds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>Ten Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>Millions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>Billions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_COLLECTION">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Average of observations through
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>Beginning of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>End of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Highest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Lowest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Middle of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="S">
+ <xs:annotation>
+ <xs:documentation>Summed through period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="U">
+ <xs:annotation>
+ <xs:documentation>Unknown</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="V">
+ <xs:annotation>
+ <xs:documentation>Other</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Y">
+ <xs:annotation>
+ <xs:documentation>Annualized</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_OBS_CONF">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>Non-publishable and confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Non-publishable, but
non-confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="R">
+ <xs:annotation>
+ <xs:documentation>Confidential statistical information due to
identifiable respondents</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_FREQ">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Semi-annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="W">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_JD_TYPE">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P">
+ <xs:annotation>
+ <xs:documentation>Amounts outstanding at end of
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Net Disbursm.(Cat B,C,E,F) or Val.Adj.Change in
stocks(Cat A,D,J,L,M)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_JD_CATEGORY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Bank
Loans</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Debt Securities
Issued Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Brady
Bonds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Multilateral
Claims</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Off. Bilateral Loans
(DAC Creditors)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="G">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Liabilities To
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Debt Securities Issued
Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="I">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="J">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Locational)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="K">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Consolidated)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Claims on
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, International Reserve Assets
(excl. Gold)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_BIS_IF_REF_AREA">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CH">
+ <xs:annotation>
+ <xs:documentation>Switzerland (includes the Bank for International
Settlements)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="DE">
+ <xs:annotation>
+ <xs:documentation>Germany (includes the European Central
Bank)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="US">
+ <xs:annotation>
+ <xs:documentation>United States (includes American Samoa, Guam,
Midway Islands)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="MX">
+ <xs:annotation>
+ <xs:documentation>Mexico</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="CL_TIME_FORMAT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P1Y">
+ <xs:annotation>
+ <xs:documentation>Annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P6M">
+ <xs:annotation>
+ <xs:documentation>Semi-annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P3M">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P7D">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="PT1M">
+ <xs:annotation>
+ <xs:documentation>Minutely</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
=======================================
--- /dev/null
+++ /trunk/lib/BIS_JOINT_DEBT_Utility.xsd Wed Sep 16 13:27:46 2009
@@ -0,0 +1,515 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<xs:schema
+ xmlns:xs="
http://www.w3.org/2001/XMLSchema"
+ xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
+ xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
+
xmlns="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:utility"
+
targetNamespace="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:utility"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+>
+
+<xs:import
+ namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
+ schemaLocation="SDMXUtilityData.xsd"
+/>
+
+<xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
schemaLocation="SDMXCommon.xsd"/>
+
+
+<xs:element name="DataSet" substitutionGroup="utility:DataSet"
type="DataSetType"/>
+
+<xs:complexType name="DataSetType">
+ <xs:complexContent>
+ <xs:extension base="utility:DataSetType">
+ <xs:sequence>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="SiblingGroup"/>
+ </xs:choice>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+<xs:element name="SiblingGroup" substitutionGroup="utility:Group"
type="SiblingGroupType"/>
+
+<xs:complexType name="SiblingGroupType">
+ <xs:complexContent>
+ <xs:extension base="utility:GroupType">
+ <xs:sequence>
+ <xs:element name="Series" type="SeriesType" maxOccurs="unbounded"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="AVAILABILITY" type="CL_AVAILABILITY"
use="required"/>
+ <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="required"/>
+ <xs:attribute name="BIS_UNIT" type="CL_BIS_UNIT" use="required"/>
+ <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="required"/>
+
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+<xs:element name="Series" substitutionGroup="utility:Series"
type="SeriesType"/>
+
+<xs:complexType name="SeriesType">
+ <xs:complexContent>
+ <xs:extension base="utility:SeriesType">
+ <xs:sequence>
+ <xs:element ref="Key"/>
+ <xs:element ref="Obs" maxOccurs="unbounded"/>
+ <xs:element name="Annotations" type="common:AnnotationsType"
minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="COLLECTION" type="CL_COLLECTION" use="required"/>
+ <xs:attribute name="TIME_FORMAT" type="CL_TIME_FORMAT" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+<xs:element name="Key" substitutionGroup="utility:Key" type="KeyType"/>
+
+<xs:complexType name="KeyType">
+ <xs:complexContent>
+ <xs:extension base="utility:KeyType">
+ <xs:sequence>
+ <xs:element name="FREQ" type="CL_FREQ"/>
+ <xs:element name="JD_TYPE" type="CL_JD_TYPE"/>
+ <xs:element name="JD_CATEGORY" type="CL_JD_CATEGORY"/>
+ <xs:element name="VIS_CTY" type="CL_BIS_IF_REF_AREA"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+<xs:element name="Obs" substitutionGroup="utility:Obs" type="ObsType"/>
+
+<xs:complexType name="ObsType">
+ <xs:complexContent>
+ <xs:extension base="utility:ObsType">
+ <xs:sequence>
+ <xs:element name="TIME_PERIOD" type="common:TimePeriodType" />
+ <xs:element name="OBS_VALUE" type="xs:double"/>
+ </xs:sequence>
+ <xs:attribute name="OBS_CONF" type="CL_BIS_OBS_CONF" use="optional"/>
+ <xs:attribute name="OBS_PRE_BREAK" type="xs:string" use="optional"/>
+ <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="required"/>
+
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+
+<xs:simpleType name="CL_AVAILABILITY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_OBS_STATUS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Present</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Missing</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_DECIMALS">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>zero</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>one</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>two</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>three</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>four</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>five</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>six</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="7">
+ <xs:annotation>
+ <xs:documentation>seven</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="8">
+ <xs:annotation>
+ <xs:documentation>eight</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_BIS_UNIT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CHF">
+ <xs:annotation>
+ <xs:documentation>Swiss Francs</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="EUR">
+ <xs:annotation>
+ <xs:documentation>Euros</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="NZD">
+ <xs:annotation>
+ <xs:documentation>New Zealand Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="USD">
+ <xs:annotation>
+ <xs:documentation>United States Dollars</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_UNIT_MULT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="0">
+ <xs:annotation>
+ <xs:documentation>Units</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="1">
+ <xs:annotation>
+ <xs:documentation>Tens</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="2">
+ <xs:annotation>
+ <xs:documentation>Hundreds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="3">
+ <xs:annotation>
+ <xs:documentation>Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="4">
+ <xs:annotation>
+ <xs:documentation>Ten Thousands</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="5">
+ <xs:annotation>
+ <xs:documentation>Millions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="6">
+ <xs:annotation>
+ <xs:documentation>Billions</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_COLLECTION">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Average of observations through
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>Beginning of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>End of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Highest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Lowest in period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Middle of period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="S">
+ <xs:annotation>
+ <xs:documentation>Summed through period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="U">
+ <xs:annotation>
+ <xs:documentation>Unknown</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="V">
+ <xs:annotation>
+ <xs:documentation>Other</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Y">
+ <xs:annotation>
+ <xs:documentation>Annualized</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_BIS_OBS_CONF">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>Non-publishable and confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>Free</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Non-publishable, but
non-confidential</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="R">
+ <xs:annotation>
+ <xs:documentation>Confidential statistical information due to
identifiable respondents</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_FREQ">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>Annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Semi-annually</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="W">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_JD_TYPE">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P">
+ <xs:annotation>
+ <xs:documentation>Amounts outstanding at end of
period</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="Q">
+ <xs:annotation>
+ <xs:documentation>Net Disbursm.(Cat B,C,E,F) or Val.Adj.Change in
stocks(Cat A,D,J,L,M)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_JD_CATEGORY">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="A">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Bank
Loans</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="B">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Debt Securities
Issued Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="C">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Brady
Bonds</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="D">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="E">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Multilateral
Claims</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="F">
+ <xs:annotation>
+ <xs:documentation>External Debt, All Maturities, Off. Bilateral Loans
(DAC Creditors)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="G">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Liabilities To
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="H">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Debt Securities Issued
Abroad</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="I">
+ <xs:annotation>
+ <xs:documentation>Debt due within 1 year, Non-Bank Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="J">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Locational)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="K">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Liabilities to Banks
(Consolidated)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="L">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Trade
Credits</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="M">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, Total Claims on
Banks</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="N">
+ <xs:annotation>
+ <xs:documentation>Memorandum Item, International Reserve Assets (excl.
Gold)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CL_BIS_IF_REF_AREA">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="CH">
+ <xs:annotation>
+ <xs:documentation>Switzerland (includes the Bank for International
Settlements)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="DE">
+ <xs:annotation>
+ <xs:documentation>Germany (includes the European Central
Bank)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="US">
+ <xs:annotation>
+ <xs:documentation>United States (includes American Samoa, Guam, Midway
Islands)</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="MX">
+ <xs:annotation>
+ <xs:documentation>Mexico</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+<xs:simpleType name="CL_TIME_FORMAT">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="P1Y">
+ <xs:annotation>
+ <xs:documentation>Annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P6M">
+ <xs:annotation>
+ <xs:documentation>Semi-annual</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P3M">
+ <xs:annotation>
+ <xs:documentation>Quarterly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1M">
+ <xs:annotation>
+ <xs:documentation>Monthly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P7D">
+ <xs:annotation>
+ <xs:documentation>Weekly</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="P1D">
+ <xs:annotation>
+ <xs:documentation>Daily</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="PT1M">
+ <xs:annotation>
+ <xs:documentation>Minutely</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+
+ </xs:restriction>
+</xs:simpleType>
+
+</xs:schema>
=======================================
--- /dev/null
+++ /trunk/lib/CompactSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<CompactData
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
+xmlns:bisc="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:compact"
+xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
+xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
SDMXMessage.xsd
+urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:compact
BIS_JOINT_DEBT_Compact.xsd
+
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact
SDMXCompactData.xsd" >
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46305</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <bisc:DataSet>
+ <bisc:SiblingGroup VIS_CTY="MX" JD_TYPE="P" JD_CATEGORY="A"
AVAILABILITY="A" DECIMALS="2" BIS_UNIT="USD" UNIT_MULT="5"/>
+ <bisc:SiblingGroup VIS_CTY="MX" JD_TYPE="P" JD_CATEGORY="B"
AVAILABILITY="A" DECIMALS="2" BIS_UNIT="USD" UNIT_MULT="5"/>
+ <bisc:Series FREQ="M" COLLECTION="B" TIME_FORMAT="P1M" VIS_CTY="MX"
JD_TYPE="P" JD_CATEGORY="A" >
+ <bisc:Obs TIME_PERIOD="2000-01" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2001-02" OBS_VALUE="2.29" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-03" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-04" OBS_VALUE="5.24" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-05" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-06" OBS_VALUE="3.78" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-07" OBS_VALUE="3.65" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-08" OBS_VALUE="2.37" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-09" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-10" OBS_VALUE="3.17" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-11" OBS_VALUE="3.34" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-12" OBS_VALUE="1.21" OBS_STATUS="A"/>
+ </bisc:Series>
+ <bisc:Series FREQ="A" COLLECTION="B" TIME_FORMAT="P1Y" VIS_CTY="MX"
JD_TYPE="P" JD_CATEGORY="A">
+ <bisc:Obs TIME_PERIOD="2000-01" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ </bisc:Series>
+
+
+ <bisc:Series FREQ="M" COLLECTION="B" TIME_FORMAT="P1M" VIS_CTY="MX"
JD_TYPE="P" JD_CATEGORY="B">
+ <bisc:Obs TIME_PERIOD="2000-01" OBS_VALUE="5.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2001-02" OBS_VALUE="3.29" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-03" OBS_VALUE="6.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-04" OBS_VALUE="2.24" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-05" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-06" OBS_VALUE="7.78" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-07" OBS_VALUE="3.65" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-08" OBS_VALUE="5.37" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-09" OBS_VALUE="3.14" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-10" OBS_VALUE="1.17" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-11" OBS_VALUE="4.34" OBS_STATUS="A"/>
+ <bisc:Obs TIME_PERIOD="2000-12" OBS_VALUE="1.21" OBS_STATUS="A"/>
+ </bisc:Series>
+ <bisc:Series FREQ="A" COLLECTION="B" TIME_FORMAT="P1Y" VIS_CTY="MX"
JD_TYPE="P" JD_CATEGORY="B" >
+ <bisc:Obs TIME_PERIOD="2000-01" OBS_VALUE="4.14" OBS_STATUS="A"/>
+ </bisc:Series>
+ </bisc:DataSet>
+</CompactData>
=======================================
--- /dev/null
+++ /trunk/lib/ContactMDStructureSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,177 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+
+<Structure
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
SDMXMessage.xsd">
+ <Header>
+ <ID>BIS_01</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46301</Name>
+ <Prepared>2002-03-11T09:30:47-05:00</Prepared>
+ <Sender id="IMF">
+ <Name xml:lang="en">International Monetary Fund</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <Extracted>2002-03-11T09:30:47-05:00</Extracted>
+ </Header>
+
+<Concepts>
+<structure:ConceptScheme id="SDDS_CONTACTS" agencyID="IMF">
+ <structure:Name>Contact information</structure:Name>
+ <structure:Concept id="CONTACT" agencyID="IMF">
+ <structure:Name>Contact</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+ <structure:Concept id="NAME" agencyID="IMF">
+ <structure:Name>Name</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+ <structure:Concept id="ADDRESS" agencyID="IMF">
+ <structure:Name>Address</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+ <structure:Concept id="TELEPHONE" agencyID="IMF">
+ <structure:Name>Telephone number</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+ <structure:Concept id="E-MAIL" agencyID="IMF">
+ <structure:Name>E-mail address</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+ <structure:Concept id="PRIMARY_CONTACT" agencyID="IMF" parent="CONTACT"
parentAgency="IMF">
+ <structure:Name>Primary contact</structure:Name>
+ <structure:TextFormat/>
+ </structure:Concept>
+</structure:ConceptScheme>
+</Concepts>
+<MetadataStructureDefinitions>
+
+<structure:MetadataStructureDefinition id="SDDS_CONTACT_INFO"
agencyID="IMF">
+<structure:Name>SDDS Contact Info</structure:Name>
+<structure:TargetIdentifiers>
+ <structure:FullTargetIdentifier id="COMPONENT">
+ <structure:Name>Contacts</structure:Name>
+ <structure:IdentifierComponent id="METADATAFLOW">
+ <structure:Name>Metadata Flow</structure:Name>
+ <structure:TargetObjectClass>MetadataFlow</structure:TargetObjectClass>
+ <structure:RepresentationScheme representationScheme="METADATAFLOWS"
representationSchemeAgency="IMF" representationSchemeType="Codelist"/>
+ </structure:IdentifierComponent>
+ <structure:IdentifierComponent id="CATEGORY">
+ <structure:Name>SDDS Categories</structure:Name>
+ <structure:TargetObjectClass>Category</structure:TargetObjectClass>
+ <structure:RepresentationScheme
representationScheme="SDDS_CATEGORY_SCHEME"
representationSchemeAgency="IMF" representationSchemeType="Category"/>
+ </structure:IdentifierComponent>
+ <structure:IdentifierComponent id="DATA_PROVIDER">
+ <structure:Name>Data Providers</structure:Name>
+ <structure:TargetObjectClass>DataProvider</structure:TargetObjectClass>
+ <structure:RepresentationScheme representationScheme="DATA_PROVIDER"
representationSchemeAgency="IMF" representationSchemeType="Organisation"/>
+ </structure:IdentifierComponent>
+ <structure:IdentifierComponent id="COMPONENT">
+ <structure:Name>Components</structure:Name>
+
<structure:TargetObjectClass>MetadataAttribute</structure:TargetObjectClass>
+ </structure:IdentifierComponent>
+ </structure:FullTargetIdentifier>
+ <structure:PartialTargetIdentifier id="CATEGORY">
+ <structure:Name>Category</structure:Name>
+
<structure:IdentifierComponentRef>METADATAFLOW</structure:IdentifierComponentRef>
+
<structure:IdentifierComponentRef>CATEGORY</structure:IdentifierComponentRef>
+
<structure:IdentifierComponentRef>DATA_PROVIDER</structure:IdentifierComponentRef>
+ </structure:PartialTargetIdentifier>
+ <structure:PartialTargetIdentifier id="AGENCY">
+ <structure:Name>Agency</structure:Name>
+
<structure:IdentifierComponentRef>METADATAFLOW</structure:IdentifierComponentRef>
+
<structure:IdentifierComponentRef>DATA_PROVIDER</structure:IdentifierComponentRef>
+ </structure:PartialTargetIdentifier>
+</structure:TargetIdentifiers>
+<structure:ReportStructure id="PRIMARY_CONTACT_REPORT_COMPONENT"
target="COMPONENT">
+ <structure:Name>Report for Primary Contact Information</structure:Name>
+ <structure:MetadataAttribute conceptRef="PRIMARY_CONTACT"
conceptAgency="IMF" conceptSchemeRef="SDDS_CONTACTS"
conceptSchemeAgency="IMF" usageStatus="Conditional">
+ <structure:MetadataAttribute conceptRef="NAME" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="ADDRESS" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="TELEPHONE" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="E-MAIL" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+
+ </structure:MetadataAttribute>
+
+</structure:ReportStructure>
+<structure:ReportStructure id="PRIMARY_CONTACT_REPORT_CATEGORY"
target="CATEGORY">
+ <structure:Name>Report for Primary Contact Information</structure:Name>
+ <structure:MetadataAttribute conceptRef="PRIMARY_CONTACT"
conceptAgency="IMF" conceptSchemeRef="SDDS_CONTACTS"
conceptSchemeAgency="IMF" usageStatus="Conditional">
+ <structure:MetadataAttribute conceptRef="NAME" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="ADDRESS" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="TELEPHONE" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="E-MAIL" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+
+ </structure:MetadataAttribute>
+
+</structure:ReportStructure>
+
+<structure:ReportStructure id="CONTACT_REPORT_COMPONENT"
target="COMPONENT">
+ <structure:Name>Report for Primary Contact Information</structure:Name>
+ <structure:MetadataAttribute conceptRef="CONTACT" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:MetadataAttribute conceptRef="NAME" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="ADDRESS" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="TELEPHONE" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="E-MAIL" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+
+ </structure:MetadataAttribute>
+
+</structure:ReportStructure>
+
+<structure:ReportStructure id="CONTACT_REPORT_CATEGORY" target="CATEGORY">
+ <structure:Name>Report for Primary Contact Information</structure:Name>
+ <structure:MetadataAttribute conceptRef="CONTACT" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:MetadataAttribute conceptRef="NAME" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="ADDRESS" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="TELEPHONE" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+ <structure:MetadataAttribute conceptRef="E-MAIL" conceptAgency="IMF"
conceptSchemeRef="SDDS_CONTACTS" conceptSchemeAgency="IMF"
usageStatus="Conditional">
+ <structure:TextFormat/>
+ </structure:MetadataAttribute>
+
+ </structure:MetadataAttribute>
+
+</structure:ReportStructure>
+</structure:MetadataStructureDefinition>
+</MetadataStructureDefinitions>
+</Structure>
=======================================
--- /dev/null
+++ /trunk/lib/CrossSectionalSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<!--
+
+Note that JD_TYPE has been transformed into two values provided at the
Observation level, one for each
+possible value for measures corrspomding to codes in JD_TYPE: P and Q. One
value for each of these measures can be provided for any given Observation.
+
+-->
+<CrossSectionalData
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
+xmlns:biscs="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:cross"
+xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
+xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
SDMXMessage.xsd
+urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:cross
BIS_JOINT_DEBT_CrossSectional.xsd
+
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross
SDMXCrossSectionalData.xsd">
+ <Header>
+ <ID>BIS947586</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46305</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetID>JD014</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2004-01-01</ReportingBegin>
+ <ReportingEnd>2004-01-01</ReportingEnd>
+ </Header>
+ <biscs:DataSet>
+ <biscs:Group TIME="2000" BIS_UNIT="USD" UNIT_MULT="5" DECIMALS="2"
AVAILABILITY="A" FREQ="A" >
+ <biscs:Section COLLECTION="B" TIME_FORMAT="P1Y">
+ <biscs:STOCKS JD_CATEGORY="A" value="3.14" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:FLOWS JD_CATEGORY="A" value="1.00" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:STOCKS JD_CATEGORY="B" value="6.39" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:FLOWS JD_CATEGORY="B" value="2.27" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:STOCKS JD_CATEGORY="C" value="2.34" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:FLOWS JD_CATEGORY="C" value="-1.00" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:STOCKS JD_CATEGORY="D" value="3.19" OBS_STATUS="A"
VIS_CTY="MX"/>
+ <biscs:FLOWS JD_CATEGORY="D" value="-1.06" OBS_STATUS="A"
VIS_CTY="MX"/>
+ </biscs:Section>
+ </biscs:Group>
+ </biscs:DataSet>
+</CrossSectionalData>
=======================================
--- /dev/null
+++ /trunk/lib/GenericMetadataSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,61 @@
+<?xml version="1.0"?>
+<!-- Copyright (c) SDMX 2005 -
www.sdmx.org -->
+<GenericMetadata
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:genericmetadata="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/genericmetadata"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/genericmetadata
+SDMXGenericMetadata.xsd
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="IMF">
+ <Name xml:lang="en">International Monetary Fund</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <genericmetadata:MetadataSet>
+
<genericmetadata:MetadataStructureRef>SDDS_CONTACT_INFO</genericmetadata:MetadataStructureRef>
+
<genericmetadata:MetadataStructureAgencyRef>IMF</genericmetadata:MetadataStructureAgencyRef>
+
+
+
<genericmetadata:ReportRef>PRIMARY_CONTACT_REPORT_CATEGORY</genericmetadata:ReportRef>
+
+
+ <genericmetadata:AttributeValueSet>
+ <genericmetadata:TargetRef>CATEGORY</genericmetadata:TargetRef>
+ <genericmetadata:TargetValues>
+ <genericmetadata:ComponentValue
object="MetadataFlow">SDDS_METADATA</genericmetadata:ComponentValue>
+ <genericmetadata:ComponentValue
object="Category">REAL_SECTOR.NAC</genericmetadata:ComponentValue>
+ <genericmetadata:ComponentValue
object="DataProvider">INSEE</genericmetadata:ComponentValue>
+ </genericmetadata:TargetValues>
+ <genericmetadata:ReportedAttribute conceptID="CONTACT">
+ <genericmetadata:ReportedAttribute conceptID="NAME">
+ <genericmetadata:Value>Marie Renaud</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ <genericmetadata:ReportedAttribute conceptID="ADDRESS">
+ <genericmetadata:Value>Chief, Quarterly, ...</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ <genericmetadata:ReportedAttribute conceptID="TELEPHONE">
+ <genericmetadata:Value>33 1 41176064</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ </genericmetadata:ReportedAttribute>
+ </genericmetadata:AttributeValueSet>
+ </genericmetadata:MetadataSet>
+</GenericMetadata>
=======================================
--- /dev/null
+++ /trunk/lib/GenericMetadataSample2.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0"?>
+<!-- Copyright (c) SDMX 2005 -
www.sdmx.org -->
+<GenericMetadata
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:genericmetadata="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/genericmetadata"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/genericmetadata
+SDMXGenericMetadata.xsd
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="IMF">
+ <Name xml:lang="en">International Monetary Fund</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <genericmetadata:MetadataSet>
+
<genericmetadata:MetadataStructureRef>SDDS_CONTACT_INFO</genericmetadata:MetadataStructureRef>
+
<genericmetadata:MetadataStructureAgencyRef>IMF</genericmetadata:MetadataStructureAgencyRef>
+
<genericmetadata:ReportRef>PRIMARY_CONTACT_REPORT_COMPONENT</genericmetadata:ReportRef>
+
+
+ <genericmetadata:AttributeValueSet>
+ <genericmetadata:TargetRef>COMPONENT</genericmetadata:TargetRef>
+ <genericmetadata:TargetValues>
+ <genericmetadata:ComponentValue
object="MetadataFlow">SDDS_METADATA</genericmetadata:ComponentValue>
+ <genericmetadata:ComponentValue
object="Category">REAL_SECTOR.NAC</genericmetadata:ComponentValue>
+ <genericmetadata:ComponentValue
object="DataProvider">INSEE</genericmetadata:ComponentValue>
+ <genericmetadata:ComponentValue
object="MetadataAttribute">SUMMARY_METHODOLOGY</genericmetadata:ComponentValue>
+ </genericmetadata:TargetValues>
+ <genericmetadata:ReportedAttribute conceptID="CONTACT">
+ <genericmetadata:ReportedAttribute conceptID="NAME">
+ <genericmetadata:Value>Marie Renaud</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ <genericmetadata:ReportedAttribute conceptID="ADDRESS">
+ <genericmetadata:Value>Chief, Quarterly, ...</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ <genericmetadata:ReportedAttribute conceptID="TELEPHONE">
+ <genericmetadata:Value>33 1 41176064</genericmetadata:Value>
+ </genericmetadata:ReportedAttribute>
+ </genericmetadata:ReportedAttribute>
+ </genericmetadata:AttributeValueSet>
+ </genericmetadata:MetadataSet>
+</GenericMetadata>
=======================================
--- /dev/null
+++ /trunk/lib/GenericSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<GenericData
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <DataSet>
+ <generic:KeyFamilyRef>BIS_JOINT_DEBT</generic:KeyFamilyRef>
+ <generic:Group type="SiblingGroup">
+ <generic:GroupKey>
+ <generic:Value concept="JD_TYPE" value="P"/>
+ <generic:Value concept="JD_CATEGORY" value="A"/>
+ <generic:Value concept="VIS_CTY" value="MX"/>
+ </generic:GroupKey>
+
+ <generic:Attributes>
+ <generic:Value concept="AVAILABILITY" value="A"/>
+ <generic:Value concept="DECIMALS" value="2"/>
+ <generic:Value concept="BIS_UNIT" value="USD"/>
+ <generic:Value concept="UNIT_MULT" value="5"/>
+ </generic:Attributes>
+ <generic:Series>
+ <generic:SeriesKey>
+ <generic:Value concept="FREQ" value="M"/>
+ <generic:Value concept="JD_TYPE" value="P"/>
+ <generic:Value concept="JD_CATEGORY" value="A"/>
+ <generic:Value concept="VIS_CTY" value="MX"/>
+ </generic:SeriesKey>
+ <generic:Attributes>
+ <generic:Value concept="COLLECTION" value="B"/>
+ <generic:Value concept="TIME_FORMAT" value="P1M"/>
+ </generic:Attributes>
+ <generic:Obs>
+ <generic:Time>2000-01</generic:Time>
+ <generic:ObsValue value="3.14"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+
+ <generic:Obs>
+ <generic:Time>2000-02</generic:Time>
+ <generic:ObsValue value="3.14"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-03</generic:Time>
+ <generic:ObsValue value="4.29"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-04</generic:Time>
+ <generic:ObsValue value="6.04"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-05</generic:Time>
+ <generic:ObsValue value="5.18"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-06</generic:Time>
+ <generic:ObsValue value="5.07"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-07</generic:Time>
+ <generic:ObsValue value="3.13"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-08</generic:Time>
+ <generic:ObsValue value="1.17"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-09</generic:Time>
+ <generic:ObsValue value="1.14"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-10</generic:Time>
+ <generic:ObsValue value="3.04"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-11</generic:Time>
+ <generic:ObsValue value="1.14"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ <generic:Obs>
+ <generic:Time>2000-12</generic:Time>
+ <generic:ObsValue value="3.24"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+
+ </generic:Series>
+ <generic:Series>
+ <generic:SeriesKey>
+ <generic:Value concept="FREQ" value="A"/>
+ <generic:Value concept="JD_TYPE" value="P"/>
+ <generic:Value concept="JD_CATEGORY" value="A"/>
+ <generic:Value concept="VIS_CTY" value="MX"/>
+ </generic:SeriesKey>
+ <generic:Attributes>
+ <generic:Value concept="COLLECTION" value="B"/>
+ <generic:Value concept="TIME_FORMAT" value="P1Y"/>
+ </generic:Attributes>
+ <generic:Obs>
+ <generic:Time>2000-01</generic:Time>
+ <generic:ObsValue value="3.14"/>
+ <generic:Attributes>
+ <generic:Value concept="OBS_STATUS" value="A"/>
+ </generic:Attributes>
+ </generic:Obs>
+ </generic:Series>
+
+
+ </generic:Group>
+ </DataSet>
+
+</GenericData>
=======================================
--- /dev/null
+++ /trunk/lib/IMF_CONTACT_MetadataReport.xsd Wed Sep 16 13:27:46 2009
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<xs:schema
+ xmlns:xs="
http://www.w3.org/2001/XMLSchema"
+
+
xmlns:metadatareport="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/metadatareport"
+ xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
+
xmlns="urn:sdmx:org.sdmx.infomodel.metadatastructuredefinition.metadatastructuredefinition=IMF:SDDS:metadatareport"
+
targetNamespace="urn:sdmx:org.sdmx.infomodel.metadatastructuredefinition.metadatastructuredefinition=IMF:SDDS:metadatareport"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+>
+
+
+
+<xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
schemaLocation="SDMXCommon.xsd"/>
+<xs:import
namespace="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/metadatareport"
schemaLocation="SDMXMetadataReport.xsd"/>
+
+
+<xs:element name="MetadataSet"
substitutionGroup="metadatareport:MetadataSet" type="MetadataSetType"/>
+
+<xs:complexType name="MetadataSetType">
+ <xs:complexContent>
+ <xs:extension base="metadatareport:MetadataSetType">
+ <xs:sequence>
+ <xs:element name="PRIMARY_CONTACT_INFO"
type="PRIMARY_CONTACT_INFOType" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="CONTACT_INFO" type="CONTACT_INFOType" minOccurs="0"
maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:extension>
+ </xs:complexContent>
+</xs:complexType>
+
+<xs:complexType name="PRIMARY_CONTACT_INFOType">
+ <xs:sequence>
+ <xs:element name="PRIMARY_CONTACT_INFOTarget"
type="PRIMARY_CONTACT_INFOTargetType"/>
+ <xs:element name="NAME" type="xs:string" minOccurs="0"/>
+ <xs:element name="ADDRESS" type="xs:string" minOccurs="0"/>
+ <xs:element name="TELEPHONE" type="xs:string" minOccurs="0"/>
+ <xs:element name="E-MAIL" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="CONTACT_INFOType">
+ <xs:sequence>
+ <xs:element name="CONTACT_INFOTarget" type="CONTACT_INFOTargetType"/>
+ <xs:element name="NAME" type="xs:string" minOccurs="0"/>
+ <xs:element name="ADDRESS" type="xs:string" minOccurs="0"/>
+ <xs:element name="TELEPHONE" type="xs:string" minOccurs="0"/>
+ <xs:element name="E-MAIL" type="xs:string" minOccurs="0"/>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="PRIMARY_CONTACT_INFOTargetType">
+ <xs:sequence>
+ <xs:element name="METADATAFLOW" type="METADATAFLOWType"/>
+ <xs:element name="CATEGORY" type="CATEGORYType"/>
+ <xs:element name="DATA_PROVIDER" type="DATA_PROVIDERType"/>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:complexType name="CONTACT_INFOTargetType">
+ <xs:sequence>
+ <xs:element name="METADATAFLOW" type="METADATAFLOWType"/>
+ <xs:element name="CATEGORY" type="CATEGORYType"/>
+ <xs:element name="DATA_PROVIDER" type="DATA_PROVIDERType"/>
+ </xs:sequence>
+</xs:complexType>
+
+<xs:simpleType name="METADATAFLOWType">
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="SDDS">
+ <xs:annotation>
+ <xs:documentation>Special Data Dissemination
metadata.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="GDDS">
+ <xs:annotation>
+ <xs:documentation>General Data Dissemination
metadata.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="CATEGORYType">
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="EXT_DEBT">
+ <xs:annotation>
+ <xs:documentation>External Debt</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="SNA">
+ <xs:annotation>
+ <xs:documentation>National Accounts</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+<xs:simpleType name="DATA_PROVIDERType">
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="ECB">
+ <xs:annotation>
+ <xs:documentation>European Central Bank</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="MX">
+ <xs:annotation>
+ <xs:documentation>Banco de Mexico</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+</xs:simpleType>
+
+
+</xs:schema>
=======================================
--- /dev/null
+++ /trunk/lib/MetadataReportSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<MetadataReport
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:metadatareport="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/metadatareport"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd
urn:sdmx:org.sdmx.infomodel.metadatastructuredefinition.metadatastructuredefinition=IMF:SDDS:metadatareport
IMF_CONTACT_MetadataReport.xsd"
xmlns:imfc="urn:sdmx:org.sdmx.infomodel.metadatastructuredefinition.metadatastructuredefinition=IMF:SDDS:metadatareport">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="IMF">
+ <Name xml:lang="en">International Monetary Fund</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <imfc:MetadataSet>
+
<metadatareport:MetadataStructureRef>SDDS_CONTACT_INFO</metadatareport:MetadataStructureRef>
+
<metadatareport:MetadataStructureAgencyRef>IMF</metadatareport:MetadataStructureAgencyRef>
+ <imfc:PRIMARY_CONTACT_INFO>
+ <imfc:PRIMARY_CONTACT_INFOTarget>
+ <imfc:METADATAFLOW>SDDS</imfc:METADATAFLOW>
+ <imfc:CATEGORY>EXT_DEBT</imfc:CATEGORY>
+ <imfc:DATA_PROVIDER>MX</imfc:DATA_PROVIDER>
+ </imfc:PRIMARY_CONTACT_INFOTarget>
+ <imfc:NAME>Maria Rodrigues</imfc:NAME>
+ <imfc:ADDRESS>5335 Zocalo, Mexico DF, Mexico 46578</imfc:ADDRESS>
+ <imfc:TELEPHONE>675-908-9999</imfc:TELEPHONE>
+ <imfc:E-MAIL>
mrodr...@bmex.org</imfc:E-MAIL>
+ </imfc:PRIMARY_CONTACT_INFO>
+ <imfc:CONTACT_INFO>
+ <imfc:CONTACT_INFOTarget>
+ <imfc:METADATAFLOW>SDDS</imfc:METADATAFLOW>
+ <imfc:CATEGORY>EXT_DEBT</imfc:CATEGORY>
+ <imfc:DATA_PROVIDER>MX</imfc:DATA_PROVIDER>
+ </imfc:CONTACT_INFOTarget>
+ <imfc:NAME>Geraldo Flores</imfc:NAME>
+ <imfc:ADDRESS>5335 Zocalo, Mexico DF, Mexico 46578</imfc:ADDRESS>
+ <imfc:TELEPHONE>675-908-4664</imfc:TELEPHONE>
+ <imfc:E-MAIL>
gfl...@bmex.org</imfc:E-MAIL>
+ </imfc:CONTACT_INFO>
+
+ </imfc:MetadataSet>
+
+
+</MetadataReport>
=======================================
--- /dev/null
+++ /trunk/lib/NotifyRegistryEvent.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <NotifyRegistryEvent>
+ <registry:EventTime>2005-07-14T11:22:04-05:00</registry:EventTime>
+
<registry:ObjectURN>urn:sdmx:org.sdmx.infomodel.registry.DataflowAgreementRef=BIS:OS_DATA_PROVIDER.1A.BIS:EXT_DEBT:Registration:2005-05-07T19:25:10.137+0200</registry:ObjectURN>
+
<registry:SubscriptionURN>urn:sdmx:infomodel.subscription=STAT:DEBT_DATA</registry:SubscriptionURN>
+ <registry:EventAction>Append</registry:EventAction>
+ <registry:RegistrationEvent>
+ <registry:Registration>
+ <registry:LastUpdated>2005-03-11T09:30:47-05:00</registry:LastUpdated>
+ <registry:ValidFrom>2005-06-11T09:21:00-05:00</registry:ValidFrom>
+ <registry:ValidTo>2005-09-11T12:00:00-05:00</registry:ValidTo>
+ <registry:Action>Append</registry:Action>
+ <registry:Datasource>
+
<registry:SimpleDatasource>
http://www.bis.org/debt_stats/JEDH3.xml</registry:SimpleDatasource>
+ </registry:Datasource>
+ <registry:ProvisionAgreementRef>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>BIS</registry:DataProviderID>
+ <registry:DataflowAgencyID>JEDH</registry:DataflowAgencyID>
+ <registry:DataflowID>JEDH_3</registry:DataflowID>
+ </registry:ProvisionAgreementRef>
+ </registry:Registration>
+ </registry:RegistrationEvent>
+ </NotifyRegistryEvent>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QueryProvisioningRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<!-- Copyright (c) SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryProvisioningRequest>
+ <registry:DataflowRef>
+ <registry:AgencyID>BIS</registry:AgencyID>
+ <registry:DataflowID>BIS_JEDH_DEBT</registry:DataflowID>
+ </registry:DataflowRef>
+ </QueryProvisioningRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QueryProvisioningResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryProvisioningResponse>
+
+ <registry:ProvisionAgreement
urn="urn:sdmx:org.sdmx.infomodel.registry.ProvisionAgreement=SDMX:DATA_PROVIDERS.BIS.BIS:BIS_JEDH_DEBT,1.2"
action="Append" indexTimeSeries="true" indexReportingPeriod="true" >
+ <registry:Name xml:lang="en">Debt data: Loans and Brady
Bonds</registry:Name>
+ <registry:DataflowRef>
+ <registry:AgencyID>BIS</registry:AgencyID>
+ <registry:DataflowID>BIS_JEDH_DEBT</registry:DataflowID>
+ <registry:Version>1.0</registry:Version>
+ </registry:DataflowRef>
+ <registry:DataProviderRef>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>BIS</registry:DataProviderID>
+ <registry:Version>1.0</registry:Version>
+ </registry:DataProviderRef>
+ </registry:ProvisionAgreement>
+ <registry:StatusMessage status="Success"/>
+ </QueryProvisioningResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QueryRegistrationRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryRegistrationRequest>
+ <registry:QueryType>DataSets</registry:QueryType>
+ <registry:ProvisionAgreementRef>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>STAT</registry:DataProviderID>
+ <registry:DataflowAgencyID>STAT</registry:DataflowAgencyID>
+ <registry:DataflowID>SERIES_3</registry:DataflowID>
+ </registry:ProvisionAgreementRef>
+ </QueryRegistrationRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QueryRegistrationResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryRegistrationResponse>
+ <registry:QueryResult timeSeriesMatch="false">
+ <registry:DataResult>
+ <registry:Datasource>
+
<registry:SimpleDatasource>
http://www.stat.org/new_stats/Series3_3.xml</registry:SimpleDatasource>
+ </registry:Datasource>
+ <registry:ProvisionAgreementRef>
+
<registry:URN>urn:sdmx:org.sdmx.infomodel.registry.DataflowAgreementRef=SDMX:DATA_PROVIDERS.STAT.STAT:SERIES_3:Registration:2005-05-07T19:25:10.137+0200</registry:URN>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>STAT</registry:DataProviderID>
+ <registry:DataflowAgencyID>STAT</registry:DataflowAgencyID>
+ <registry:DataflowID>SERIES_3</registry:DataflowID>
+ </registry:ProvisionAgreementRef>
+ </registry:DataResult>
+ </registry:QueryResult>
+ </QueryRegistrationResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QuerySample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<!--
+
+This document represents a query for data set with an ID of "JD014",
+which have values for dimension FREQ of "A" and "M" in them, with a value
for dimension JD_CATEGORY of "A",
+between the dates of January 1, 2000, and December 31, 2000.
+
+-->
+<QueryMessage
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd" >
+ <Header>
+ <ID>BIS_036579</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46303</Name>
+ <Prepared>2002-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <Extracted>2002-03-11T09:30:47-05:00</Extracted>
+ </Header>
+ <Query>
+ <query:DataWhere>
+ <query:And>
+ <query:Dimension id="JD_CATEGORY">A</query:Dimension>
+ <query:Dimension id="FREQ">M</query:Dimension>
+ <query:Dimension id="FREQ">A</query:Dimension>
+ <query:Time>
+ <query:StartTime>2000-01-01</query:StartTime>
+ <query:EndTime>2000-12-31</query:EndTime>
+ </query:Time>
+ <query:Or>
+ <query:DataSet>JD014</query:DataSet>
+ </query:Or>
+
+ </query:And>
+ </query:DataWhere>
+ </Query>
+</QueryMessage>
=======================================
--- /dev/null
+++ /trunk/lib/QueryStructureRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryStructureRequest resolveReferences="false">
+ <registry:CodelistRef>
+ <registry:AgencyID>STAT</registry:AgencyID>
+ <registry:CodelistID>CL_TOPICS</registry:CodelistID>
+ <registry:Version>1.0</registry:Version>
+ </registry:CodelistRef>
+ </QueryStructureRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/QueryStructureResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <QueryStructureResponse>
+ <registry:StatusMessage status="Success"/>
+ <registry:CodeLists>
+ <structure:CodeList id="CL_TOPICS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_topics.xml"
urn="urn:sdmx:org.sdmx.infomodel.codelist.CodeList=BIS:CL_TOPICS,1.0">
+ <structure:Name xml:lang="en">Debt Topics</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">Bank
loans</structure:Description>
+ </structure:Code>
+ <structure:Code value="B">
+ <structure:Description xml:lang="en">Brady
bonds</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ </registry:CodeLists>
+ </QueryStructureResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/ReadMe.txt Wed Sep 16 13:27:46 2009
@@ -0,0 +1,81 @@
+SDMX Technical Standards Version 2.0
+____________________________________
+
+This ZIP file contains SDMX schemas which are designed for general use as
part of the standard,
+as well as several sample schemas and XML instances which are intended to
be illustrative of how
+SDMX is used.
+
+All files should be unzipped into a single local directory before use.
+
+The following list explains which files are for general use, and which are
samples.
+
+
+SDMX Schemas
+_____________
+
+SDMXMessage.xsd (Ties all other general purpose schemas together and
provides a common envelope and header)
+SDMXStructure.xsd
+SDMXGenericData.xsd
+SDMXCommon.xsd
+xml.xsd (standard W3C schema used by SDMXCommon.xsd, and included for
convenience)
+SDMXQuery.xsd
+SDMXGenericMetadata.xsd
+SDMXRegistry.xsd
+SDMXUtilityData.xsd
+SDMXCompactData.xsd
+SDMXCrossSectionalData.xsd
+SDMXMetadataReport.xsd
+
+Samples of Generated Schemas
+____________________________
+
+These schemas are specific to key families or metadata structure
definitions. Each is derived from a sample
+structure file, and each has an accompanying data sample, as indicated.
+
+BIS_JOINT_DEBT_Compact.xsd (derived from StructureSample.xml, accompanied
by CompactSample.xml)
+BIS_JOINT_DEBT_Utility.xsd (derived from StructureSample.xml, accompanied
by UtilitySample.xml)
+BIS_JOINT_DEBT_CrossSectional.xsd (derived from StructureSample.xml,
accompanied by CrossSectionalSample.xml)
+IMF_CONTACT_MetadataReport.xsd (derived from ContactMDStructureSample.xml,
accompanied by MetadataReportSample.xml)
+
+Sample XML Instances
+_____________________
+
+As mentioned in section above:
+
+StructureSample.xml (key family example)
+CompactSample.xml
+UtilitySample.xml
+CrossSectionalSample.xml
+ContactMDStructureSample.xml
+MetadataReportSample.xml
+
+Additional sample files:
+
+GenericSample.xml (agrees with StructureSample.xml)
+GenericMetadataSample.xml (agrees with ContactMDStructureSample.xml)
+GenericMetadataSample2.xml (agrees with ContactMDStructureSample.xml)
+QuerySample.xml
+
+Registry Interface Samples:
+
+With the exception of NotifyRegistryEvent.xml, which has no
request-response pattern, all of these samples are in pairs.
+The request sample corresponds with the response sample.
+
+NotifyRegistryEvent.xml
+
+QueryProvisioningRequest.xml
+QueryProvisioningResponse.xml
+SubmitProvisioningRequest.xml
+SubmitProvisioningResponse.xml
+QueryStructureRequest.xml
+QueryStructureResponse.xml
+SubmitStructureRequest.xml
+SubmitStructureResponse.xml
+SubmitRegistrationRequest.xml
+SubmitRegistrationResponse.xml
+QueryRegistrationRequest.xml
+QueryRegistrationResponse.xml
+SubmitSubscriptionRequest.xml
+SubmitSubscriptionResponse.xml
+
+
=======================================
--- /dev/null
+++ /trunk/lib/StructureSample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,388 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+
+<Structure
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
SDMXMessage.xsd">
+ <Header>
+ <ID>BIS_01</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46301</Name>
+ <Prepared>2002-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <Extracted>2002-03-11T09:30:47-05:00</Extracted>
+ </Header>
+ <CodeLists>
+
+ <structure:CodeList id="CL_OBS_STATUS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_obs_status.xml">
+ <structure:Name xml:lang="en">Observation Status</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">Present</structure:Description>
+ </structure:Code>
+ <structure:Code value="M">
+ <structure:Description xml:lang="en">Missing</structure:Description>
+ </structure:Code>
+
+ </structure:CodeList>
+ <structure:CodeList id="CL_FREQ" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_freq.htm">
+ <structure:Name xml:lang="en">Frequency code list (BIS,
ECB)</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">Annual</structure:Description>
+ </structure:Code>
+ <structure:Code value="D">
+ <structure:Description xml:lang="en">Daily</structure:Description>
+ </structure:Code>
+ <structure:Code value="H">
+ <structure:Description
xml:lang="en">Semi-annual</structure:Description>
+ </structure:Code>
+ <structure:Code value="M">
+ <structure:Description xml:lang="en">Monthly</structure:Description>
+ </structure:Code>
+ <structure:Code value="Q">
+ <structure:Description xml:lang="en">Quarterly</structure:Description>
+ </structure:Code>
+ <structure:Code value="W">
+ <structure:Description xml:lang="en">Weekly</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_JD_TYPE" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_jd_type.xml">
+ <structure:Name xml:lang="en">Data Type (amounts outstanding, net
disbursement or changes)</structure:Name>
+ <structure:Code value="P">
+ <structure:Description xml:lang="en">Amounts outstanding at end of
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="Q">
+ <structure:Description xml:lang="en">Net Disbursm.(Cat B,C,E,F) or
Val.Adj.Change in stocks(Cat A,D,J,L,M)</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_JD_CATEGORY" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_jd_category.xml">
+ <structure:Name xml:lang="en">Debt category</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Bank Loans</structure:Description>
+ </structure:Code>
+ <structure:Code value="B">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Debt Securities Issued Abroad</structure:Description>
+ </structure:Code>
+ <structure:Code value="C">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Brady Bonds</structure:Description>
+ </structure:Code>
+ <structure:Code value="D">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Non-Bank Trade Credits</structure:Description>
+ </structure:Code>
+ <structure:Code value="E">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Multilateral Claims</structure:Description>
+ </structure:Code>
+ <structure:Code value="F">
+ <structure:Description xml:lang="en">External Debt, All Maturities,
Off. Bilateral Loans (DAC Creditors)</structure:Description>
+ </structure:Code>
+ <structure:Code value="G">
+ <structure:Description xml:lang="en">Debt due within 1 year,
Liabilities To Banks</structure:Description>
+ </structure:Code>
+ <structure:Code value="H">
+ <structure:Description xml:lang="en">Debt due within 1 year, Debt
Securities Issued Abroad</structure:Description>
+ </structure:Code>
+ <structure:Code value="I">
+ <structure:Description xml:lang="en">Debt due within 1 year, Non-Bank
Trade Credits</structure:Description>
+ </structure:Code>
+ <structure:Code value="J">
+ <structure:Description xml:lang="en">Memorandum Item, Liabilities to
Banks (Locational)</structure:Description>
+ </structure:Code>
+ <structure:Code value="K">
+ <structure:Description xml:lang="en">Memorandum Item, Liabilities to
Banks (Consolidated)</structure:Description>
+ </structure:Code>
+ <structure:Code value="L">
+ <structure:Description xml:lang="en">Memorandum Item, Total Trade
Credits</structure:Description>
+ </structure:Code>
+ <structure:Code value="M">
+ <structure:Description xml:lang="en">Memorandum Item, Total Claims on
Banks</structure:Description>
+ </structure:Code>
+ <structure:Code value="N">
+ <structure:Description xml:lang="en">Memorandum Item, International
Reserve Assets (excl. Gold)</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_TIME_FORMAT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_time_format.xml">
+ <structure:Name xml:lang="en">Time formats based on ISO
8601.</structure:Name>
+ <structure:Code value="P1Y">
+ <structure:Description xml:lang="en">Annual</structure:Description>
+ </structure:Code>
+ <structure:Code value="P6M">
+ <structure:Description
xml:lang="en">Semi-annual</structure:Description>
+ </structure:Code>
+ <structure:Code value="P3M">
+ <structure:Description xml:lang="en">Quarterly</structure:Description>
+ </structure:Code>
+ <structure:Code value="P1M">
+ <structure:Description xml:lang="en">Monthly</structure:Description>
+ </structure:Code>
+ <structure:Code value="P7D">
+ <structure:Description xml:lang="en">Weekly</structure:Description>
+ </structure:Code>
+ <structure:Code value="P1D">
+ <structure:Description xml:lang="en">Daily</structure:Description>
+ </structure:Code>
+ <structure:Code value="PT1M">
+ <structure:Description xml:lang="en">Minutely</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_BIS_IF_REF_AREA" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_bis_if-ref_area.xml">
+ <structure:Name xml:lang="en">Reference Area Code for
BIS-IFS</structure:Name>
+ <structure:Code value="CH">
+ <structure:Description xml:lang="en">Switzerland (includes the Bank
for International Settlements)</structure:Description>
+ </structure:Code>
+ <structure:Code value="DE">
+ <structure:Description xml:lang="en">Germany (includes the European
Central Bank)</structure:Description>
+ </structure:Code>
+ <structure:Code value="US">
+ <structure:Description xml:lang="en">United States (includes American
Samoa, Guam, Midway Islands)</structure:Description>
+ </structure:Code>
+ <structure:Code value="MX">
+ <structure:Description xml:lang="en">Mexico</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_AVAILABILITY" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_availability.xml">
+ <structure:Name xml:lang="en">Availability</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">Free</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_COLLECTION" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_collection.xml">
+ <structure:Name xml:lang="en">Collection</structure:Name>
+ <structure:Code value="A">
+ <structure:Description xml:lang="en">Average of observations through
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="B">
+ <structure:Description xml:lang="en">Beginning of
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="E">
+ <structure:Description xml:lang="en">End of
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="H">
+ <structure:Description xml:lang="en">Highest in
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="L">
+ <structure:Description xml:lang="en">Lowest in
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="M">
+ <structure:Description xml:lang="en">Middle of
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="S">
+ <structure:Description xml:lang="en">Summed through
period</structure:Description>
+ </structure:Code>
+ <structure:Code value="U">
+ <structure:Description xml:lang="en">Unknown</structure:Description>
+ </structure:Code>
+ <structure:Code value="V">
+ <structure:Description xml:lang="en">Other</structure:Description>
+ </structure:Code>
+ <structure:Code value="Y">
+ <structure:Description xml:lang="en">Annualised
summed</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_DECIMALS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_decimals.xml">
+ <structure:Name xml:lang="en">Decimals codelist (BIS,
ECB)</structure:Name>
+ <structure:Code value="1">
+ <structure:Description xml:lang="en">one</structure:Description>
+ </structure:Code>
+ <structure:Code value="2">
+ <structure:Description xml:lang="en">two</structure:Description>
+ </structure:Code>
+ <structure:Code value="3">
+ <structure:Description xml:lang="en">three</structure:Description>
+ </structure:Code>
+ <structure:Code value="4">
+ <structure:Description xml:lang="en">four</structure:Description>
+ </structure:Code>
+ <structure:Code value="5">
+ <structure:Description xml:lang="en">five</structure:Description>
+ </structure:Code>
+ <structure:Code value="6">
+ <structure:Description xml:lang="en">six</structure:Description>
+ </structure:Code>
+ <structure:Code value="7">
+ <structure:Description xml:lang="en">seven</structure:Description>
+ </structure:Code>
+ <structure:Code value="8">
+ <structure:Description xml:lang="en">eight</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_BIS_OBS_CONF" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_bis_obs_conf.xml">
+ <structure:Name xml:lang="en">Observation confidentiality code
list</structure:Name>
+ <structure:Code value="C">
+ <structure:Description xml:lang="en">Non-publishable and
confidential</structure:Description>
+ </structure:Code>
+ <structure:Code value="F">
+ <structure:Description xml:lang="en">Free</structure:Description>
+ </structure:Code>
+ <structure:Code value="N">
+ <structure:Description xml:lang="en">Non-publishable, but
non-confidential</structure:Description>
+ </structure:Code>
+ <structure:Code value="R">
+ <structure:Description xml:lang="en">Confidential statistical
information due to identifiable respondents</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_BIS_UNIT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_bis_unit.xml">
+ <structure:Name xml:lang="en">BIS Unit</structure:Name>
+ <structure:Code value="CHF">
+ <structure:Description xml:lang="en">Swiss
Francs</structure:Description>
+ </structure:Code>
+ <structure:Code value="USD">
+ <structure:Description xml:lang="en">United States
Dollars</structure:Description>
+ </structure:Code>
+ <structure:Code value="NZD">
+ <structure:Description xml:lang="en">New Zealand
Dollars</structure:Description>
+ </structure:Code>
+ <structure:Code value="EUR">
+ <structure:Description xml:lang="en">Euros</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ <structure:CodeList id="CL_UNIT_MULT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/codelists/cl_unit_mult.xml">
+ <structure:Name xml:lang="en">Unit multiplier</structure:Name>
+ <structure:Code value="0">
+ <structure:Description xml:lang="en">Units</structure:Description>
+ </structure:Code>
+ <structure:Code value="1">
+ <structure:Description xml:lang="en">Tens</structure:Description>
+ </structure:Code>
+ <structure:Code value="2">
+ <structure:Description xml:lang="en">Hundreds</structure:Description>
+ </structure:Code>
+ <structure:Code value="3">
+ <structure:Description xml:lang="en">Thousands</structure:Description>
+ </structure:Code>
+ <structure:Code value="4">
+ <structure:Description xml:lang="en">Ten
Thousands</structure:Description>
+ </structure:Code>
+ <structure:Code value="5">
+ <structure:Description xml:lang="en">Millions</structure:Description>
+ </structure:Code>
+ <structure:Code value="6">
+ <structure:Description xml:lang="en">Billions</structure:Description>
+ </structure:Code>
+ </structure:CodeList>
+ </CodeLists>
+ <Concepts>
+ <structure:Concept id="TIME" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/VIS_CTY.xml">
+ <structure:Name xml:lang="en">Time</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="FREQ" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/FREQ.xml">
+ <structure:Name xml:lang="en">Frequency</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="JD_TYPE" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/JD_TYPE.xml">
+ <structure:Name xml:lang="en">Data Type (amounts outstanding, net
disbursement or changes)</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="JD_CATEGORY" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/JD_CATEGORY.xml">
+ <structure:Name xml:lang="en">Debt category</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="VIS_CTY" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/VIS_CTY.xml">
+ <structure:Name xml:lang="en">Vis-a-vis country</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="AVAILABILITY" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/AVAILABILITY.xml">
+ <structure:Name xml:lang="en">Availability</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="COLLECTION" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/COLLECTION.xml">
+ <structure:Name xml:lang="en">Collection indicator</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="DECIMALS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/DECIMALS.xml">
+ <structure:Name xml:lang="en">Decimals</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="OBS_CONF" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/OBS_CONF.xml">
+ <structure:Name xml:lang="en">Observation
confidentiality</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="TIME_FORMAT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/TIME_FORMAT.xml">
+ <structure:Name xml:lang="en">Time Format</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="OBS_STATUS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/OBS_STATUS.xml">
+ <structure:Name xml:lang="en">Observation status</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="OBS_PRE_BREAK" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/OBS_PRE_BREAK.xml">
+ <structure:Name xml:lang="en">Pre-break observation</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="BIS_UNIT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/UNIT.xml">
+ <structure:Name xml:lang="en">Unit</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="UNIT_MULT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/UNIT_MULT.xml">
+ <structure:Name xml:lang="en">Unit multiplier</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="OBS_VALUE" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/OBS_VALUE.xml">
+ <structure:Name xml:lang="en">Observation value</structure:Name>
+
+ </structure:Concept>
+ <structure:Concept id="STOCKS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/STOCKS.xml">
+ <structure:Name xml:lang="en">Stocks as measure</structure:Name>
+ </structure:Concept>
+ <structure:Concept id="FLOWS" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/concepts/FLOWS.xml">
+ <structure:Name xml:lang="en">Flows as measure</structure:Name>
+ </structure:Concept>
+ </Concepts>
+ <KeyFamilies>
+ <structure:KeyFamily id="BIS_JOINT_DEBT" agencyID="BIS" version="1.0"
uri="
http://www.bis.org/structure/key_families/JOINT_DEBT.xml">
+ <structure:Name xml:lang="en">Joint BIS-IMF-OECD-World Bank stats -
external debt</structure:Name>
+ <structure:Components>
+ <structure:Dimension conceptRef="FREQ" codelist="CL_FREQ"
isFrequencyDimension="true"/>
+ <structure:Dimension conceptRef="JD_TYPE" codelist="CL_JD_TYPE"
isMeasureDimension="true"/>
+ <structure:Dimension conceptRef="JD_CATEGORY"
codelist="CL_JD_CATEGORY" crossSectionalAttachDataSet="false"
crossSectionalAttachGroup="false" crossSectionalAttachSection="false"
crossSectionalAttachObservation="true"/>
+ <structure:Dimension conceptRef="VIS_CTY"
codelist="CL_BIS_IF_REF_AREA" crossSectionalAttachGroup="false"
crossSectionalAttachSection="false" crossSectionalAttachObservation="true"/>
+ <structure:TimeDimension conceptRef="TIME"
crossSectionalAttachGroup="true"/>
+ <structure:Group id="SiblingGroup">
+ <structure:DimensionRef>JD_TYPE</structure:DimensionRef>
+ <structure:DimensionRef>JD_CATEGORY</structure:DimensionRef>
+ <structure:DimensionRef>VIS_CTY</structure:DimensionRef>
+ </structure:Group>
+ <structure:PrimaryMeasure conceptRef="OBS_VALUE">
+ <structure:TextFormat textType="Double"/>
+ </structure:PrimaryMeasure>
+ <structure:CrossSectionalMeasure conceptRef="STOCKS"
measureDimension="JD_TYPE" code="P"/>
+ <structure:CrossSectionalMeasure conceptRef="FLOWS"
measureDimension="JD_TYPE" code="Q"/>
+ <structure:Attribute conceptRef="AVAILABILITY"
codelist="CL_AVAILABILITY" attachmentLevel="Group"
assignmentStatus="Mandatory" crossSectionalAttachDataSet="false"
crossSectionalAttachGroup="true" crossSectionalAttachSection="false"
crossSectionalAttachObservation="false">
+ <structure:AttachmentGroup>SiblingGroup</structure:AttachmentGroup>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="TIME_FORMAT"
codelist="CL_TIME_FORMAT" attachmentLevel="Series"
assignmentStatus="Mandatory" isTimeFormat="true"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="false"
crossSectionalAttachSection="true" crossSectionalAttachObservation="false"/>
+
+ <structure:Attribute conceptRef="COLLECTION" codelist="CL_COLLECTION"
attachmentLevel="Series" assignmentStatus="Mandatory"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="false"
crossSectionalAttachSection="true" crossSectionalAttachObservation="false"/>
+
+ <structure:Attribute conceptRef="DECIMALS" codelist="CL_DECIMALS"
attachmentLevel="Group" assignmentStatus="Mandatory"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="true"
crossSectionalAttachSection="false" crossSectionalAttachObservation="false">
+ <structure:AttachmentGroup>SiblingGroup</structure:AttachmentGroup>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="OBS_CONF" codelist="CL_BIS_OBS_CONF"
attachmentLevel="Observation" assignmentStatus="Conditional"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="false"
crossSectionalAttachSection="false" crossSectionalAttachObservation="true">
+ <structure:AttachmentMeasure>P</structure:AttachmentMeasure>
+ <structure:AttachmentMeasure>Q</structure:AttachmentMeasure>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="OBS_STATUS" codelist="CL_OBS_STATUS"
attachmentLevel="Observation" assignmentStatus="Mandatory"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="false"
crossSectionalAttachSection="false" crossSectionalAttachObservation="true">
+ <structure:AttachmentMeasure>P</structure:AttachmentMeasure>
+ <structure:AttachmentMeasure>Q</structure:AttachmentMeasure>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="OBS_PRE_BREAK"
attachmentLevel="Observation" assignmentStatus="Conditional"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="false"
crossSectionalAttachSection="false" crossSectionalAttachObservation="true">
+ <structure:TextFormat/>
+ <structure:AttachmentMeasure>P</structure:AttachmentMeasure>
+ <structure:AttachmentMeasure>Q</structure:AttachmentMeasure>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="BIS_UNIT" codelist="CL_BIS_UNIT"
attachmentLevel="Group" assignmentStatus="Mandatory"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="true"
crossSectionalAttachSection="false" crossSectionalAttachObservation="false">
+ <structure:AttachmentGroup>SiblingGroup</structure:AttachmentGroup>
+ </structure:Attribute>
+
+ <structure:Attribute conceptRef="UNIT_MULT" codelist="CL_UNIT_MULT"
attachmentLevel="Group" assignmentStatus="Mandatory"
crossSectionalAttachDataSet="false" crossSectionalAttachGroup="true"
crossSectionalAttachSection="false" crossSectionalAttachObservation="false">
+ <structure:AttachmentGroup>SiblingGroup</structure:AttachmentGroup>
+ </structure:Attribute>
+
+
+ </structure:Components>
+ </structure:KeyFamily>
+ </KeyFamilies>
+</Structure>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitProvisioningRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitProvisioningRequest>
+ <registry:ProvisionAgreement action="Append" indexTimeSeries="true"
indexReportingPeriod="true" >
+ <registry:Name xml:lang="en">Debt data: Loans and Brady
Bonds</registry:Name>
+ <registry:DataflowRef>
+ <registry:AgencyID>BIS</registry:AgencyID>
+ <registry:DataflowID>BIS_JEDH_DEBT</registry:DataflowID>
+ <registry:Version>1.0</registry:Version>
+ </registry:DataflowRef>
+ <registry:DataProviderRef>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>BIS</registry:DataProviderID>
+ <registry:Version>1.0</registry:Version>
+ </registry:DataProviderRef>
+ </registry:ProvisionAgreement>
+ </SubmitProvisioningRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitProvisioningResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitProvisioningResponse>
+ <registry:ProvisioningStatus>
+ <registry:ProvisionAgreementRef>
+
<registry:URN>urn:sdmx:org.sdmx.infomodel.registry.ProvisionAgreement=SDMX:DATA_PROVIDERS.BIS.BIS:BIS_JEDH_DEBT,1.2</registry:URN>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>BIS</registry:DataProviderID>
+ <registry:DataProviderVersion>1.0</registry:DataProviderVersion>
+ <registry:DataflowAgencyID>BIS</registry:DataflowAgencyID>
+ <registry:DataflowID>BIS_JEDH_DEBT</registry:DataflowID>
+ <registry:DataflowVersion>1.2</registry:DataflowVersion>
+ </registry:ProvisionAgreementRef>
+ <registry:StatusMessage status="Success"/>
+ </registry:ProvisioningStatus>
+ </SubmitProvisioningResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitRegistrationRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitRegistrationRequest>
+ <registry:Registration>
+ <registry:LastUpdated>2005-03-11T09:30:47-05:00</registry:LastUpdated>
+ <registry:ValidFrom>2005-06-11T09:21:00-05:00</registry:ValidFrom>
+ <registry:ValidTo>2005-09-11T12:00:00-05:00</registry:ValidTo>
+ <registry:Action>Append</registry:Action>
+ <registry:Datasource>
+
<registry:SimpleDatasource>
http://www.stat.org/new_stats/Series3_3.xml</registry:SimpleDatasource>
+ </registry:Datasource>
+ <registry:ProvisionAgreementRef>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>STAT</registry:DataProviderID>
+ <registry:DataflowAgencyID>STAT</registry:DataflowAgencyID>
+ <registry:DataflowID>SERIES_3</registry:DataflowID>
+ </registry:ProvisionAgreementRef>
+ </registry:Registration>
+ </SubmitRegistrationRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitRegistrationResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitRegistrationResponse>
+ <registry:RegistrationStatus>
+ <registry:StatusMessage status="Success"/>
+ <registry:Datasource>
+
<registry:SimpleDatasource>
http://www.stat.org/new_stats/Series3_3.xml</registry:SimpleDatasource>
+ </registry:Datasource>
+ <registry:ProvisionAgreementRef>
+
<registry:URN>urn:sdmx:org.sdmx.infomodel.registry.DataflowAgreementRef=SDMX:DATA_PROVIDERS.STAT.STAT:SERIES_3:Registration:2005-05-07T19:25:10.137+0200</registry:URN>
+
<registry:OrganisationSchemeAgencyID>SDMX</registry:OrganisationSchemeAgencyID>
+
<registry:OrganisationSchemeID>DATA_PROVIDERS</registry:OrganisationSchemeID>
+ <registry:DataProviderID>STAT</registry:DataProviderID>
+ <registry:DataflowAgencyID>STAT</registry:DataflowAgencyID>
+ <registry:DataflowID>SERIES_3</registry:DataflowID>
+ </registry:ProvisionAgreementRef>
+ </registry:RegistrationStatus>
+ </SubmitRegistrationResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitStructureRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitStructureRequest>
+
<registry:StructureLocation>
http://www.stat.org/structures/codelists/CL_TOPICS.xml</registry:StructureLocation>
+ <registry:SubmittedStructure externalDependencies="false" isFinal="true"
action="Append">
+ <registry:CodelistRef>
+ <registry:AgencyID>STAT</registry:AgencyID>
+ <registry:CodelistID>CL_TOPICS</registry:CodelistID>
+ <registry:Version>1.0</registry:Version>
+ </registry:CodelistRef>
+ </registry:SubmittedStructure>
+ </SubmitStructureRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitStructureResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitStructureResponse>
+ <registry:SubmissionResult>
+ <registry:SubmittedStructure externalDependencies="false"
isFinal="true" action="Append">
+ <registry:CodelistRef>
+
<registry:URN>urn:sdmx:org.sdmx.infomodel.codelist.CodeList=STAT:CL_TOPICS,1.2</registry:URN>
+ <registry:AgencyID>STAT</registry:AgencyID>
+ <registry:CodelistID>CL_TOPICS</registry:CodelistID>
+ <registry:Version>1.0</registry:Version>
+ </registry:CodelistRef>
+ </registry:SubmittedStructure>
+ <registry:StatusMessage status="Success"/>
+ </registry:SubmissionResult>
+ </SubmitStructureResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitSubscriptionRequest.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitSubscriptionRequest>
+ <registry:Subscription>
+ <registry:Action>Append</registry:Action>
+
<registry:NotificationMailTo>mailto:
data...@stat.org</registry:NotificationMailTo>
+ <registry:SubscriberAssignedID>DEBT_DATA</registry:SubscriberAssignedID>
+ <registry:ValidityPeriod>
+ <registry:StartDate>2005-01-01</registry:StartDate>
+ <registry:EndDate>2007-12-31</registry:EndDate>
+ </registry:ValidityPeriod>
+ <registry:EventSelector>
+ <registry:DataRegistrationEvents>
+ <registry:CategoryID>DEBT</registry:CategoryID>
+ </registry:DataRegistrationEvents>
+ </registry:EventSelector>
+ </registry:Subscription>
+ </SubmitSubscriptionRequest>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/SubmitSubscriptionResponse.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<RegistryInterface
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/structure"
+xmlns:registry="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/registry"
+xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd">
+ <Header>
+ <ID>JD014</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46302</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAgency>BIS</DataSetAgency>
+ <DataSetID>BIS_JD_237</DataSetID>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <SubmitSubscriptionResponse>
+
<registry:SubscriptionURN>urn:sdmx:infomodel.subscription=STAT:DEBT_DATA</registry:SubscriptionURN>
+ <registry:SubscriberAssignedID>DEBT_DATA</registry:SubscriberAssignedID>
+ <registry:SubscriptionStatus status="Success"/>
+ </SubmitSubscriptionResponse>
+</RegistryInterface>
=======================================
--- /dev/null
+++ /trunk/lib/UtilitySample.xml Wed Sep 16 13:27:46 2009
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright SDMX 2005 -
www.sdmx.org -->
+<UtilityData
xmlns="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message"
xmlns:common="
http://www.SDMX.org/resources/SDMXML/schemas/draft/common"
xmlns:compact="
http://www.SDMX.org/resources/SDMXML/schemas/draft/compact"
xmlns:cross="
http://www.SDMX.org/resources/SDMXML/schemas/draft/cross"
xmlns:generic="
http://www.SDMX.org/resources/SDMXML/schemas/draft/generic"
xmlns:query="
http://www.SDMX.org/resources/SDMXML/schemas/draft/query"
xmlns:structure="
http://www.SDMX.org/resources/SDMXML/schemas/draft/structure"
xmlns:utility="
http://www.SDMX.org/resources/SDMXML/schemas/draft/utility"
+xmlns:bisjd="urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:utility"
+xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message
+SDMXMessage.xsd
urn:sdmx:org.sdmx.infomodel.keyfamily.KeyFamily=BIS:EXT_DEBT:utility
BIS_JOINT_DEBT_Utility.xsd" >
+ <Header>
+ <ID>JD01678594</ID>
+ <Test>true</Test>
+ <Truncated>false</Truncated>
+ <Name xml:lang="en">Trans46304</Name>
+ <Prepared>2001-03-11T09:30:47-05:00</Prepared>
+ <Sender id="BIS">
+ <Name xml:lang="en">Bank for International Settlements</Name>
+ <Contact>
+ <Name xml:lang="en">G.B. Smith</Name>
+ <Telephone>+000.000.0000</Telephone>
+ </Contact>
+ </Sender>
+ <Receiver id="ECB">
+ <Name xml:lang="en">European Central Bank</Name>
+ <Contact>
+ <Name xml:lang="en">B.S. Featherstone</Name>
+ <Department xml:lang="en">Statistics Division</Department>
+ <Telephone>+000.000.0001</Telephone>
+ </Contact>
+ </Receiver>
+ <DataSetAction>Append</DataSetAction>
+ <Extracted>2001-03-11T09:30:47-05:00</Extracted>
+ <ReportingBegin>2000-01-01T00:00:00</ReportingBegin>
+ <ReportingEnd>2000-12-01T00:00:00</ReportingEnd>
+ </Header>
+ <bisjd:DataSet>
+ <bisjd:SiblingGroup AVAILABILITY="A" DECIMALS="2" BIS_UNIT="USD"
UNIT_MULT="5">
+
+ <bisjd:Series COLLECTION="B" TIME_FORMAT="P1M">
+
+ <bisjd:Key>
+ <bisjd:FREQ>M</bisjd:FREQ>
+ <bisjd:JD_TYPE>P</bisjd:JD_TYPE>
+ <bisjd:JD_CATEGORY>A</bisjd:JD_CATEGORY>
+ <bisjd:VIS_CTY>MX</bisjd:VIS_CTY>
+ </bisjd:Key>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-01</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.14</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-02</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.19</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-03</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>5.26</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-04</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>5.12</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-05</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>4.13</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-06</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.12</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-07</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.14</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-08</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.79</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-09</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>9.79</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-10</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.14</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-11</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.19</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+ <bisjd:Obs OBS_STATUS="A" OBS_CONF="F">
+ <bisjd:TIME_PERIOD>2000-12</bisjd:TIME_PERIOD>
+ <bisjd:OBS_VALUE>3.14</bisjd:OBS_VALUE>
+
+ </bisjd:Obs>
+
+ </bisjd:Series>
+ </bisjd:SiblingGroup>
+ </bisjd:DataSet>
+</UtilityData>
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Code.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class Code
+ {
+ public string Value;
+
+ public Code(string value)
+ {
+ Value = value;
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/CodeList.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,44 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class CodeList
+ {
+ public string Id { get; private set; }
+ private Dictionary<string, Code> codes = new Dictionary<string,
Code>();
+
+ public CodeList(string id)
+ {
+ Id = id;
+ }
+
+ public void AddCode(Code code)
+ {
+ codes.Add(code.Value, code);
+ }
+
+ public IList<Code> Codes
+ {
+ get
+ {
+ return codes.Values.ToList();
+ }
+ }
+
+ public Code this[string value]
+ {
+ get
+ {
+ Code result = null;
+ if (!codes.TryGetValue(value, out result))
+ {
+ throw new Exception("Code does not exsist with this
value");
+ }
+ return result;
+ }
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Concept.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class Concept
+ {
+ public string Id { get; private set; }
+
+ public Concept(string id)
+ {
+ this.Id = id;
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/DataSet.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,23 @@
+using System.Collections.Generic;
+
+namespace SDMX.Tests
+{
+ public class DataSet
+ {
+ private List<Series> series = new List<Series>();
+ public KeyFamily KeyFamily { get; private set; }
+
+
+ public DataSet(KeyFamily keyFamily)
+ {
+ // TODO: Complete member initialization
+ this.KeyFamily = keyFamily;
+ }
+
+ public Series CreateEmptySeries()
+ {
+ var series = new Series(this);
+ return series;
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Dimension.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ //public class SeriesKey
+ //{
+ // private List<Value> values;
+ // internal void AddValue(Value value)
+ // {
+ // values.Add(value);
+ // }
+
+
+ //}
+
+ //public class Value
+ //{
+ // public Dimension Dimension { get; set; }
+ // public object DimensionValue { get; set; }
+ // public DateTime? StartTime { get; set; }
+
+ // public Value(Dimension dimension)
+ // {
+ // // TODO: Complete member initialization
+ // this.Dimension = dimension;
+ // }
+
+ // public Value()
+ // {
+ // // TODO: Complete member initialization
+ // }
+ //}
+
+ public class Dimension
+ {
+ public Concept Concept { get; private set; }
+ public CodeList CodeList { get; set; }
+
+ public Dimension(Concept concept)
+ {
+ this.Concept = concept;
+ }
+
+ public Dimension(Concept concept, CodeList codeList)
+ {
+ this.Concept = concept;
+ this.CodeList = codeList;
+ }
+
+ public bool IsCoded
+ {
+ get
+ {
+ return CodeList != null;
+ }
+ }
+
+ internal object GetValue(string value)
+ {
+ if (IsCoded)
+ {
+ return CodeList[value];
+ }
+ else
+ {
+ throw new Exception("non coded dimensions are not
supported yet.");
+ }
+ }
+
+ public int Order { get; set; }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Extensions.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ internal static class Extensions
+ {
+ internal static string F(this string @this, params object[] args)
+ {
+ return string.Format(@this, args);
+ }
+
+ internal static TValue GetValueOrDefault<TKey,TValue>(this
Dictionary<TKey, TValue> @this, TKey key, TValue defaultValue)
+ {
+ TValue result = defaultValue;
+ @this.TryGetValue(key, out result);
+ return result;
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/GenericDataTests.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,186 @@
+using System;
+using System.Collections.Generic;
+using NUnit.Framework;
+using Common = SDMX_ML.Framework.Common;
+using Message = SDMX_ML.Framework.Message;
+using Messages = SDMX_ML.Framework.Messages;
+using Query = SDMX_ML.Framework.Query;
+using Generic = SDMX_ML.Framework.Generic;
+using System.Xml.Linq;
+using System.Linq;
+
+namespace SDMX.Tests
+{
+ [TestFixture]
+ public class GenericDataTests
+ {
+ [Test]
+ public void Create_GenericData_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\GenericSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.GenericData(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_Structure_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\StructureSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.Structure(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_Copmpact_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\CompactSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.CompactData(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test, Ignore("TODO: To be implemented")]
+ public void Create_Utility_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\GenericSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.UtilityData();
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_GenericDataSet()
+ {
+ var dataset = new Generic.DataSetType();
+
+ var series = new Generic.SeriesType()
+ {
+ Serieskey = new List<Generic.ValueType>()
+ {
+ new Generic.ValueType() { Concept = new
Common.IDType("FREQ"), Value = "A" },
+ new Generic.ValueType() { Concept = new
Common.IDType("SEX"), Value = "M" },
+ new Generic.ValueType() { Concept = new
Common.IDType("AGE"), Value = "15" }
+ },
+ Obs = new List<Generic.ObsType>()
+ {
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2007" },
+ ObsValue = new Generic.ObsValueType() { Value = 1 }
+ },
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2008" },
+ ObsValue = new Generic.ObsValueType() { Value = 2 }
+ },
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2009" },
+ ObsValue = new Generic.ObsValueType() { Value = 3 }
+ }
+ }
+ };
+
+ dataset.Series.Add(series);
+ }
+
+ [Test]
+ public void Create_CodeList()
+ {
+ // create code list
+ var frequencyList = new CodeList("FREQ");
+ frequencyList.AddCode(new Code("A"));
+ frequencyList.AddCode(new Code("B"));
+ frequencyList.AddCode(new Code("C"));
+ frequencyList.AddCode(new Code("D"));
+
+ var code = frequencyList["A"];
+ }
+
+ [Test]
+ public void Create_series_key()
+ {
+ var values = new List<KeyValuePair<string, string>>();
+ values.Add(new KeyValuePair<string, string>("FREQ", "A"));
+
+ var keyFamily = CreateKeyFamily();
+ var dataSet = new DataSet(keyFamily);
+ var series = dataSet.CreateEmptySeries();
+ foreach (var value in values)
+ {
+ series.SetKeyValue(value.Key, value.Value);
+ }
+
+ object keyValue = series.GetKeyValue("FREQ");
+
+ Assert.IsTrue(keyValue is Code);
+ Assert.IsTrue(((Code)keyValue).Value == "A");
+
+ }
+
+ [Test]
+ public void Add_observateion()
+ {
+ var seriesValues = new List<KeyValuePair<string, string>>();
+ seriesValues.Add(new KeyValuePair<string,
string>("FREQ", "A"));
+ string timePeriod = "1998";
+ string obsValue = "9.993489";
+
+ var keyFamily = CreateKeyFamily();
+ var dataSet = new DataSet(keyFamily);
+ var series = dataSet.CreateEmptySeries();
+ foreach (var value in seriesValues)
+ {
+ series.SetKeyValue(value.Key, value.Value);
+ }
+
+ object keyValue = series.GetKeyValue("FREQ");
+
+ Observation obs = new Observation();
+ obs.SetTimePeriod(timePeriod);
+ obs.SetValue(obsValue);
+
+ series.AddObservation(obs);
+
+ }
+
+
+
+
+ private static KeyFamily CreateKeyFamily()
+ {
+ var frequencyList = new CodeList("FREQ");
+ frequencyList.AddCode(new Code("A"));
+ frequencyList.AddCode(new Code("B"));
+ frequencyList.AddCode(new Code("C"));
+ frequencyList.AddCode(new Code("D"));
+
+ var keyFamily = new KeyFamily();
+
+ Concept freqConcept = new Concept("FREQ");
+
+ keyFamily.AddDimension(new Dimension(freqConcept,
frequencyList));
+ return keyFamily;
+ }
+
+
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/GenericDataTests.cs.bak Wed Sep 16 13:27:46 2009
@@ -0,0 +1,125 @@
+using System;
+using System.Collections.Generic;
+using NUnit.Framework;
+using Common = SDMX_ML.Framework.Common;
+using Message = SDMX_ML.Framework.Message;
+using Messages = SDMX_ML.Framework.Messages;
+using Query = SDMX_ML.Framework.Query;
+using Generic = SDMX_ML.Framework.Generic;
+using System.Xml.Linq;
+using System.Linq;
+
+namespace SDMX.Tests
+{
+ [TestFixture]
+ public class GenericDataTests
+ {
+ [Test]
+ public void Create_GenericData_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\GenericSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.GenericData(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_Structure_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\StructureSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.Structure(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_Copmpact_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\CompactSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.CompactData(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test, Ignore("TODO: To be implemented")]
+ public void Create_Utility_from_xml()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\GenericSample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ var message = new Messages.UtilityData();
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+ [Test]
+ public void Create_GenericDataSet()
+ {
+ var dataset = new Generic.DataSetType();
+
+ var series = new Generic.SeriesType()
+ {
+ Serieskey = new List<Generic.ValueType>()
+ {
+ new Generic.ValueType() { Concept = new
Common.IDType("FREQ"), Value = "A" },
+ new Generic.ValueType() { Concept = new
Common.IDType("SEX"), Value = "M" },
+ new Generic.ValueType() { Concept = new
Common.IDType("AGE"), Value = "15" }
+ },
+ Obs = new List<Generic.ObsType>()
+ {
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2007" },
+ ObsValue = new Generic.ObsValueType() { Value = 1 }
+ },
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2008" },
+ ObsValue = new Generic.ObsValueType() { Value = 2 }
+ },
+ new Generic.ObsType()
+ {
+ Time = new Common.TimePeriodType() { TimePeriod
= "2009" },
+ ObsValue = new Generic.ObsValueType() { Value = 3 }
+ }
+ }
+ };
+
+ dataset.Series.Add(series);
+ }
+
+ [Test]
+ public void Create_GenericDataSet_2()
+ {
+ // create code list
+ var frequency = new CodeList()
+ {
+ Name = "FREQ",
+ Codes = new List<Code>()
+ {
+ new Code() { Value = "A" },
+ new Code() { Value = "B" },
+ new Code() { Value = "C" },
+ new Code() { Value = "D" },
+ }
+ };
+
+ var code = frequency["A"];
+ }
+
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/KeyFamily.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ //public class Code
+ //{
+ // public string Value { get; private set; }
+
+ // public Code(string value)
+ // {
+ // Value = value;
+ // }
+ //}
+ //public class CodeList
+ //{
+ // public string Name;
+ // public List<Code> codes = new List<Code>();
+
+ // public Code this[string codeValue]
+ // {
+ // get
+ // {
+ // var code = Codes.Where(c => c.Value ==
codeValue).SingleOrDefault();
+ // if (code == null)
+ // {
+ // throw new Exception("Code does not exsist with this
value");
+ // }
+ // return code;
+ // }
+ // }
+ //}
+
+ public class KeyFamily
+ {
+ private Dictionary<string, Dimension> dimensions = new
Dictionary<string, Dimension>();
+
+ public IEnumerable<Dimension> Dimensions
+ {
+ get
+ {
+ return dimensions.Values.AsEnumerable();
+ }
+ }
+
+ //public SeriesKey CreateSereisKey(string[,] keyValues)
+ //{
+ // return new SeriesKey();
+ //}
+
+
+ //internal object GetDimesionValue(string concept, string
dimensionValue, out int dimensionOrder)
+ //{
+ // var dimension = this.Dimensions.Where(c =>
c.Concept.Id ==
concept).FirstOrDefault();
+ // if (dimension == null)
+ // {
+ // throw new ApplicationException("no dimension existions
with this concept name.");
+ // }
+ // dimensionOrder = dimension.Order;
+ // return dimension.GetValue(dimensionValue);
+ //}
+
+ public Dimension GetDimension(string conceptName)
+ {
+ return dimensions.GetValueOrDefault(conceptName, null);
+ }
+
+ public void AddDimension(Dimension dimension)
+ {
+ dimensions.Add(
dimension.Concept.Id, dimension);
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Obs.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class Observation
+ {
+
+ public DateTime TimePeriod { get; set; }
+
+ public void SetValue(string valueString)
+ {
+ Value = decimal.Parse(valueString);
+ }
+
+ public void SetTimePeriod(string timePeriodString)
+ {
+ TimePeriod = DateTime.Parse(timePeriodString);
+ }
+
+ public object Value { get; set;}
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/SDMXException.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class SDMXException : Exception
+ {
+ public SDMXException(string message)
+ : base(message)
+ {
+ }
+ }
+}
=======================================
--- /dev/null
+++ /trunk/src/SDMX.Tests/Series.cs Wed Sep 16 13:27:46 2009
@@ -0,0 +1,57 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace SDMX.Tests
+{
+ public class Series
+ {
+ //public SeriesKey Key { get; private set; }
+ private Dictionary<Dimension, object> key = new
Dictionary<Dimension,object>();
+
+ public Observation Obs { get; set; }
+ private DataSet dataSet;
+
+ internal Series(DataSet dataSet)
+ {
+ this.dataSet = dataSet;
+ }
+
+ public void SetKeyValue(string conceptName, string dimensionValue)
+ {
+ Dimension dimension =
dataSet.KeyFamily.GetDimension(conceptName);
+ if (dimension == null)
+ {
+ throw new SDMXException("Cannot find
demension '{0}'".F(conceptName));
+ }
+
+ object value = dimension.GetValue(dimensionValue);
+
+ key[dimension] = value;
+ }
+
+ public object GetKeyValue(string concept)
+ {
+ var dimension = dataSet.KeyFamily.GetDimension(concept);
+ if (dimension == null)
+ {
+ throw new SDMXException("dimension doesn't exist in key
family");
+ }
+
+ object value = key.GetValueOrDefault(dimension, null);
+
+ if (value == null)
+ {
+ throw new SDMXException("value not found for
dimension '{0}'".F(concept));
+ }
+
+ return value;
+ }
+
+ internal void AddObservation(Observation obs)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
=======================================
--- /trunk/src/SDMX/Messages/Structure.cs Wed Aug 12 13:20:00 2009
+++ /trunk/src/SDMX/Messages/Structure.cs Wed Sep 16 13:27:46 2009
@@ -15,7 +15,7 @@
private List<SDMX_Structure.CodelistType> _codelists = new
List<SDMX_Structure.CodelistType>();
private List<SDMX_Structure.ConceptType> _concepts = new
List<SDMX_Structure.ConceptType>();
private SDMX_Structure.KeyFamiliesType _keyfamilies = new
SDMX_Structure.KeyFamiliesType();
- private SDMX_Message.HeaderType _header = new
SDMX_Message.HeaderType();
+ private SDMX_Message.HeaderType _header;
private XDocument _xmldoc;
private XElement _xml;
private XNamespace _nsStructurMessage;
@@ -33,6 +33,9 @@
setNameSpace();
+ if (_header == null)
+ _header = new SDMX_Message.HeaderType(_xml);
+
setStructur();
}
@@ -45,18 +48,18 @@
}
private void setStructur()
- {
+ {
XElement codelists = _xml.Element(_nsDefault + "CodeLists");
XElement keyfamilies = _xml.Element(_nsDefault
+ "KeyFamilies");
XElement concepts = _xml.Element(_nsDefault + "Concepts");
- if(codelists != null)
+ if (codelists != null)
setCodelists(codelists);
- if(keyfamilies != null)
+ if (keyfamilies != null)
setKeyFamilies(keyfamilies);
- if(concepts != null)
+ if (concepts != null)
setConcepts(concepts);
}
@@ -66,21 +69,21 @@
SDMX_Structure.CodelistType codelist = new
SDMX_Structure.CodelistType();
XElement cl = structur.Element(_nsStructur + "CodeList");
- if(cl != null)
+ if (cl != null)
{
codelist.Id = cl.Attribute("id").Value;
codelist.Agencyid = cl.Attribute("agencyID").Value;
XElement name = cl.Element(_nsStructur + "Name");
- codelist.Lang = name.Attribute(XNamespace.Xml
+ "lang").Value;;
-
- foreach(XElement cv in cl.Elements())
- {
- if(cv.Name == _nsStructur + "Code")
+ codelist.Lang = name.Attribute(XNamespace.Xml
+ "lang").Value; ;
+
+ foreach (XElement cv in cl.Elements())
+ {
+ if (cv.Name == _nsStructur + "Code")
{
SDMX_Structure.CodeType c = new
SDMX_Structure.CodeType();
- c.Codevalue =cv.Attribute("value").Value;
+ c.Codevalue = cv.Attribute("value").Value;
XElement desc = cv.Element(_nsStructur
+ "Description");
c.Description = desc.Value;
c.Lang = desc.Attribute(XNamespace.Xml
+ "lang").Value;
@@ -90,7 +93,7 @@
}
- _codelists.Add(codelist);
+ _codelists.Add(codelist);
}
}
@@ -101,13 +104,13 @@
private void setConcepts(XElement concept)
{
- foreach(XElement c in concept.Elements())
+ foreach (XElement c in concept.Elements())
{
SDMX_Structure.ConceptType con = new
SDMX_Structure.ConceptType();
con.AgencyID = c.Attribute("agencyID").Value;
con.ID = c.Attribute("id").Value;
con.Name = c.Element(_nsStructur + "Name").Value;
-
+
_concepts.Add(con);
}
@@ -121,7 +124,7 @@
keyfamily.AgencyID = kf.Attribute("agencyID").Value;
XElement kfname = kf.Element(_nsStructur + "Name");
keyfamily.Name = kf.Value;
-
+
keyfamily.Component = getComponents(kf);
_keyfamilies.KeyFamily.Add(keyfamily);
@@ -132,9 +135,9 @@
SDMX_Structure.ComponentsType comp = new
SDMX_Structure.ComponentsType();
XElement Components = element.Element(_nsStructur
+ "Components");
- foreach(XElement dim in Components.Elements())
- {
- if(dim.Name == _nsStructur + "Dimension")
+ foreach (XElement dim in Components.Elements())
+ {
+ if (dim.Name == _nsStructur + "Dimension")
{
SDMX_Structure.DimensionType d = new
SDMX_Structure.DimensionType();
SDMX_Common.IDType cr = new
SDMX_Common.IDType(dim.Attribute("conceptRef").Value.ToString());
@@ -142,12 +145,12 @@
SDMX_Common.IDType cl = new
SDMX_Common.IDType(dim.Attribute("codelist").Value.ToString());
d.Codelist = cl;
- if(dim.Attribute("isFrequencyDimension") != null)
+ if (dim.Attribute("isFrequencyDimension") != null)
d.IsFrequencyDimension =
Convert.ToBoolean(dim.Attribute("isFrequencyDimension").Value);
comp.Dimensions.Add(d);
}
- if(dim.Name == _nsStructur + "Attribute")
+ if (dim.Name == _nsStructur + "Attribute")
{
//XElement attribute = dim.Element(_nsStructur
+ "Attribute");
SDMX_Structure.AttributeType a = new
SDMX_Structure.AttributeType();
@@ -158,11 +161,11 @@
a.CrossSectionalAttachGroup =
Convert.ToBoolean(dim.Attribute("crossSectionalAttachGroup").Value);
a.CrossSectionalAttachSection =
Convert.ToBoolean(dim.Attribute("crossSectionalAttachSection").Value);
a.CrossSectionalAttachObservation =
Convert.ToBoolean(dim.Attribute("crossSectionalAttachObservation").Value);
-
- if(dim.Attribute("isTimeFormat") != null)
+
+ if (dim.Attribute("isTimeFormat") != null)
a.IsTimeFormat =
Convert.ToBoolean(dim.Attribute("isTimeFormat").Value);
- if(dim.Attribute("codelist") != null)
+ if (dim.Attribute("codelist") != null)
a.Codelist = new
SDMX_Common.IDType(dim.Attribute("codelist").Value);
comp.Attribute.Add(a);
@@ -177,7 +180,7 @@
{
AttachmentLevel level;
- switch(element.Attribute("attachmentLevel").Value)
+ switch (element.Attribute("attachmentLevel").Value)
{
case "Series":
level = AttachmentLevel.Series;
@@ -203,7 +206,7 @@
{
AssignmentStatus status;
- switch(element.Attribute("assignmentStatus").Value)
+ switch (element.Attribute("assignmentStatus").Value)
{
case "Conditional":
status = AssignmentStatus.Conditional;
@@ -243,16 +246,8 @@
public string ToXml()
{
- try
- {
- XElement x = GetXml();
- return _xmldoc.ToString();
- }
- catch(Exception ex)
- {
- Console.WriteLine(ex.Message);
- throw new Exception(ex.Message);
- }
+ XElement x = GetXml();
+ return _xmldoc.ToString();
}
public XDocument GetXmlDocument()
@@ -266,26 +261,26 @@
{
_xmldoc = new XDocument(
new XDeclaration("1.0", "UTF-8", "yes"));
-
- XElement structure = new
XElement(Namespaces.GetAllNamespaces("Structure"));
-
+
+ XElement structure = new
XElement(Namespaces.GetAllNamespaces("Structure"));
+
_header.Prepared = DateTime.Now.ToString("s") + "-01:00";
_header.Extracted = DateTime.Now.ToString("s") + "-01:00";
_header.DataSetAction =
SDMX_Message.HeaderType.EnumDataSetAction.Information;
-
+
structure.Add(_header.GetXml());
- if(_codelists.Count > 0)
+ if (_codelists.Count > 0)
structure.Add(addCodelist());
- if(_concepts.Count > 0)
+ if (_concepts.Count > 0)
structure.Add(addConcept());
- if(_keyfamilies.KeyFamily.Count > 0)
+ if (_keyfamilies.KeyFamily.Count > 0)
structure.Add(addKeyFamilies());
_xmldoc.Add(structure);
-
+
_xmldoc.Save(@"c:\projektxml.xml");
return structure;
@@ -297,14 +292,14 @@
{
XElement codelists = new XElement(Namespaces.GetNS("message")
+ "CodeLists");
- foreach(SDMX_Structure.CodelistType c in _codelists)
- {
- if(c.Agencyid != null)
+ foreach (SDMX_Structure.CodelistType c in _codelists)
+ {
+ if (c.Agencyid != null)
{
XElement codelist = new
XElement(Namespaces.GetNS("structure") + "CodeList",
- new XAttribute("id", c.Id), new
XAttribute("agencyID", c.Agencyid),
+ new XAttribute("id", c.Id), new
XAttribute("agencyID", c.Agencyid),
new XAttribute("version", c.Version), new
XAttribute("uri", c.Uri),
- new XElement(Namespaces.GetNS("structure")
+ "Name",
+ new XElement(Namespaces.GetNS("structure")
+ "Name",
new XAttribute(XNamespace.Xml + "lang", "en")));
codelist = addCodevalues(c, codelist);
@@ -318,7 +313,7 @@
private XElement addCodevalues(SDMX_Structure.CodelistType
codelist, XElement element)
{
- foreach(SDMX_Structure.CodeType c in codelist.Codevalues)
+ foreach (SDMX_Structure.CodeType c in codelist.Codevalues)
{
XElement code = new XElement(Namespaces.GetNS("structure")
+ "Code",
new XAttribute("value", c.Codevalue),
@@ -335,16 +330,16 @@
#region Concept
- private XElement addConcept()
+ private XElement addConcept()
{
XElement concepts = new XElement(Namespaces.GetNS("message")
+ "Concepts");
- foreach(SDMX_Structure.ConceptType c in _concepts)
+ foreach (SDMX_Structure.ConceptType c in _concepts)
{
XElement concept = new
XElement(Namespaces.GetNS("structure") + "Concept",
- new XAttribute("id", c.ID), new XAttribute("agencyID",
c.AgencyID),
+ new XAttribute("id", c.ID), new XAttribute("agencyID",
c.AgencyID),
new XAttribute("version", c.Version), new
XAttribute("uri", "c.Uri"),
- new XElement(Namespaces.GetNS("structure") + "Name",
c.Name,
+ new XElement(Namespaces.GetNS("structure") + "Name",
c.Name,
new XAttribute(XNamespace.Xml + "lang", "en")));
concepts.Add(concept);
@@ -361,11 +356,11 @@
{
XElement keyfamilies = new
XElement(Namespaces.GetNS("message") + "KeyFamilies");
- foreach(SDMX_Structure.KeyFamilyType kf in
_keyfamilies.KeyFamily)
- {
- XElement keyfamily = new
XElement(Namespaces.GetNS("structure") + "KeyFamily",
+ foreach (SDMX_Structure.KeyFamilyType kf in
_keyfamilies.KeyFamily)
+ {
+ XElement keyfamily = new
XElement(Namespaces.GetNS("structure") + "KeyFamily",
new XAttribute("id", kf.ID), new
XAttribute("agencyID", kf.AgencyID),
- new XAttribute("version", ""), new
XAttribute("uri", ""),
+ new XAttribute("version", ""), new
XAttribute("uri", ""),
new XElement(Namespaces.GetNS("structure") + "Name",
new XAttribute(XNamespace.Xml + "lang", "en"),
kf.Name));
@@ -382,15 +377,15 @@
{
XElement component = new
XElement(Namespaces.GetNS("structure") + "Components");
- foreach(SDMX_Structure.DimensionType d in comp.Dimensions)
+ foreach (SDMX_Structure.DimensionType d in comp.Dimensions)
component.Add(getDimension(d));
-
- if(comp.Primarymeasure != null)
+
+ if (comp.Primarymeasure != null)
component.Add(getPrimaryMeasure(comp.Primarymeasure));
- foreach(SDMX_ML.Framework.Structure.AttributeType a in
comp.Attribute)
+ foreach (SDMX_ML.Framework.Structure.AttributeType a in
comp.Attribute)
component.Add(getAttribute(a));
-
+
return component;
}
@@ -402,14 +397,14 @@
new XAttribute("isFrequencyDimension",
d.IsFrequencyDimension.ToString().ToLower()));
return dimension;
-
+
}
private XElement
getPrimaryMeasure(SDMX_Structure.PrimaryMeasureType pm)
{
XElement primary = new XElement(Namespaces.GetNS("structure")
+ "PrimaryMeasure",
- new XAttribute("conceptRef", pm.ConceptRef.Value),
- new XElement(Namespaces.GetNS("structure") + "TextFormat",
+ new XAttribute("conceptRef", pm.ConceptRef.Value),
+ new XElement(Namespaces.GetNS("structure") + "TextFormat",
new XAttribute("textType", pm.Textformat)));
return primary;
@@ -418,21 +413,21 @@
private XElement
getAttribute(SDMX_ML.Framework.Structure.AttributeType a)
{
XElement attribute = new
XElement(Namespaces.GetNS("structure") + "Attribute",
- new XAttribute("conceptRef", a.ConceptRef.Value),
- new XAttribute("attachmentLevel", a.AttachmentLevel),
+ new XAttribute("conceptRef", a.ConceptRef.Value),
+ new XAttribute("attachmentLevel", a.AttachmentLevel),
new XAttribute("assignmentStatus", a.AssignmentStatus),
new XAttribute("crossSectionalAttachDataSet",
a.CrossSectionalAttachDataset.ToString().ToLower()),
new XAttribute("crossSectionalAttachGroup",
a.CrossSectionalAttachGroup.ToString().ToLower()),
new XAttribute("crossSectionalAttachSection",
a.CrossSectionalAttachSection.ToString().ToLower()),
new XAttribute("crossSectionalAttachObservation",
a.CrossSectionalAttachObservation.ToString().ToLower()));
- if(a.Codelist.Value != "")
+ if (a.Codelist.Value != "")
attribute.Add(new XAttribute("codelist",
a.Codelist.Value));
- if(a.IsTimeFormat)
+ if (a.IsTimeFormat)
attribute.Add(new XAttribute("isTimeFormat", "true"));
return attribute;
-
+
}
#endregion
=======================================
--- /trunk/src/SDMX.Tests/QueryMessageTests.cs Thu Aug 13 10:21:53 2009
+++ /trunk/src/SDMX.Tests/QueryMessageTests.cs Wed Sep 16 13:27:46 2009
@@ -1,18 +1,14 @@
-using NUnit.Framework;
-using Query = SDMX_ML.Framework.Query;
-using Messages = SDMX_ML.Framework.Messages;
-using Message = SDMX_ML.Framework.Message;
+using System;
+using System.Collections.Generic;
+using NUnit.Framework;
using Common = SDMX_ML.Framework.Common;
-using Structure = SDMX_ML.Framework.Structure;
-using Generic = SDMX_ML.Framework.Generic;
-using System;
-using System.Xml;
+using Message = SDMX_ML.Framework.Message;
+using Messages = SDMX_ML.Framework.Messages;
+using Query = SDMX_ML.Framework.Query;
using System.IO;
-using System.Xml.Schema;
using System.Xml.Linq;
-using System.Linq;
-using System.Reflection;
-using System.Collections.Generic;
+using System.Xml;
+
namespace SDMX.Tests
{
@@ -81,15 +77,29 @@
{
StartTime = new
Common.TimePeriodType() { TimePeriod = "2007-11-01" }
}
-
}
}
}
}
};
-
Assert.IsTrue(Utility.ValidateMessage(quryMessage.ToXml()));
}
+
+ [Test]
+ public void Can_load_QuerySample()
+ {
+ string samplePath =
Utility.GetPathFromProjectBase("lib\\QuerySample.xml");
+ XDocument loadedXml = XDocument.Load(samplePath);
+
+ Messages.QueryMessage message = new
Messages.QueryMessage(loadedXml.ToString());
+
+ XDocument generatedXml = XDocument.Parse(message.ToXml());
+
+ //Assert.AreEqual(loadedXml, generatedXml);
+ Assert.IsTrue(Utility.CompareXML(loadedXml, generatedXml));
+ }
+
+
private Message.HeaderType GetHeader()
{
=======================================
--- /trunk/src/SDMX.Tests/SDMX.Tests.csproj Thu Aug 13 10:21:53 2009
+++ /trunk/src/SDMX.Tests/SDMX.Tests.csproj Wed Sep 16 13:27:46 2009
@@ -33,30 +33,40 @@
<ItemGroup>
<Reference Include="nunit.framework, Version=2.5.1.9189,
Culture=neutral, PublicKeyToken=96d09a1eb7f44a77,
processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\nunit.framework.dll</HintPath>
+ <HintPath>..\..\lib\nunit.framework.dll</HintPath>
+ <Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
+ <Reference Include="System.Data" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
+ <Compile Include="Code.cs" />
+ <Compile Include="CodeList.cs" />
+ <Compile Include="Concept.cs" />
+ <Compile Include="Dimension.cs" />
+ <Compile Include="Extensions.cs" />
+ <Compile Include="GenericDataTests.cs" />
+ <Compile Include="KeyFamily.cs" />
+ <Compile Include="DataSet.cs" />
+ <Compile Include="Obs.cs" />
<Compile Include="QueryMessageTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="SDMXException.cs" />
+ <Compile Include="Series.cs" />
<Compile Include="Utility.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SDMX\SDMX_ML.Framework.csproj">
<Project>{B5A1E424-12DB-4B6B-96F5-C7899EDABE07}</Project>
<Name>SDMX_ML.Framework</Name>
+ <Private>True</Private>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
=======================================
--- /trunk/src/SDMX.Tests/Utility.cs Thu Aug 13 10:21:53 2009
+++ /trunk/src/SDMX.Tests/Utility.cs Wed Sep 16 13:27:46 2009
@@ -5,14 +5,14 @@
namespace SDMX.Tests
{
- public static class Utility
- {
- public static bool ValidateMessage(string xml)
+ internal static class Utility
+ {
+ internal static bool ValidateMessage(string xml)
{
var doc = XDocument.Parse(xml);
var schemas = new XmlSchemaSet();
-
schemas.Add("
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message",
-
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..\\..\\..\\..\\lib\\SDMXMessage.xsd"));
+
//schemas.Add("
http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message",
+ //
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..\\..\\..\\..\\lib\\SDMXMessage.xsd"));
bool isValid = true;
@@ -38,5 +38,15 @@
Console.WriteLine("\tValidation error: " + args.Message);
}
+
+ internal static string GetPathFromProjectBase(string path)
+ {
+ return "..\\..\\..\\..\\" + path;
+ }
+
+ internal static bool CompareXML(XDocument xmlDocument1, XDocument
xmlDocument2)
+ {
+ return XNode.DeepEquals(xmlDocument1, xmlDocument1);
+ }
}
}