Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Import glossary entries.

Talk:Import glossary entries: Difference between revisions

From MoodleDocs
No edit summary
Line 28: Line 28:
David H
David H
(fdhs@operamail.com)
(fdhs@operamail.com)
== Fortune files to XML? ==
I have a list of quotations from the fortune program that are in text format.
How do I convert these into XML to be imported into a glossary?

Revision as of 17:30, 26 March 2010

In the "Troubleshooting" section it says:

"HTML and XHTML tags written within CONCEPT or DEFINITION elements will fail on import, showing "Array" instead of the desired content. To remedy this, try writing the (X)HTML tags within <![CDATA[ ]]> markup."

I tested this solution in Moodle 1.9, and I couldn't read the characters, because (I think) that Moodle's HTML editor "confuses" the CDATA tag with a comment.

For example, I imported a definition with this tags:

<![CDATA[<]]> <![CDATA[>]]>

The first one is related to the < symbol, and the second one to the > character.

The tags don't appear in the Definition area of the glossary, and if I edit the definition in the HTML editor, I see nothing (even when I click the <> button).

If I include the CDATA tags manually in the HTML editor (after clicking the <> button), I also see nothing, but if I click again on the <> button, I see:

< !--[CDATA[<]]--> < !--[CDATA[>]]-->

Which, I believe, its the HTML format for a comment.

Maybe somebody else can test this in order to confirm the proposed solution, and/or to give more evidence that it has no effect in the integration of the glossary via the "import" option.

Thanks, David H (fdhs@operamail.com)

Fortune files to XML?

I have a list of quotations from the fortune program that are in text format.

How do I convert these into XML to be imported into a glossary?