Results 1 to 3 of 3

Thread: how do I use " inside a node attribute

  1. #1
    Join Date
    Aug 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how do I use " inside a node attribute

    Got some problems with " and < > in xml, It didnt work to just write \" or \< like in php, so is there a way to solve this?

  2. #2
    Join Date
    Feb 2008
    Posts
    33
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    If you are wanting to display those characters on your page then you need to use the following codes
    " is &quot;
    < is &lt;
    and
    > is &gt;
    Hope this helps.

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    If you use XML with no DTD, then these five character entities are assumed to be predeclared, and you can use them without declaring them:

    Code:
    &lt; - The less-than character 
    
    &amp; - The ampersand character 
    
    &gt; - The greater-than character 
    
    &quot; - The double-quote character
    
    &apos; -   The apostrophe or single-quote character
    If you are using a DTD then you must declare all the character entities you need to use (if any), including any of the five above that you plan on using (they cease to be predeclared if you use a DTD). If you are using a Schema, you must use the numeric form for all except the five above because Schemas have no way to make character entity declarations.

Bookmarks

Posting Permissions

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