Class XmlRendererBlockVisitorANF

  • All Implemented Interfaces:
    BlockVisitor

    public class XmlRendererBlockVisitorANF
    extends XmlRendererBlockVisitorENF

    This class renders a Block tree in XML format, specifically Attribute Normal Form, where the scalar properties are represented as attributes.

    Here are the rules for converting an arbitrary Block tree into an XML structure:

    1. The name of the root element is determined by calling the method getDocumentElementName(Block). The default implementation returns "root".
    2. The scalar properties are represented as attributes. Scalar-based properties use the name of the BlockProperty as the attribute name and the value of the BlockProperty as the attribute value.
    3. Block-based properties use the name of the BlockProperty as the element name. The properties of this child Block become the attributes of it using the rule described above.
    4. List-based properties use the name of the BlockProperty as the element name. However, as the elements of a list have no names (and are only listed one after another), the name of the element that is used for this list element is found by calling getBlockInListElementName(Block). The default implementation returns "block".
Since:
MicroStrategy Web 9.0.1