CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Reading XML

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    1

    Reading XML

    i have dis xml....i am getting d output for all d ID's but i want to get d output for a particular ID only....eg ID 1....so cn any 1 tel me d proper syntax for getting a particular ID....plzz help..thnks

    <?xml-stylesheet type="text/xsl" href="samp2.xsl"?>
    <CATALOG>
    <CD>
    <ID>1
    <TITLE>Empire Burlesque</TITLE>
    <ARTIST>Bob Dylan</ARTIST>
    <COUNTRY>USA</COUNTRY>
    <COMPANY>Columbia</COMPANY>
    <PRICE>10.90</PRICE>
    <YEAR>1985</YEAR>
    </ID>
    </CD>
    <CD>
    <ID>2</ID>
    <TITLE>Return of the Judai</TITLE>
    <ARTIST>Judas Priest</ARTIST>
    <COUNTRY>USA</COUNTRY>
    <COMPANY>Columbia</COMPANY>
    <PRICE>20.90</PRICE>
    <YEAR>1995</YEAR>
    </CD>
    <CD>
    <ID>3</ID>
    <TITLE>Dangerous</TITLE>
    <ARTIST>Michael Jackson</ARTIST>
    <COUNTRY>USA</COUNTRY>
    <COMPANY>Sony</COMPANY>
    <PRICE>30.00</PRICE>
    <YEAR>1992</YEAR>
    </CD>
    </CATALOG>

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: VB.NET: Get the Attribute and Text out from Xml string

    Oh, I wish people wouldn't type in SMS language!! I do not understand that!!

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: Reading XML

    TEXT SPEEK is for sending quick text messages to friends..

    Your sitting in front of a PC with a FULL keyboard, and dont get charged per letter typed...

    Please USE it properly...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured