![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - RE: MSXML query newbie question >Thread Next - Re: MSXML query newbie question Re: MSXML query newbie questionTo: NULL Date: 7/4/2005 6:42:00 AM thnx, the links are indeed helpful... do u have any info about manipulation of the retrieved nodes and writing these back to the XML ? thnx, Shawn PS:- please reply to this group henceforth. Prakash Sachania wrote: > Hi Shawn, > > Welcome to XML programming. It is fun. > > Yes you can do that. Using XPATH you can query the XML document. Once you > get list of nodes that match your criteria of selection (age less than ...), > you can pretty much find out the where-abouts of the selected node. You can > get its parent, its siblings etc. > > XPATH and DOM would be sufficient for you to get started. > > XPATH Reference: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/6da1b6e3-256e-4919-8848-53b425f72ed1.asp > > DOM reference > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/d051f7c5-e882-42e8-a5b6-d1ce67af275c.asp > > Prakash > > "shawn" wrote: > > > Hi, > > I am storing a simple student database in XML format. > > it looks something like > > <?xml version="1.0"?> > > <student> > > <name></name> > > <age></age> > > <grade></grade> > > <marks></marks> > > </student> > > > > I want to write a program in MS VC++ to query the XML for all such > > students with age less than some integer. After retrieving such nodes, > > can i use the result to fetch other elements of the node such as <name> > > ?? > > Also what all tools do i need to learn (XPath, XQuery) to be able to do > > similar stuff on my own ?? > > Thanks in advance, > > Cheers, > > > > Shawn > > > > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
