@@ -165,10 +165,12 @@ of_xml_parser_string_block_t CDATAHandler; of_xml_parser_string_block_t commentHandler; of_xml_parser_unknown_entity_block_t unknownEntityHandler; #endif size_t level; + size_t lineNumber; + BOOL lastCarriageReturn; BOOL finishedParsing; } #ifdef OF_HAVE_PROPERTIES @property (retain) id delegate; @@ -316,13 +318,18 @@ * * \param path The path to the file to parse */ - (void)parseFile: (OFString*)path; +/** + * \return The current line number + */ +- (size_t)lineNumber; + /** * \return Whether the XML parser has finished parsing */ - (BOOL)finishedParsing; @end @interface OFObject (OFXMLParserDelegate) @end