summaryrefslogtreecommitdiff
path: root/source/fitz/xml.c
AgeCommit message (Collapse)Author
2016-06-17Use 'size_t' instead of int as appropriate.Robin Watts
This silences the many warnings we get when building for x64 in windows. This does not address any of the warnings we get in thirdparty libraries - in particular harfbuzz. These look (at a quick glance) harmless though.
2016-04-21xml: Add a missing case of skipping linebreak after an opening tag.Tor Andersson
2016-03-14xml: Fix linebreak before closing tag test.Tor Andersson
2016-02-24xml: Implement SGML line break rules.Tor Andersson
Always ignore a line break immediately after an opening tag and before a closing tag.
2015-05-05Ignore ENTITY declarations in XML.Tor Andersson
2015-02-17Add ctx parameter and remove embedded contexts for API regularity.Tor Andersson
Purge several embedded contexts: Remove embedded context in fz_output. Remove embedded context in fz_stream. Remove embedded context in fz_device. Remove fz_rebind_stream (since it is no longer necessary). Remove embedded context in svg_device. Remove embedded context in XML parser. Add ctx argument to fz_document functions. Remove embedded context in fz_document. Remove embedded context in pdf_document. Remove embedded context in pdf_obj. Make fz_page independent of fz_document in the interface. We shouldn't need to pass the document to all functions handling a page. If a page is tied to the source document, it's redundant; otherwise it's just pointless. Fix reference counting oddity in fz_new_image_from_pixmap.
2015-02-17Rename fz_close_* and fz_free_* to fz_drop_*.Tor Andersson
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
2014-12-03xml: Make accessors NULL-resistant. Add fz_xml_find functions.Tor Andersson
Find the first sibling, next sibling or first child matching tag name.
2014-12-03xml: Optimize creation of really long lists by keeping a tail pointer.Tor Andersson
2014-12-03xml: Don't emit empty text nodes between tags when preserving whitespace.Tor Andersson
2014-09-17xps: Add fz_xml_is_tag to simplify tag matching.Tor Andersson
2014-09-17Improve XML parser.Tor Andersson
Add a whitespace preserving mode, for future use with XHTML. Also parse XHTML entities. This is not strictly according to spec, but for properly formed XML documents it should not matter.
2014-04-23Fix bug 693580 by skipping xml tag namespace prefixes.Tor Andersson
fts_5904.xps and fts_5905.xps use namespace prefixes. Work around that by ignoring the namespace prefix for tag names. A more robust solution would be to expand or record the tag and attribute namespaces in the fz_xml node structure, but that's a overkill for our current needs.
2013-11-05Fix bug in fz_debug_xml.Tor Andersson
Print node and children, not node, children and siblings.
2013-11-05Ignore <!DOCTYPE ...> declaration in XML parser.Tor Andersson
2013-09-13Fix various compile warnings spotted by the cluster.Robin Watts
2013-06-20Rearrange source files.Tor Andersson