xml error, html tag inside the value.

Discussion in 'XML & RSS' started by mahmood, Sep 21, 2006.

  1. #1
    I am trying to create a xml file but I get errors. Lets say I have a text like this:

    "this is the first line of the text<br/>this is the second line of text"

    Now I want to create a tag and name it <myText>, so it would be like this:

    <myText>this is the first line of the text<p>this is the second line of text</p></myText>

    I get this error:
    XML Parsing Error: mismatched tag. Expected: </myText>

    Seems to me that the "<p>" inside the text cause the error. Am I right and what do I do?
     
    mahmood, Sep 21, 2006 IP