Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / Импорт xml в бд sql / 2 сообщений из 2, страница 1 из 1
04.09.2007, 00:52
    #34773066
sergei123
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Импорт xml в бд sql
есть такой xml:
автор <?xml version="1.0" encoding="windows-1251" ?>
<!DOCTYPE InfoPacket (View Source for full doctype...)>
- <InfoPacket>
<Source type="string">ПРАЙМ-ТАСС</Source>
<Time type="datetime">04.09.2007 00:50:05</Time>
<Title type="string">PRIME-TASS Report</Title>
- <InfoItem>
<Title type="string">PRIME-TASS Report</Title>
- <Data>
- <Table name="report">
<Column name="Country" type="string">Страна</Column>
<Column name="ADate" type="string">Дата</Column>
<Column name="ADateInMilliseconds" type="string">ADateInMilliseconds</Column>
<Column name="USDRatio" type="string">Единиц USD</Column>
<Column name="USDLast" type="string">Доллар США</Column>
<Column name="EURRatio" type="string">Единиц EUR</Column>
<Column name="EURLast" type="string">Евро</Column>
<Column name="RURRatio" type="string">Единиц RUR</Column>
<Column name="RURLast" type="string">Российский рубль</Column>
- <Row>
<Cell name="Country" type="string">Азербайджан</Cell>
<Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188763200000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">0.8525</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">1.1627</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">0.0332</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Армения</Cell>
<Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188763200000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">336.48</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">461.15</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">13.13</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Беларусь</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">2147</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">2930.66</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">83.9</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Грузия</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">1.662</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">2.2683</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">0.0649</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Казахстан</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">125.03</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">170.64</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">4.89</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Киргизия</Cell>
<Cell name="ADate" type="datetime">14.07.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1184356800000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">37.95</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">52.3312</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">1.4886</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Латвия</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">0.515</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">0.702804</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">0.0201</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Литва</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">2.5294</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">3.4528</Cell>
<Cell name="RURRatio" type="int">10</Cell>
<Cell name="RURLast" type="float">9.8896</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Молдова</Cell>
<Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188763200000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">12.0586</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">16.4165</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">0.4696</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Таджикистан</Cell>
<Cell name="ADate" type="datetime">01.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188590400000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">3.4421</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">4.6847</Cell>
<Cell name="RURRatio" type="int">10</Cell>
<Cell name="RURLast" type="float">1.3432</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Узбекистан</Cell>
<Cell name="ADate" type="datetime">04.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188849600000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">1272.54</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">1736.1</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">49.51</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Украина</Cell>
<Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188763200000</Cell>
<Cell name="USDRatio" type="int">100</Cell>
<Cell name="USDLast" type="float">505</Cell>
<Cell name="EURRatio" type="int">100</Cell>
<Cell name="EURLast" type="float">692.1025</Cell>
<Cell name="RURRatio" type="int">10</Cell>
<Cell name="RURLast" type="float">1.9706</Cell>
</Row>
- <Row>
<Cell name="Country" type="string">Эстония</Cell>
<Cell name="ADate" type="datetime">03.09.2007 00:00:00</Cell>
<Cell name="ADateInMilliseconds" type="int">1188763200000</Cell>
<Cell name="USDRatio" type="int">1</Cell>
<Cell name="USDLast" type="float">11.4661</Cell>
<Cell name="EURRatio" type="int">1</Cell>
<Cell name="EURLast" type="float">15.6466</Cell>
<Cell name="RURRatio" type="int">1</Cell>
<Cell name="RURLast" type="float">0.448046</Cell>
</Row>
</Table>
</Data>
</InfoItem>
</InfoPacket>

как импортировать его в бд sql?
...
Рейтинг: 0 / 0
04.09.2007, 09:26
    #34773306
SuSa
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Импорт xml в бд sql
1. Запускаешь php(My|postgre|MS)SqlAdmin ,создаешь табицу, импортируешь файл
2. Делаешь дамп какой нить базы в формат sql, смотришь в Фаре через F4 как внутри это представленно, приводишь свой xml подобному виду, и объедияешь дамп с твоей базой
3. Находишь более стандартные способы
4. Ждешь манны с неба или ответов от тех кто этим занимася
...
Рейтинг: 0 / 0
Форумы / XML, XSL, XPath, XQuery [игнор отключен] [закрыт для гостей] / Импорт xml в бд sql / 2 сообщений из 2, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]