XmlReader question (C#)

Discussion in 'XML' started by eksilva, Aug 20, 2009.

  1. eksilva

    eksilva

    Joined:
    Aug 20, 2009
    Messages:
    2
    I don't have a lot of experience with xml files. I am trying to read the string "English Version" from the XML below in C# given:
    "BUTTON_TEXT" and ""en"

    Does anyone know how to write a method passing the 2 variables above to get the result = "English Version" ?


    <?xml version="1.0" encoding="UTF-16"?>
    <localization>
    <metadata>
    <version number="1.0">
    <date>2009-07-26</date>
    <comment/>
    </version>
    <languages>
    <language lcid="1033" code="en">US English</language>
    <language lcid="1034" code="de">German</language>
    </languages>
    </metadata>
    <descriptions>
    <string key="{NLS_KEY}">
    <locale code="en">NLS value</locale>
    <locale code="de">NLS wert</locale>
    </string>
    <string key="BUTTON_TEXT">
    <locale code="en">English Version</locale>
    <locale code="de">German Version</locale>
    </string>
    </descriptions>
    </localization>
    eksilva, Aug 20, 2009
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Guest

    XMLReader or XMLDocument ?

    Guest, Dec 23, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    811
    Michel
    Dec 24, 2003
  2. George Durzi

    DataSet into XmlReader

    George Durzi, Dec 31, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    6,888
    Patrick Steele [MVP]
    Dec 31, 2003
  3. =?Utf-8?B?TGFMYUJveQ==?=

    XmlReader Problem

    =?Utf-8?B?TGFMYUJveQ==?=, May 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    424
    =?Utf-8?B?SmFrb2IgQ2hyaXN0ZW5zZW4=?=
    May 13, 2004
  4. terrorix
    Replies:
    0
    Views:
    541
    terrorix
    Jun 9, 2004
  5. Jeff Calico
    Replies:
    2
    Views:
    1,184
    Joseph Kesselman
    Feb 22, 2006
Loading...

Share This Page