0

<pre> tag for xml does not work

Anonymous 12 years ago updated by Ricardo Usbeck 12 years ago 1

  • <?xml version="1.0"?>
  • <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  •           xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  •           xmlns:xsd= "http://www.w3.org/2001/XMLSchema#"
  •           xmlns:dbp="http://dbpedia.org/property/"
  •           xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
  •   <rdf:Description rdf:about="http://dbpedia.org/resource/Leipzig">
  •     <dbp:hasMayor
  •        rdf:resource="http://dbpedia.org/resource/Burkhard_Jung" />
  •     <rdfs:label xml:lang="de">Leipzig</rdfs:label>
  •     <geo:lat rdf:datatype="float">51.3333</geo:lat>
  •     <geo:long rdf:datatype="float">12.3833</geo:long>
  •   </rdf:Description>
  • </rdf:RDF>
When you try to insert this with <pre> tag, it won't be shown to the user

You have to replace the '<' and '>' by HTML entities &lt&gt;


I do this by going to html source code, defining the tags pre -> apply -> ok and copy paste the xml code to the wysiwyg editor. Works fine for me as an workaround!