XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 1st, 2003, 12:48 PM
siric siric is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Barbados
Posts: 122 siric User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 59 m 16 sec
Reputation Power: 7
Import schema for MySql

Hi,

I am trying to import an XML file to a table in MySQL, but am getting an error with the schema. How do I determine from looking at the XML file what the schema for the database table should be?

The XML file is listed below -

<?xml version="1.0" encoding="ISO-8859-1"?>

<xport>
<meta>
<start>1064841900</start>
<step>300</step>
<end>1064928600</end>
<rows>290</rows>
<columns>2</columns>
<legend>
<entry>Tx from Cust</entry>
<entry>Rx to Cust</entry>
</legend>
</meta>
<data>
<row><t>1064844300</t><v>4.8531558687e+003</v><v>1.1178867326e+004</v></row>
<row><t>1064844600</t><v>5.3744500273e+003</v><v>1.4437013410e+004</v></row>
<row><t>1064844900</t><v>5.3086930676e+003</v><v>1.4960800753e+004</v></row>
<row><t>1064845200</t><v>5.1178093355e+003</v><v>1.3331975748e+004</v></row>
</data>
</xport>


Thx
SiRiC

Reply With Quote
  #2  
Old October 4th, 2003, 08:33 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
That's rather confusing. It says there are two columns, but each row has three entries. Where did you get the xml file? You may be able to ask whoever you got it from to explain it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Import schema for MySql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT