473,385 Members | 1,343 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,385 software developers and data experts.

Mapping an xml schema to a different dataset schema

Hello everyone,

I have just started to use Xml in .net so excuse me if this is a simple
question.

I have an Xml docuement that contains data in the following format: -

<SearchResult xmlns="http://tempuri.org/XMLFile1.xsd">
<QueryInformation>
<ActualQueryString />
<TotalResults />
<ResultsPerPage />
<SearchTime />
<StoppedWords />
<TheasurusWords />
<StemmedWords />
<SortMethod />
<Messages />
</QueryInformation>
<Results id="0">
<Result>
<MediaId/>
<Text/>
<OriginalFilename/>
<title/>
<Keywords/>
<abstract/>
<UploadDate/>
<FileSize/>
<UploadedBy/>
<MediaType/>
<LastUpdatedDate/>
</Result>

Where result is repeated many times, I want to load this data into a
dataset, however I am only interested in storing the data inside the
<results> tag

Therefore the Columns of my table would be : -

MediaId
Text
OriginalFilename
title
Keywords
abstract
UploadDate
FileSize
UploadedBy
MediaType
LastUpdatedDate

I can create a schema for each of these structure but how can I map the one
structure to the other tell the dataset to ingornre all other tags and
atrributes!

Thankyou for your help in adavance

Philip
Nov 12 '05 #1
0 1104

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

Similar topics

4
by: Heejeong Lee | last post by:
I am going to begin following project Description of the project: One of the proposed ways of storing XML is to "shred" the structure of the XML document and insert it into a relational...
1
by: Mark Bosley | last post by:
I have a multiple table dataset that I am attempting access thru XmlDataDocument, and I have read a bit about this (like Rocky Lhotka's article), but I am attempting something outside of the samples...
2
by: mid | last post by:
Hello! First please understand tha my xml knowledge is very very short. I'm new at xml world. I need to understand how do I map a given sqlColumn to a xml element or attribute. I was given...
1
by: David Laub | last post by:
The following valid XSD schema can NOT be successfully read by the ReadXMLSchema method of the DataSet object - it errors out with a "NonEmptyString not defined" error. This schema is more complex...
2
by: Frosty | last post by:
Howto make datagrid enforce rules of xml schema? Created xml schema in the designer. Constraints created there using the following <xs:simpleType name="zipcode"><xs:restriction...
2
by: Scott | last post by:
Hi all. A few days ago i ask this question and got a good quick response. I tried out what they said and it worked. However I have now come to try the same thing in another program and it...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
2
by: Henrik | last post by:
Hi, I'm really stuck with this one. I have a dataset with two tables. One table is company data, and the other is contacts. I populate these by using a SP in SQL Server which returns the two...
0
by: No Spam | last post by:
Hi, I am writing a Xml Editor. I use the XmlDataDocument and DataSet to read a Xsd schema given at run time. Then, I create the Xml document according to the given schema. My problem is to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.