# Document Parse

## Functions
int | tidyParseFile (TidyDoc tdoc, ctmbstr filename)
int | tidyParseStdin (TidyDoc tdoc)
int | tidyParseString (TidyDoc tdoc, ctmbstr content)
int | tidyParseBuffer (TidyDoc tdoc, TidyBuffer *buf)
int | tidyParseSource (TidyDoc tdoc, TidyInputSource *source)

## Detailed Description

Parse markup from a given input source. String and filename functions added for convenience. HTML/XHTML version determined from input.

## Function Documentation

int tidyParseFile | ( | TidyDoc | tdoc,
|  | ctmbstr | filename
| ) |

| Parse markup in named file

int tidyParseStdin | ( | TidyDoc | tdoc | ) |

| Parse markup from the standard input

int tidyParseString | ( | TidyDoc | tdoc,
|  | ctmbstr | content
| ) |

| Parse markup in given string

int tidyParseBuffer | ( | TidyDoc | tdoc,
|  | TidyBuffer * | buf
| ) |

| Parse markup in given buffer

int tidyParseSource | ( | TidyDoc | tdoc,
|  | TidyInputSource * | source
| ) |

| Parse markup in given generic input source