1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

a href in XML

Discussion in 'XML & RSS' started by shankar.dci, May 4, 2012.

  1. #1
    Hello All,

    I need how to give ahref tag in xml,
    Please help
     
    shankar.dci, May 4, 2012 IP
  2. iMarcus

    iMarcus Active Member

    Messages:
    122
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #2
    XML is used for passing data from one place to another, so there isn't really any need in it to have A HREF. If I understand your question, then you would place your url in an element like <link>link1.html</link> then parse the url out.
    Hope this helps!
     
    iMarcus, May 25, 2012 IP
  3. Custom IDX/MLS

    Custom IDX/MLS Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Something along the lines of what iMarcus said, perhaps even <a><title>link title</title><target>_blank</target><href>someurl . com</href></a>
     
    Custom IDX/MLS, Jun 25, 2012 IP
  4. StreamingPapers

    StreamingPapers Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What iMarcus said is right. Place your url in an <link> element within an <item> element. This will also pass xml validation

    <item>
    <other tags></other tags>
    <link>Place url here</link>
    </item>
     
    StreamingPapers, Jun 26, 2012 IP