Copy As XML


As we saw in the previous post, CodeFluent Entities models are XML based: you can either design your model by drawing shapes on a canvas, or by declaring your elements in XML; both views are synchronized to one-another and the result will be the same.

Furthermore, using the surface view, you can copy shapes on the surface but you can also copy them “as XML” so you can paste and edit them in the XML directly.

CopyAsXml

Clicking “Copy As Xml” on the shape above will allow you to then paste the following XML:

<cf:entity name="Order" namespace="MyApp" xmlns:cf="http://www.softfluent.com/codefluent/2005/1">
  <cf:property name="Id" key="true" />
  <cf:property name="Price" typeName="currency" />
  <cf:property name="Tag" />
  <cf:property name="LineItems" typeName="OrderLineItemsCollection" />
</cf:entity>

  1. February 23, 2011 at 11:00 am

    It works for namespaces as well. Copy As Xml will copy the Xml for all entities in the namspace at once.

  1. February 22, 2011 at 10:52 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s