Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    xml link problems

    can any xml pros tell me why my link is not working??

    Code:
    <items>
    <product>
        	<id>WRISTBAND</id>
        	<title><a href="http://www.google.com">Silicone Wristband</a></title>
        	<description>Hottest Fashion Silicone Jelly Rubber Wristbands (assorted)</description>
        	<img>../images/wrist.jpg</img>
        	<price>3.00(dozen)</price>
     </product>
    <items>
    thanks guys.
    Last edited by masterofwee; 11-22-2008 at 08:36 AM.

  • #2
    Senior Coder shyam's Avatar
    Join Date
    Jul 2005
    Posts
    1,563
    Thanks
    2
    Thanked 163 Times in 160 Posts
    anchor tags are supported only in html not in xml :/...if you want ur link to show up you should transform your xml using xsl
    You never have to change anything you got up in the middle of the night to write. -- Saul Bellow

  • #3
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried to make it a link reading the link you gave my but it didnt work -______-

  • #4
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,459
    Thanks
    1
    Thanked 23 Times in 21 Posts
    Another way would be to give your link the XHTML namespace:
    Code:
    <a href="http://www.google.com" xmlns="http://www.w3.org/1999/xhtml">Silicone Wristband</a>
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

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