Re: [xml] How to parse and print data

Hi, Thank you for the link.
Actually i have gone through those sample codes. None of them dealt with getting the value given a node.
Suppose, provided node as "Prompt" i should able to print the Value, "System Language" in the below example.
There are lots of API's. unable to locate which one to use.
Could you please give me some idea on it.


On Wed, Oct 13, 2010 at 3:04 PM, David Wimsey <dwimsey rtsz com> wrote:

On Oct 13, 2010, at 2:52 PM, samaram s wrote:

> Hi,
> Here is my sample xml file that i have generated.
> I would like to parse the file and given the node name , i should able to get the Value of it.
> I would like to know, is there any example code available? Please help me. I am very new to xml stuff.
> <?xml version="1.0" encoding="UTF-8"?>
> <!--Created on Date and Time -->
> <script>
>   <Question Token="01" Offset="00" Width="02" >
>     <Prompt>SYSTEM LANGUAGE</Prompt>
>     <Option Value="00">English</Option>
>     <Option Value="01">French</Option>
>     <Value>00</Value>
>   </Question>
> </script>
> Regards,
> Sam
> _______________________________________________
> xml mailing list, project page
> xml gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]