Skip to main content


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 ErsoyFriend
Messages: 205
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 ErsoyFriend
Messages: 205
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:Is the infocenter supported on Firefox 3.5?
Next Topic:BIRT 2.5.1 report viewer print window not resizable
Goto Forum:
  


Current Time: Fri Apr 26 04:55:24 GMT 2024

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

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

Back to the top