Book a Demo

Author Topic: XML examples in my souce docs are blank in HTM doc  (Read 3406 times)

rjawanda

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
XML examples in my souce docs are blank in HTM doc
« on: September 25, 2007, 06:39:44 am »
I added XML into my C# documentation to show some SOAP examples.
When I generate the HTML documents the XML does not show up.
It does show up in the class diagram when I click on the method but not in the HTML documentation generated by EA
Is there any tag that I can use around the C# so that the docs will render it properly.
I tried all the C# tags that I can think of.
Thanks


Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: XML examples in my souce docs are blank in HTM
« Reply #1 on: September 25, 2007, 06:44:20 am »
Have you tried putting a space after the < and before the > ? That's what I do when I want to put an XML/HTML looking tag into the text of Notes and such.

rjawanda

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: XML examples in my souce docs are blank in HTM
« Reply #2 on: September 25, 2007, 08:41:06 am »
I had not tried that previously but I just tried and it still doesn't show up. Even if it did work I have a lot of tags to fix because one of my XML specifications is quite large.
sure would be nice if there was a tag that I could use.

I think the arrow left and right have to be changed to &gt;
(actually ampersand greater than semicolon)
for HTML. I with EA did this automatically somehow.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: XML examples in my souce docs are blank in HTM
« Reply #3 on: September 25, 2007, 08:54:41 am »
EA has probably 'escaped' the angle bracket. This could happen if EA (or any other utility) thought you wanted the source string to be incorporated into an XML document, and did not want your angle bracket to cause a validation error in XML.

Still, it might make it difficult to have EA correctly write the angle bracket itself into the string.

Still, that may clarify the problem, but does not give you a solution...

I suspect (entirely without proof) that you are not the first one to try this. Perhaps Sparx has an appropriate syntax to handle this. Can anyone shed light on the solution?

David
No, you can't have it!