ToXml Function

  • Updated

Returns the xml for an Entity or Entity Field.

Syntax 1

 

Returns the xml for an Entity or Entity Field.

 

ToXml()

Syntax 2

 

Returns the xml for an Entity or Entity Field.

 

ToXml(field)

 

 

Arguments:

 

 

 

field

Field - An Entity Field or Entity in the current context hierarchy.

Remarks

  • If the Entity is bound to state that does not support the ToXml method, a runtime error is thrown.
  • See also ToInnerXml().
  • Example: ToXml() returns "<Entity1><EntityField1><PrimitiveField1>123</PrimitiveField1></EntityField1></Entity1>".
  • Example: ToXml(Entity1) returns "<Entity1><EntityField1><PrimitiveField1>123</PrimitiveField1></EntityField1></Entity1>".
  • Example: ToXml(EntityField1) returns "<Entity2><PrimitiveField1>123</PrimitiveField1></Entity2>".

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.