Welcome, Guest
  • Author Topic: how to escape characters in xml?  (Read 2006 times)

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    how to escape characters in xml?
    « on: 10/19/05, 08:59 »
    I want to escape "/" character in xml, how is that done?
    example:

    <options>
             <alt text="10 <img src="swf/m_qz01sc01_01e/images/qz01.jpg"></img>inches" audio="" feedback="" correct="0" />
             <alt text="12 inches" audio="" feedback="" correct="0" />
             <alt text="15 inches" audio="" feedback="" correct="1" />
             <alt text="19 inches" audio="" feedback="" correct="0" />         
          </options>

    if you can see the "img src" in text attribute, how to escape the "/" there?
    please help
    thanking you
    saumya

    saumya

    • Senior Programmer
    • ****
    • Posts: 496
      • View Profile
      • currently active
      • Email
    Re: how to escape characters in xml?
    « Reply #1 on: 10/19/05, 10:15 »