473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Suggestions on Importing XML Document

All,

I'm trying to automate the import of an XML document into an Access
application. Unfortunately Access cannot properly read the document. When
it attempts to bring in the document it creates partial data structures and
does not import any data.

I have tried to bring this document into Visual Studio .NET but it also
errors out. The issue being the document uses nested elements, and these
elements are interpreted as tables and it bungs up VS.NET. (This is a
confirmed bug by Microsoft with no work arounds offered:
http://support.microsoft.com/default...b;en-us;325696
)

So, ok, now the question is where do I start? Is there a third party
product I can call from Access that may be able to parse this file? Do I
have to write my own parser? Any suggestions would help.

And, PS, I have NO control over the creation of this XML document, so I
can't go to the source and ask for a Microsoft friendly XML formatted
document.

Suggestions?
Thanks,
Rick

Nov 12 '05 #1
1 1381
The "easy" way is to just go through an XmlTextReader and pull the
information you need.
You can build a dataset by hand and pass it to a DataAdapter.Update(), or
you can directly perform the insert using an OleDbCommand.
Personally, I think the "bug" you mention is not such. It's a limitation of
trying to make an XML document fit in a table-like structure like the
Dataset, nothing more. The same problem you would face if you try to put
fairly complex XSD types into .NET classes.
--
Daniel Cazzulino
Lagash Systems SA
http://weblogs.asp.net/cazzu
"R Jones" <Ne**@lunaconsulting.com> wrote in message
news:uV**************@TK2MSFTNGP09.phx.gbl...
All,

I'm trying to automate the import of an XML document into an Access
application. Unfortunately Access cannot properly read the document. When it attempts to bring in the document it creates partial data structures and does not import any data.

I have tried to bring this document into Visual Studio .NET but it also
errors out. The issue being the document uses nested elements, and these
elements are interpreted as tables and it bungs up VS.NET. (This is a
confirmed bug by Microsoft with no work arounds offered:
http://support.microsoft.com/default...b;en-us;325696
)

So, ok, now the question is where do I start? Is there a third party
product I can call from Access that may be able to parse this file? Do I
have to write my own parser? Any suggestions would help.

And, PS, I have NO control over the creation of this XML document, so I
can't go to the source and ask for a Microsoft friendly XML formatted
document.

Suggestions?
Thanks,
Rick

Nov 12 '05 #2

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

Similar topics

1
by: Ajay | last post by:
hi! is there an equivalent for the Java document.importNode in Python what i am trying to do is to import a node from a different document into the current document and then append it one of the...
2
by: Brett Foster | last post by:
Is there a way to 'include' javascript at runtime? I'm targeting most recent browsers in general, but at worst I'm looking for IE/Moz solutions. Brett
1
by: Sascha Kerschhofer | last post by:
Hi, is it against the spec to import two external schemas with the same namespace into one main schema? e.g <xs:import namespace="http://myCompany.com/formating" schemaLocation="srt3.xsd"/>...
8
by: Poonam | last post by:
Hi, Can some one please help me with (or point me to) a very simple but working code sample that shows how to import XML Schema. I have tried many samples out there on internet but nothing seems...
1
by: Richard Huff | last post by:
I'm developing a webapp that makes use of an address book for making shipping labels. I would like to give my users the ability to import contacts/addresses from MS products (different versions of...
62
by: A.M. Kuchling | last post by:
Here are some thoughts on reorganizing Python's documentation, with one big suggestion. The tutorial seems to be in pretty good shape because Raymond Hettinger has been keeping it up to date. ...
2
by: Jonathan Wood | last post by:
Hi, I'd like to build a .NET Website that has any number of documents that visitors can read. In addition to the documents, I may have one or two downloads associated with each document. I'm...
5
by: dbsmilr | last post by:
This is what I want to do: <html> <xml id="myXml"> <book title="book1" /> <book title="book2" /> </xml> <div id="out"><!-- I would output the xml formatted nicely for the user in this...
0
rnd me
by: rnd me | last post by:
Purpose: Allows you to create "presets" for text form inputs. "Lightweight and simple to setup, it adds a lot of convenience for ~1kb of code." Only one function, two parameters: First...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.