Return to Bugs & Features · Post Text · Post File
| ID: | 51 |
| Status: | 4 - Pending |
| Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
| Scope: | 3 - Applies to all machines and operating systems |
| Subsystem: | Core API |
| Summary: | Stop SAX parsing from callback |
| Version: | 2.3 |
| Created By: | leon.wennekers |
| Assigned To: | Michael Sweet |
| Fix Version: | Unassigned |
| Update Notification: | |
Trouble Report Files:
Post File
No files
Trouble Report Dialog:
Post Text
leon.wennekers 03:17 Jul 25, 2007 | In a project i'm currently working on we have xml-files of several MB's. As i don't want to read the whole document in memory i will use the new SAX API. From this document i only want to read the attributes of the rootnode.
It would be nice if we could stop the stream parsing if we have found what we were looking for. So we don't need to read through the whole document. |
Michael Sweet 01:26 Sep 09, 2007 | Unfortunately, the current mxml_sax_cb_t function can't return a value, so this isn't something I can easily add support for without breaking compatibility with existing apps.
I'll keep this feature request open, but don't expect an implementation until at least Mini-XML 3.0 (which isn't even planned at this point...) |
leon.wennekers 05:18 Sep 10, 2007 | No problem, i patched the code myself to get it working.
Maybe it's possible to add an extra boolean parameter to be able to quit the parsing. With a default value of false, you won't break existing applications. |
Drake 00:46 Dec 14, 2009 | Hi leon.wennekers,
currently I have the same issue. I want to stop parsing the XML file.
I read that you have added the feature to stop parsing XML files to minixml. May I ask you, if it is possible to get your patch?
Greetings Drake |
|