'''
Since XML is very verbose, you are given a way of encoding it where each tag gets mapped to a pre-defined integer value. The language/grammar is as follows:
    Element --> Tag Attributes END Children END
    Attribute --> Tag Value
    END --> 0
    Tag --> some predefined mapping to int
    Value --> string value END

    For example the following XML might be converted into the compressed string below (assuming a mapping of family -> 1, person -> 2, firstName -> 3, lastName -> 4, state -> 5).

    <family lastName="McDowell" state="CA">
      <person firstName="Gayle">Some Message</person>
    </family>

    Becomes:
        1 4 McDowell 5 CA 0 2 3 Gayle 0 Some Message 0 0.

    Write code to print the encoded version of XML element (passed in Element and Attribute objects).

Hints: 466
'''


def xml_encoding(s):
    pass

if __name__ == '__main__':
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==

ce392de7249f4b85b0501cb0eab410aec09d992c
'''
Since XML is very verbose, you are given a way of encoding it where each tag gets mapped to a pre-defined integer value. The language/grammar is as follows:
    Element --> Tag Attributes END Children END
    Attribute --> Tag Value
    END --> 0
    Tag --> some predefined mapping to int
    Value --> string value END

    For example the following XML might be converted into the compressed string below (assuming a mapping of family -> 1, person -> 2, firstName -> 3, lastName -> 4, state -> 5).

    <family lastName="McDowell" state="CA">
      <person firstName="Gayle">Some Message</person>
    </family>

    Becomes:
        1 4 McDowell 5 CA 0 2 3 Gayle 0 Some Message 0 0.

    Write code to print the encoded version of XML element (passed in Element and Attribute objects).

Hints: 466
'''


def xml_encoding(s):
    pass

if __name__ == '__main__':
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==
    assert xml_encoding('') ==
