#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2004
    Posts
    15
    Rep Power
    0

    Need to add link to this xml code..


    Embarrassed, because I can't find the answer...

    Something like this, its a dropdown menu...

    <Dogs>
    <Hounds>
    <Hounds>
    <id>Bloodhound</id>
    <Name>Bloodhound</Name>
    </Hounds>
    </Dogs>

    Where in there would I put a link to go to a page?
    Thanks --
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,986
    Rep Power
    9397
    You can't put links in XML.

    Something is taking that XML and creating stuff with it. That's where you'd put in some kind of code to create the link.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Posts
    5
    Rep Power
    0
    Remember that XML is only a medium for storing data. You could possible try add the link either as an attribute (which I don't necessarily suggest), or you could add it as a child element then access the node's information through JavaScript and then use HTML DOM to insert a link into your page from the extrapolated data from your XML file.

IMN logo majestic logo threadwatch logo seochat tools logo