XML - Is there a select statement to read from XML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sebouh181
    New Member
    • Apr 2007
    • 26

    XML - Is there a select statement to read from XML?

    Hi all,

    I have a XML file like this format

    [CODE=xml]<global>
    <Item Key="Key1" value="Value1"/>
    <Item Key="Key2" value="Value2"/>
    <Item Key="Key3" value="Value3"/>
    .
    .
    .
    </global>[/CODE]

    I will be using this like global.as in ASP.
    This file is very big and I need to retrieve these values.

    Is there a way to select a value directly like SQL select statement?
    For example I need the value of "Key3" and I don't want to navigate all the XML is there a way for retrieving the value of "Key3" directly?

    Thanks in advance
    Last edited by gits; Feb 18 '08, 01:28 PM. Reason: added code tags
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    where do you need to retrieve that values? serverside or clientside? what does 'big' mean?

    kind regards

    Comment

    • sebouh181
      New Member
      • Apr 2007
      • 26

      #3
      Big means large data.

      i want to retrieve the data from the client side

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        i know ... but do you have a size? how many rows?

        is the data loaded to the client already or do you request them?

        may be you could use xpath for your purpose... look here

        kind regards

        Comment

        • sebouh181
          New Member
          • Apr 2007
          • 26

          #5
          My question is that with javascript (client side) or any other client side script can i retreive data like SQL Select statement??
          Or shall I use another technique?

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5390

            #6
            Originally posted by sebouh181
            My question is that with javascript (client side) or any other client side script can i retreive data like SQL Select statement??
            Or shall I use another technique?
            did you had a look at the link? it uses xpath in javascript ... another sql-like option i cannot imagine for that purpose ...

            kind regards

            Comment

            Working...