HTML bold text display problem; when imported in XML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adamselearning
    New Member
    • Mar 2007
    • 2

    #1

    HTML bold text display problem; when imported in XML

    I have HTML content defined in an external XML file:

    <textBody><p>Fi rst line of text containing some <b>bold words</b>. More text with some <b>bold words</b> and then two line breaks.<br /><br />Here's some more text with <b>some more bold words</b> in the middle of it. Don't you think there's something strange about the spacing around these <b>bold words</b>? It seems to get worse with each extra appearance of a <b>bold word</b>. Thank you <b>for reading</b> my text.</p></textBody>
    I am using code to identify when a <p> tag is present, so it is not treated as an XML node. I'm also using CDATA in some cases, and still have the same problem then (even worse) with letter-spacing.

    ... and here's a screenshot of the text rendered on screen from the HTML above:





    Many thanks for help from anybody!
Working...