Results 1 to 5 of 5

Thread: Ampersand in XML?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Ampersand in XML?

    Anyway of having an & within an xml tag or any workaround, i need to store url's between the tags ?

  2. #2
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Ampersand in XML?

    I'm not sure but, did you try &amp instead?

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Ampersand in XML?

    This works
    Code:
    <InventoryClasses> 
    	value = "asd&amp;"
    </InventoryClasses>
    Shows..
    <InventoryClasses>value = "asd&"</InventoryClasses>

  4. #4

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Re: Ampersand in XML?

    yup works great!

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Ampersand in XML?

    Depends on the target platform but I usually avoid named entities in case they are not supported, for example I always use &#169; for the copyright symbol as &copy; is not supported by Safari.

    &amp; is I think pretty well supported though so you'd be safe enough with that.

    Edit: It's &#38; in case you want to use it instead.
    Last edited by penagate; Feb 28th, 2006 at 12:32 AM.

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