Hello,
I have a XML file that includes the node <item>:
....
<title>...</title>
<url>...</url>
<item>
<title>title 01</title>
<description>de scription 01</description>
</item>
<item>
<title>title 02</title>
<description>de scription 02</description>
</item>
....
How to get all title and description values into a dataset or
datareader?
Thank You,
Miguel 4 1308
Shapper wrote: Hello,
I have a XML file that includes the node <item>: ... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>de scription 01</description> </item> <item> <title>title 02</title> <description>de scription 02</description> </item> ... How to get all title and description values into a dataset or datareader?
Thank You, Miguel
For a dataset, if you don't have a schema to give to it, you can tell it
to infer a schema (assuming your xml does follow the format a dataset
normally 'uses'): http://samples.gotdotnet.com/quickst...apXMLData.aspx
if you had the schema: http://samples.gotdotnet.com/quickst...etXMLData.aspx
a general primer on the subject: http://samples.gotdotnet.com/quickst...MLDataSet.aspx
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Use dataset.readxml
"Shapper" wrote: Hello,
I have a XML file that includes the node <item>: .... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>de scription 01</description> </item> <item> <title>title 02</title> <description>de scription 02</description> </item> .... How to get all title and description values into a dataset or datareader?
Thank You, Miguel
Hello,
I know dataset.readxml gets all the data from the xml file and places it
in the dataset. The problem is I don't want to take all data from the
XML file.
I only want to take the data which is inside the <item> nodes.
You can see in my XML file example I have some nodes, for example,
<title> and <url> which I don't want to place in the dataset.
I can't understand how to do this.
Can someone help me out?
Thanks,
Miguel
"Prakash.NE T" <Pr********@dis cussions.micros oft.com> wrote in message
news:Pr******** @discussions.mi crosoft.com: Use dataset.readxml
"Shapper" wrote:
Hello,
I have a XML file that includes the node <item>: .... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>de scription 01</description> </item> <item> <title>title 02</title> <description>de scription 02</description> </item> .... How to get all title and description values into a dataset or datareader?
Thank You, Miguel
Hi,
DataSet.Reaxml has a overload called DataSet.ReadXml (XmlReader).
This XmlReader can be a XmlNodeReader. Use this node reader to read the
specific node in the xml file and pass it to ReadXML. I am sorry. I don't
have the time to write the code for you.[If this answer helps you, please
click "Yes" in "Was this post helpful to you?" link]
Prakash.NET
"Shapper" wrote: Hello,
I know dataset.readxml gets all the data from the xml file and places it in the dataset. The problem is I don't want to take all data from the XML file. I only want to take the data which is inside the <item> nodes.
You can see in my XML file example I have some nodes, for example, <title> and <url> which I don't want to place in the dataset.
I can't understand how to do this.
Can someone help me out?
Thanks, Miguel
"Prakash.NE T" <Pr********@dis cussions.micros oft.com> wrote in message news:Pr******** @discussions.mi crosoft.com:
Use dataset.readxml
"Shapper" wrote:
Hello,
I have a XML file that includes the node <item>: .... <title>...</title> <url>...</url> <item> <title>title 01</title> <description>de scription 01</description> </item> <item> <title>title 02</title> <description>de scription 02</description> </item> .... How to get all title and description values into a dataset or datareader?
Thank You, Miguel
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: thomas |
last post by:
I must be doing something obvious wrong here, but:
I perform a query to retrieve a dataset - I want to archive this in a
SQL field for seperate retrieval later, while the original data may
have moved on - so I write it to a string of XML using ds.GetXML(). I
then write that string to the DB, into 1 'text' type field. (I know the
data will never get over a certain size)
Later I read that field and retrieve the data as a string and...
|
by: Plumer |
last post by:
Good morning everyone,
Using C# I create a bog-standard System.Data.DataTable
which I then Add to a System.Data.Dataset.
I need to import that structure into an Access .adp file
so I have taken the approach of using XmlTextWriter to
create an xml file. This works just fine and the IDE can
certainly read it back and interpret it correctly. But
Access cannot. It tells me that it cannot create table
|
by: Lester Moreno |
last post by:
Hello all,
Up to now C# have been an great experience but I found myself in a end of
the road problem.
Let say that you have two windows program running on a local network area.
User1 and user2 have the same information in the dataset and user1 makes a
change, unless user2 refill all his tables in his dataset he can't see the
|
by: Michael S |
last post by:
only my server get the report whitout the dialogue database login.
I think it is where the database is localhost and the crystal report know
not the connection string.
how I can crystal reports say where the database is?
Have anywhere a idee how a can fix this?
thank you
|
by: Hai Nguyen |
last post by:
Sorry I don't have code yet. I'm asking for solutions which can help me
solve the problem. This is the first time I have to cope this situation,
hence I'm clueless how to start. I would like to ask for some ideas then I
can start from scratch.
Let's say: I have a dataset which has a table Customers (which retrieves
from an Access Database)
1/ I convert it into XML format, it should look like this
<Customer>
<Name>...</Name>
| |
by: Ben Becker |
last post by:
I am trying to build a custom crosstab type of grid where I take some items
in a data grid and based on the content of the current item compared to the
previous item, determine if a new row in a table should be created or not.
In order to do this, I need to have full control over the conditional logic
for how items get displayed within a repeater element which I'm not seeing
as possible.
How can I cursor through a data set, apply...
|
by: ASP Yaboh |
last post by:
I have an ArrayList of data gathered from a database. I want to create a web
page from this data by creating a <table>, each cell in each row displays the
appropriate data. One of those cells in each row needs a <textarea> control.
The background supporting classes are completed, the only task left now is
to create the web page. I am at a loss on how to create the table in the page
populated by the data. Previously, I would have just...
|
by: Arne |
last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart
from a pocket PC to a webservice.
What is the right datatype?
II have tried dataset as a datatype, but I can't get it to compile.
<WebMethod()> _
Public Function VerifySku(ByVal skus As XmlDataDocument) As DataSet
Test program :
Dim cartSet As DataSet
cartSet = ws.VerifySku(cartSet)
|
by: 2Barter.net |
last post by:
newsmail@reuters.uk.ed10.net Fwd: Money for New Orleans, AL & GA
Inbox
Reply
Reply to all
Forward
Print
Add 2Barter.net to Contacts list
Delete this message
Report phishing
Show original
|
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...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |