Adding line breaks to the xml file

Adding line breaks to the xml file

by Matthew Scott -
Number of replies: 1

This one has been causing me problems and I can't figure it out. Below is my definition as it is in my XML file. I need to add 2 line breaks but adding <p> and <br> give me a bad syntax warnings when uploading the file. If I go into each glossary item within moodle I can add them under the code editor without any problems.

Thank you to anyone who can point me in the right direction.

<DEFINITION>

          adjective 

          in a position where people have the right to criticise you or ask you why something

          As Director, she know she would be held accountable for any budget deficit. 

</DEFINITION>



Average of ratings: -
In reply to Matthew Scott

Re: Adding line breaks to the xml file

by Matthew Scott -

Came back to this and after digging around I realised that &lt; and &gt; is used to do some formatting. I can't seem to use it to get the text formatting (such as underlining) to work but it gives me the results I need. If anyone else has a more elegant way to achieve the results that would be a big help.

This is what I am left with.

<CONCEPT>affordable adjective /əˈfɔː(r)dəb(ə)l/</CONCEPT>

          <DEFINITION> 

          &lt;p&gt;inexpensive enough for ordinary people to afford &lt;/p&gt;

          &lt;p&gt;Many mothers don’t have access to affordable childcare.&lt;/p&gt;

         </DEFINITION>

affordable adjective /əˈfɔː(r)dəb(ə)l/

inexpensive enough for ordinary people to afford

Many mothers don’t have access to affordable childcare.