parse_file


Description:

public bool parse_file (File file, FormatKind format) throws Error

Parses an AppStream upstream metadata file.

If file does not exist, g_io_error_not_found will be returned. Other GIOErrorss and MetadataErrors may be returned as appropriate.

Parameters:

this

A valid Metadata instance

file

File for the upstream metadata

format

The format the data is in, or as_format_kind_unknown if not known.

Returns:

true if the file was parsed without error.