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

Help with Xml parsing

I am trying to parse an XML file obtained from a public WebService (see below). This file does not seem to be loading into a .NET XmlDocument right (I think it is because of all of the <Item Name="" Type=""></Item> elements). I need to get out the data for the <Id/>, Name="Authors", Name="Title", and Name="PubDate" elements. Anyone have an idea how to do this (I have tried to get them out short of dumping the doc out to a string and parsing it that way)

<?xml version="1.0"?><!DOCTYPE eSummaryResult PUBLIC "-//NLM//DTD eSummaryResult, 11 May 2002//EN" "http://www.ncbi.nlm.nih.gov/entrez/query/DTD/eSummary_020511.dtd"[]><eSummaryResult><DocSum><Id>15087512</Id><Item Name="PubDate" Type="Date">2004 Apr 16</Item><Item Name="EntrezDate" Type="Date">2004/04/17 05:00</Item><Item Name="PubMedId" Type="Integer">15087512</Item><Item Name="MedlineId" Type="Integer">0</Item><Item Name="Source" Type="String">Science</Item><Item Name="Authors" Type="String">Holden C</Item><Item Name="AuthorList" Type="List"><Item Name="Author" Type="String">Holden C</Item></Item><Item Name="Title" Type="String">Archaeology. Oldest beads suggest early symbolic behavior.</Item><Item Name="Volume" Type="String">304</Item><Item Name="Issue" Type="String">5669</Item><Item Name="Pages" Type="String">369</Item><Item Name="SO" Type="String">2004 Apr 16;304(5669):369</Item><Item Name="Lang" Type="String">English</Item><Item Name="LangList" Type="List"><Item Name="Lang" Type="String">English</Item></Item><Item Name="JTA" Type="String">UJ7</Item><Item Name="NlmUniqueID" Type="String">0404511</Item><Item Name="ISSN" Type="String">0036-8075</Item><Item Name="ESSN" Type="String">1095-9203</Item><Item Name="PubType" Type="String"></Item><Item Name="PubTypeList" Type="List"><Item Name="PubType" Type="String">Comment</Item><Item Name="PubType" Type="String">News</Item></Item><Item Name="RecordStatus" Type="String">PubMed - indexed for MEDLINE</Item><Item Name="PubStatus" Type="String">ppublish</Item><Item Name="HasAbstract" Type="Integer">0</Item><Item Name="ArticleIds" Type="List"><Item Name="pubmed" Type="String">15087512</Item><Item Name="doi" Type="String">10.1126/science.304.5669.369</Item><Item Name="pii" Type="String">304/5669/369</Item></Item><Item Name="PubId" Type="String">304/5669/369</Item><Item Name="DOI" Type="String">10.1126/science.304.5669.369</Item><Item Name="History" Type="List"><Item Name="pubmed" Type="Date">2004/04/17 05:00</Item><Item Name="medline" Type="Date">2004/04/29 05:00</Item></Item><Item Name="References" Type="List"><Item Name="Comment on" Type="String">Science. 2004 Apr 16;304(5669):404. PMID: 15087540</Item></Item></DocSum></eSummaryResult

Thanks for the help

Blair
Nov 12 '05 #1
0 1375

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

Similar topics

8
by: Gerrit Holl | last post by:
Posted with permission from the author. I have some comments on this PEP, see the (coming) followup to this message. PEP: 321 Title: Date/Time Parsing and Formatting Version: $Revision: 1.3 $...
0
by: burn_hall | last post by:
Hi, I have a problem and can't figure it out and need your help, please look at the following code and the output also a xml file snippet is down there too. Looking at the output I don't know why...
16
by: Terry | last post by:
Hi, This is a newbie's question. I want to preload 4 images and only when all 4 images has been loaded into browser's cache, I want to start a slideshow() function. If images are not completed...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
by: uestebanez | last post by:
Hi everybody! I have a little problem working with libxml SAX API. The problem is that I don't know how to stop parsing when I have processed the data I need. I don't want to parse all file, I...
4
by: ralphNOSPAM | last post by:
Is there a function or otherwise some way to pull out the target text within an XML tag? For example, in the XML tag below, I want to pull out 'CALIFORNIA'. ...
8
by: mrwoopey | last post by:
Hi, I need to get data from a client via a HL7 interface. How can I do this? Can I do this via visual basic? Please post, code, links, anything! Your help is appreciated! Phin
1
by: syhzaidi | last post by:
How can we do Parsing of Hexdecimel in C# reading string from stream file for eg.. i have a file like.......... 0f 2f 12 2d 3a.......in hexa decimal save in a file.txt and i m reading it from...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
2
by: embz | last post by:
this post concerns three pages. 1. this page: http://www.katherine-designs.com/sendemail.php i get the following errors: a lot of it seems to deal with the PHP code i inserted to the page....
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
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?
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
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
tracyyun
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...

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.