Click here to Skip to main content
16,017,922 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey , please i have a project and i need some help with search in xml file
just question 4 and 5.


Write a program that manages a newspaper. The data is stored in an XML file having the
following DTD:
<b>!DOCTYPE NEWSPAPER [
!ELEMENT NEWSPAPER (ARTICLE+)
!ELEMENT ARTICLE (TITLE,BYLINE,LEAD,BODY,NOTES)
!ELEMENT TITLE (#PCDATA)
!ELEMENT BYLINE (#PCDATA)
!ELEMENT LEAD (#PCDATA)
!ELEMENT BODY (#PCDATA)
!ELEMENT NOTES (#PCDATA)
!ATTLIST ARTICLE AUTHOR CDATA #REQUIRED
!ATTLIST ARTICLE EDITOR CDATA #IMPLIED
!ATTLIST ARTICLE DATE CDATA #IMPLIED
]</b>
<big>Write windows forms application using Visual C# .Net programming language that does
the following:
1. Show the list of articles.
2. Show the article's details when select them.
3. Add/Remove article. (Note: use XmlDocument, XmlNode classes. InsertAfter
method might help you!).
4. Search about article by part of its title.
5. Search about article by part of its author name.</big>
Posted
Updated 4-Aug-11 14:57pm
v2
Comments
Dr.Walt Fair, PE 4-Aug-11 21:00pm    
So what have you tried? What's the question?
lujainsparkling 4-Aug-11 21:18pm    
4. Search about article by part of its title.
5. Search about article by part of its author name.

just little explanation about the best way to search in xml file
and if you can please write code to help me understand
Sergey Alexandrovich Kryukov 5-Aug-11 2:08am    
This is not a question; looks more like a work assignment, but who do you think will be interested to do this boring work for you?
--SA

1 solution

This is your homework. You need to do it yourself. You can use LINQ, if your teacher allows it, or the XmlDocument class and XPath, to search this stuff. The documentation on XPath online is excellent, and I'm sure the stuff in your textbook also covers all you need to know.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900