Posted 17 years ago by Colin Blakey - Application Development Manager, Vertex Inc
Version: 4.0.0259
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
When the quick info for an XML node appears the xml annotation text is shown. If the annotation follows the description\line number format it is concatenated making it look a little strange i.e with the XSD schema element

<xsd:element name="GrossReceiptsOrSales" minOccurs="0">
  <xsd:annotation>
    <xsd:documentation>
       <Description>Gross receipts or sales</Description>
       <LineNumber>1a</LineNumber>
    </xsd:documentation>
  </xsd:annotation>
<xsd:complexType>
the text shown ends up as

Gross receipts or sales 1a.

Is there any way to reformat this and show it as say

Gross receipts or sales. Line 1a.

Thanks

Colin Blakey

Comments (3)

Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Colin,

There isn't a way to do that right now. Maybe we could create a virtual method on XmlSchemaResolver that would take a XmlSchemaDocumentation object and allow you return whatever you'd like from it. The default implementation could return text as it is now. Would that work for you?


Actipro Software Support

Posted 17 years ago by Colin Blakey - Application Development Manager, Vertex Inc
Avatar
That would work very nicely.

Thanks

Colin
Posted 17 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Ok the next maintenance reelease now has a virtual XmlSchemaResolver.GetDocumentation method that you can override to add to the existing or create your own documentation.

You can even use this to add documentation for schema objects that don't have any if you wish.

The documentation uses the markup format for quick info so you can add colorized text, images, etc.


Actipro Software Support

The latest build of this product (v24.1.1) was released 27 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.