Description of the method
|Description:||xmlElementBlockSize method checks the content lenght of an element. This lenght includes tags as well as values without pretty printing the XML.|
|OCL:||self.xmlElementBlockSize() = 17|
|Description:||The example rule checks the lenght of PartyIdentification content including tags and values.|
The XML snippet below would pass this check.
The following data is taken into account when calculating the length in the above example "<Name>name</Name>". The indentation before the name element as well as the line feed before and after the element are omitted.
Some more examples below:
| <Debtor> |
|xmlElementBlockSize = 31 |
Comments are included to length.
xmlElementBlockSize = 21
Attached you can find example schema and files which you can use for testing.