Rest.XmlParser.parse_from_data

### Method

# Rest XmlParserparse_from_data

#### Declaration [src]

    RestXmlNode*
    rest_xml_parser_parse_from_data (
      RestXmlParser* parser,
      const gchar* data,
      goffset len
    )

#### Description [src]

Parse the XML in `data`, and return a new `RestXmlNode`. If `data` is invalid XML, `NULL` is returned.

#### Parameters

`data` | `const gchar*`
| The XML content to parse.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.
`len` | `goffset`
| The length of `data`, or -1 if `data` is a nul-terminated string.

#### Return value

Returns: | `RestXmlNode`
| A new `RestXmlNode`, or `NULL` if the XML was invalid.
| The caller of the method takes ownership of the data, and is responsible for freeing it.