jnpr/space/xmlutil.py
def xml2obj(src):
    """
    Uses lxml.objectify to parse the given XML string and returns a Python
    object.

    :param str src: Source XML string

    :returns: An instance of ```lxml.objectify.ObjectifiedElement```
    """
    start = src.find('?>')
    if start > 0:
        start += 2
    else:
        start = 0
    return objectify.fromstring(src[start:])

    Uses lxml.objectify to parse the given XML string and returns a Python
    object.

    :param str src: Source XML string

    :returns: An instance of ```lxml.objectify.ObjectifiedElement```
    
Uses lxml.objectify to parse the given XML string and returns a Python
object.
Uses lxml . objectify to parse the given XML string and returns a Python object .
def xml2obj(src):
    start = src.find('?>')
    if start > 0:
        start += 2
    else:
        start = 0
    return objectify.fromstring(src[start:])
def xml2obj ( src ) : start = src . find ( '?>' ) if start > 0 : start += 2 else : start = 0 return objectify . fromstring ( src [ start : ] )
Uses lxml.objectify to parse the given XML string and returns a Python
object.
Uses lxml . objectify to parse the given XML string and returns a Python object .
"""
    Uses lxml.objectify to parse the given XML string and returns a Python
    object.

    :param str src: Source XML string

    :returns: An instance of ```lxml.objectify.ObjectifiedElement```
    """
An instance of ```lxml.objectify.ObjectifiedElement```
An instance of ` ` ` lxml . objectify . ObjectifiedElement ` ` `
src
Source XML string
Source XML string