473,931 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML Dataset editor

Hi,

I am making a flash card type program for the PocketPC. I am using a dataset
to contain the cards, all of that works great.

I thought I would just import the XML into word or excel, copy/paste the
data from other sources or add new records, and then save it as xml. As i
have Office XP, that does not work.

Is there a freeware XML dataset editor out there? I've found many editors,
but I just need something simple - oriented towards a dataset with a couple
of tables.

Making something like this would not be that hard, but would sort of be
re-inventing the wheel.

Any suggestions?

thanks

e
-------

<?xml version="1.0" standalone="yes "?>
<NewDataSet>
<Info>
<Version>1.0</Version>
<DateCreated>20 01-09-03T00:00:00.000 0000-05:00</DateCreated>
<OriginalAuthor >Eric</OriginalAuthor>
<OriginalAuthor Email>er**@eric kraemer.com</OriginalAuthorE mail>
</Info>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g</First>
<Second>Differe ntial</Second>
<Third>Distingu ishing Features</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g</First>
<Second>Mnuemon ic</Second>
<Third>Differen tial/Distinguishing Features</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g/Entity</First>
<Second>Questio ns</Second>
<Third>Informat ion about findings, answers to questions</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
</NewDataSet>
Nov 12 '05 #1
2 3612
Why not use MS Excel to store the table of data (whatever it is) and then
write a small export utility, maybe ~20 lines of code, to extract the
DataSet and write it to an XML file?

Here's an example that reads a dataset from MS Excel.
http://www.winisp.net/cheeso/srcview...xcel-adonet.cs

Using this as a start, all you would need to do is
modify the query to represent your spreadsheet (use a "named range" in MS
Excel)
modify the xls filename the program is using
add a statement that writes the dataset, as xml, to Console.Out or to a
specified file.

-Dino
"Eric" <er**@nospam.co m> wrote in message
news:ux******** ******@TK2MSFTN GP09.phx.gbl...
Hi,

I am making a flash card type program for the PocketPC. I am using a dataset to contain the cards, all of that works great.

I thought I would just import the XML into word or excel, copy/paste the
data from other sources or add new records, and then save it as xml. As i
have Office XP, that does not work.

Is there a freeware XML dataset editor out there? I've found many editors, but I just need something simple - oriented towards a dataset with a couple of tables.

Making something like this would not be that hard, but would sort of be
re-inventing the wheel.

Any suggestions?

thanks

e
-------

<?xml version="1.0" standalone="yes "?>
<NewDataSet>
<Info>
<Version>1.0</Version>
<DateCreated>20 01-09-03T00:00:00.000 0000-05:00</DateCreated>
<OriginalAuthor >Eric</OriginalAuthor>
<OriginalAuthor Email>er**@eric kraemer.com</OriginalAuthorE mail>
</Info>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g</First>
<Second>Differe ntial</Second>
<Third>Distingu ishing Features</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g</First>
<Second>Mnuemon ic</Second>
<Third>Differen tial/Distinguishing Features</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
<Cards>
<Section>GI</Section>
<Category>Neopl asm</Category>
<First>Findin g/Entity</First>
<Second>Questio ns</Second>
<Third>Informat ion about findings, answers to questions</Third>
<DateReviewed>2 001-09-03T00:00:00.000 0000-05:00</DateReviewed>
<KnowledgeLevel >1</KnowledgeLevel>
</Cards>
</NewDataSet>

Nov 12 '05 #2
Thanks. That will work great.

e
"Dino Chiesa [Microsoft]" <di****@online. microsoft.com> wrote in message
news:uJ******** ******@TK2MSFTN GP10.phx.gbl...
Why not use MS Excel to store the table of data (whatever it is) and then
write a small export utility, maybe ~20 lines of code, to extract the
DataSet and write it to an XML file?

Here's an example that reads a dataset from MS Excel.
http://www.winisp.net/cheeso/srcview...xcel-adonet.cs

Using this as a start, all you would need to do is
modify the query to represent your spreadsheet (use a "named range" in MS Excel)
modify the xls filename the program is using
add a statement that writes the dataset, as xml, to Console.Out or to a
specified file.

-Dino

Nov 12 '05 #3

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

Similar topics

4
1544
by: s-galit | last post by:
im trying to save the content of a DataSet to xml file but im getting the message- " This file has modified outside of the source editor do you want to reload it ? " what im missing? this is what i have wrote- dataset1.AcceptChanges dataset1.WriteXml("PathFile.xm")
19
9340
by: Adam Short | last post by:
I am trying to write a routine that will connect a .NET server with a classic ASP server. I know the following code doesn't work! The data is being returned as a dataset, however ASP does not recognise datasets and requires a recordset. Can the datatypes be converted? At the Classic ASP end or .NET end? Can SOAP toolkit provide the conversion, can any toolkit provide a conversion? ...
0
1987
by: Frosty | last post by:
Hi I am using the VS xsd designer to create a strongly typed dataset. The dataset is apparently successfully created, with no warnings or errors given. Is it not then to be expected that this dataset then should reflect all the details put into the xsd? Somewhere down the line there is not a 1:1 relationship. Be it that .NET is so tightly coupled to xsd, xml and dataset I would have expected any discrepancies to have been well documented and...
4
4043
by: Kathryn | last post by:
Hello, When I try to load this xml file (see below) into an asp.net dataset using the following code: ds.ReadXml("xmlfilepath\xmlfile.xml", XmlReadMode.Auto) I get the following error: "The same table (description) cannot be the child table in two nested
2
3393
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and then appends the data to a dataset that is built in the Page_Load code in the if(!isPostBack) block. When I try to add a row in the button click event code I get an error saying that "Object reference not set to an instance of an object". I'm...
5
1920
by: sambuela | last post by:
All data controls and wizards about dataset, adapter or dataviewer disappear in the IDE. How can i let them appear again? It is because i want to generate dataset by these wizard. Thanks in advance. ps. After i try to use previous generated adapter, i still can't generate new dataset for it.
8
5119
by: GaryDean | last post by:
In an 2.0 asp app I used vs.net 2005 to create a TableAdapter:Dataset in my App_code directory. I also created a new vb class in that same directory. I have two issues: 1. I notice that there are errors in the xml code for the dataset... <TableAdapter BaseClass="system.ComponentModel.Component" DataAccessorModifier... the DataAccessorModifier is underlined as an error - if I hover over it, it says that attribute is not declared. ...
3
1564
by: Mukesh | last post by:
Hi all I have to transfer a dataset and a string from a webform to a user control on the page without using viewstate or session or cookies . properties method is not working properly. if anybody thinks that is fine so plz describe me and send me any article or example for that. How can i do that
2
1572
by: Derek Hart | last post by:
If I save an xml file (with the schema) from a dataset, using Dataset.WriteXML, I then wish to edit the file using XML Notepad. If I just open it in XML Notepad and save it, without making any changes, the xml is just about rendered useless, and I get an error "datatable does not support schema" when trying to import it again. Is this a known issue, and is it possible to edit with other tools? Derek
0
10121
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9952
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11495
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11071
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8195
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6056
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6263
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4431
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3483
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.