Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML query newbie question

From: "shawn" <shawn.me@-----.--->
To: 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
> > 
> >



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent