Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8411

Re: Fetch XML data in BODS through URL

$
0
0

hi,

 

first you have to create xsd schema in designer by using following xsd file

copy it and past it in notepad and save with extension .xsd

 

<?xml version="1.0" encoding="utf-8"?>

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="ISO_4217">

    <xs:complexType>

      <xs:sequence>

        <xs:element name="CcyTbl">

          <xs:complexType>

            <xs:sequence>

              <xs:element maxOccurs="unbounded" name="CcyNtry">

                <xs:complexType>

                  <xs:sequence>

                    <xs:element name="CtryNm" type="xs:string" />

                    <xs:element name="CcyNm">

                      <xs:complexType>

                        <xs:simpleContent>

                          <xs:extension base="xs:string">

                            <xs:attribute name="IsFund" type="xs:boolean" use="optional" />

                          </xs:extension>

                        </xs:simpleContent>

                      </xs:complexType>

                    </xs:element>

                    <xs:element minOccurs="0" name="Ccy" type="xs:string" />

                    <xs:element minOccurs="0" name="CcyNbr" type="xs:unsignedShort" />

                    <xs:element minOccurs="0" name="CcyMnrUnts" type="xs:string" />

                  </xs:sequence>

                </xs:complexType>

              </xs:element>

            </xs:sequence>

          </xs:complexType>

        </xs:element>

      </xs:sequence>

      <xs:attribute name="Pblshd" type="xs:date" use="required" />

    </xs:complexType>

  </xs:element>

</xs:schema>

 

creating xsd schema in designer

Untitled.png

after that drag the xsd schema in to work area and double click on that to give xml file path as below

Untitled.png

in xml file dropdown you have to place the url of xml file

http://www.currency-iso.org/dam/downloads/table_a1.xml

 

finally you are loading xml file to sql server means ,you have to change NRDM to RDBM as below

right click on subschema of schemaout and select unnest with sub-schema option

Untitled.png

note: this procedure is for Currency code from


Viewing all articles
Browse latest Browse all 8411

Trending Articles