473,378 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

xml to delimited text

Any suggestions on coverting xml to a delimited text file? I'm
looking for a simple client side routine to import xml into MS Access.
Jul 20 '05 #1
3 4749
<Frank> wrote in message news:nu********************************@4ax.com
Any suggestions on coverting xml to a delimited text file? I'm
looking for a simple client side routine to import xml into MS Access.


If you are looking for suggestions...
Here is one: Use XSL. ;-)

If you want more specific answers ask more specific questions.

Martin
Jul 20 '05 #2


A fragment of the XML document would look like the following:

<recording>
<video>
<name>Gone With The Wind</name>
<star>Clark Gable</star>
<year_released>1950</year_released>
</video>
</recording>

The resulting delimited text file would look like this:

Gone With The Wind, Clark Gable, 1950,

I assume that I would need an application to strip the XML tag names
from the original document and not a process using XSLT. Is this
correct? The commas are immaterial. All I want to do is to be able
to feed the contents of an XML document into an Access database. What
do I use to do this.


On Wed, 15 Oct 2003 12:00:06 +0200, "Martin Boehm"
<ng********@arcor.de> wrote:
<Frank> wrote in message news:nu********************************@4ax.com
Any suggestions on coverting xml to a delimited text file? I'm
looking for a simple client side routine to import xml into MS Access.


If you are looking for suggestions...
Here is one: Use XSL. ;-)

If you want more specific answers ask more specific questions.

Martin


Jul 20 '05 #3
In article <v0********************************@4ax.com>, Frank <> wrote:

% <recording>
% <video>
% <name>Gone With The Wind</name>
% <star>Clark Gable</star>
% <year_released>1950</year_released>
% </video>
% </recording>

Obviously, this data is incorrect. Everyone knows Vivien Leigh was the
star of that movie.

% I assume that I would need an application to strip the XML tag names
% from the original document and not a process using XSLT.

You can get your comma-delimited list using XSLT.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="text"/>

<xsl:template match="video">
<xsl:value-of select="name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="star"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="year_released"/>
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>

If it's not clear how to deal with your real dataset from this,
you should find some documentation and read it.

% correct? The commas are immaterial. All I want to do is to be able
% to feed the contents of an XML document into an Access database. What
% do I use to do this.

There are tools out there that stuff databases with data from XML
documents. I'd be inclined to write a program that parses the
XML file and load the database directly, but then I'd know how to
go about it...
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ben | last post by:
Hi all - I am having a bit of trouble and thought maybe someone in this group could shed some light. Here's the skinny... I am creating an automated process to import a bunch of text files...
1
by: The Bear | last post by:
I have populated a dataset with a tab delimited text file. When the changes are made in the dataset, I then want to write those changes from the dataset to a tab delimited text file. How do I write...
0
by: TJS | last post by:
attempting to read a delimited text file into a dataset using oledb text file connection getting this error message when trying to open connection...
3
by: Joe Fisherman | last post by:
I have used regex to parse a huge text file, and grab a tab delimited portion of it. I often use comma delimited text files, and use Jet Oledb4. I read that I would need an ini if the file wasn't...
0
by: Masa Ito | last post by:
I have pipe delimited (and comma/tab) files that I read with JET using a schema file. Occasionally a field has multiple quotes (") inside a single field - which chokes the line (the rest of the...
2
by: denisel | last post by:
Hi, We will be conducting surveys through SurveyMonkey online and will be importing the answers by tab delimited or comma delimited file into access. I was wondering if there is specific way to...
1
by: Fordraiders | last post by:
vb.net 2003 Office 2003 What I have: C:\TestData\Input.txt Text File Pipe Delimited : 4 columns Of data example: 00001|NO BRAND NAME ASSIGNED|6DU27|M3-.5 X 6 FLAT HD SOCKET CAP SCREW,...
4
by: Ron | last post by:
How do I display delimited text on multiple lines in a listbox? For example in my textbox I have this: Joe Doe,123 Street,Mytown and In a listbox then I want to display: Joe Doe 123 Street...
2
by: Ron | last post by:
so if my textbox is named textbox1 and my listbox is named ltsdisplay, for the button that would make this all happen I would just need to: ...
6
by: =?Utf-8?B?UmljaA==?= | last post by:
'--this code works but only reads text into one column when contains multiple cols Dim ds1x As New DataSet Dim ConStr As String = _ "Provider=Microsoft.Jet.OLEDB.4.0;Data...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.