Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Including xml in a pre tag
Including xml in a pre tag [message #624087] Wed, 07 April 2010 19:00 Go to next message
Ole Ersoy is currently offline Ole Ersoy
Messages: 201
Registered: July 2009
Senior Member
Hi,

I see that other help pages include xml in a pre tag like this:

<pre xml:space="preserve">

<ecore:EPackage
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="library"
nsURI="http:///library.ecore"
nsPrefix="library">
<eClassifiers
xsi:type="ecore:EClass"
name="Book">
<eStructuralFeatures
xsi:type="ecore:EAttribute"
name="title"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures
xsi:type="ecore:EAttribute"
name="pages"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
</ecore:EPackage>
</pre>

However when I do this, it does not render visibly. Any ideas?

TIA,
- Ole
Re: Including xml in a pre tag [message #624088 is a reply to message #624087] Wed, 07 April 2010 19:31 Go to previous message
Ole Ersoy is currently offline Ole Ersoy
Messages: 201
Registered: July 2009
Senior Member
OK - Never mind - I looked at the source for the help document and turns most of the characters need escaping like this:

<pre>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="library "nsURI="http:///library.ecore" nsPrefix="library">
<eClassifiers xsi:type="ecore:EClass" name="Book">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="title"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="pages"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
</eClassifiers>
</ecore:EPackage></pre>
Previous Topic:Including xml in a pre tag
Next Topic:Is it possible to Data Bind to non-GUI odjects
Goto Forum:
  


Current Time: Sun Sep 21 20:08:39 GMT 2014

Powered by FUDForum. Page generated in 0.01532 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software