Commit Graph

59 Commits

Author SHA1 Message Date
Nikolay Sivov 9d4c73f4c1 xmllite/tests: Test complete writer output for UTF-16 case.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 09:12:16 +01:00
Sven Baars 7f7c703eb9 xmllite/tests: Fix a memory leak (Valgrind).
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-14 17:25:49 +01:00
Nikolay Sivov 4c779c07bd xmllite/writer: Implement WriteDocType().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-02 15:18:02 +01:00
Nikolay Sivov b11f43d568 xmllite/writer: Fix writing prefixed attributes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-21 23:58:56 +02:00
Nikolay Sivov 2d5d3a892f xmllite/writer: Fix "xml:space" output.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 15:42:17 +02:00
Nikolay Sivov ef7b911a62 xmllite/writer: Fix formatted output with interleaving text nodes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:52:42 +02:00
Nikolay Sivov 9784ef1633 xmllite/writer: Fix formatted output for closing tags.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-14 12:52:40 +02:00
Nikolay Sivov 1517695f78 xmllite/writer: Improve namespace support in WriteAttributeString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-12 23:15:14 +02:00
Nikolay Sivov 9730971e8e xmllite/tests: Add another test for WriteAttributeString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-12 23:15:14 +02:00
Nikolay Sivov a86e2a4a3f xmllite/writer: Improve namespaces handling in WriteStartElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-11 13:38:16 +02:00
Nikolay Sivov 8eb054f328 xmllite/writer: Add support for namespace definitions in WriteElementString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-11 13:38:15 +02:00
Nikolay Sivov b34362f2d9 xmllite/writer: Validate local name and prefix in WriteStartElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 16:45:03 +02:00
Nikolay Sivov 69b2ed368d xmllite/writer: Validate local name and prefix in WriteElementString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 16:45:01 +02:00
Nikolay Sivov 5e5b7b49ba xmllite/tests: Add more writer tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 16:44:59 +02:00
Nikolay Sivov 4b6d8fb063 xmllite/tests: Added a test for output with code page 1200.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-03 11:50:51 +02:00
Nikolay Sivov 49a57bcaba xmllite/writer: Improve handling of the output with invalid encoding.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-03 11:50:49 +02:00
Nikolay Sivov a6d6bebede xmllite/writer: Do not indent after just BOM has been written.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 09:45:12 +02:00
Nikolay Sivov 5773a5d3b4 xmllite/writer: Fix indentation on WriteElementString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 09:45:10 +02:00
Nikolay Sivov 5f4ed88ee8 xmllite/writer: Fix empty element and state handling in WriteElementString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 09:45:08 +02:00
Nikolay Sivov 707ab559e5 xmllite/writer: Fix IID argument handling in CreateXmlWriter().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 14:59:33 +02:00
Nikolay Sivov a68e51ce63 xmllite/writer: Preserve original encoding name spelling in writer output.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 10:52:41 +02:00
Nikolay Sivov ef023c3fd6 xmllite: Recognize us-ascii encoding.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 10:52:39 +02:00
Nikolay Sivov 20920457d7 xmllite/tests: Fix a memory leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 21:31:28 +01:00
Nikolay Sivov 9c988e7b0e xmllite/writer: Implement WriteString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 13:23:26 +01:00
Nikolay Sivov 0fd4fae7c5 xmllite/writer: Implement WriteCharEntity().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:17:30 +09:00
Nikolay Sivov 8b2b455bd0 xmllite/writer: Close open tag with WriteFullEndElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:17:28 +09:00
Nikolay Sivov 895ad74fb0 xmllite/writer: Support trivial case of WriteAttributeString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-08 23:07:22 +09:00
Nikolay Sivov c52fa73a43 xmllite/writer: Initial support for indented output.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 11:17:52 +09:00
Nikolay Sivov 4dcbf2b4b2 xmllite/writer: Make it possible to use WriteRaw() multiple times.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 20:35:11 +09:00
Nikolay Sivov 1cb6fa5e84 xmllite/writer: Fix a bunch of Write* methods to set closed state.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 20:35:07 +09:00
Nikolay Sivov 2d9f6f7215 xmllite/writer: Put writer into closed state on WriteAttributeString().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 20:35:03 +09:00
Nikolay Sivov e89c2df7c5 xmllite/writer: Handle initial and ready states in the rest of tested Write* methods.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-24 20:35:00 +09:00
Nikolay Sivov e3a6d59324 xmllite/writer: Fix WriteEndElement()/WriteFullEndElement() on ready state.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 22:58:38 +09:00
Nikolay Sivov 6ca1ebdd25 xmllite/writer: Properly fail on initial state in WriteEndElement().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 22:58:36 +09:00
Nikolay Sivov 86a7dd99e0 xmllite/writer: Fix initial state handling in WriteEndDocument().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 22:58:34 +09:00
Nikolay Sivov 8ad295ed70 xmllite/tests: A test for Write* behaviour on initial writer state.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-23 22:58:31 +09:00
Nikolay Sivov 450a343f77 xmllite/tests: Add a helper to create/set writer output.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:31 +09:00
Nikolay Sivov 1a68193454 xmllite/tests: Add a helper to test writer output.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:31 +09:00
Nikolay Sivov b9b2dafb50 xmllite/tests: Use static linking to xmllite.dll.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:30 +09:00
Nikolay Sivov 41f22e4cd1 xmllite/writer: Implement WriteRaw().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 22:23:30 +09:00
Nikolay Sivov 7b8929e0f5 xmllite/writer: Implement WriteCData().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-16 12:13:46 +09:00
Nikolay Sivov 41fcd1042e xmllite/writer: Implement WriteComment().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 10:15:29 +09:00
Hans Leidekker d1658260a2 xmllite: Implement CreateXmlWriterOutputWithEncodingCodePage. 2015-08-06 21:42:19 +09:00
Nikolay Sivov aadd9ff159 xmllite/writer: Implement WriteEndDocument(). 2015-05-20 17:28:58 +09:00
Nikolay Sivov af46bab594 xmllite/writer: Maintain a stack of written elements to write end tags.
Xmllite helps in a way that user doesn't have to specify closing tag
name (like it has to in case of MXWriter). So when closing current level
element qname is used for a closing tag; later this stack will also hold
namespace definitions that element is carrying to check if nested
element uses defined prefix.
2014-06-16 09:31:40 +02:00
Nikolay Sivov f43a6d46da xmllite/writer: Initial implementation of WriteElementString(). 2014-05-21 12:07:37 +02:00
Nikolay Sivov 2177403b8e xmllite/writer: Initial implementation of WriteStartElement(). 2014-05-21 12:07:35 +02:00
Nikolay Sivov 086a1e3709 xmllite/writer: Implement ByteOrderMark property. 2014-05-20 21:26:55 +02:00
Nikolay Sivov 9a2177ff53 xmllite/writer: Implement OmitXmlDeclaration property. 2014-05-20 21:26:55 +02:00
Nikolay Sivov 81d2516449 xmllite/writer: Fix Flush() behaviour on partial writes. 2014-05-16 10:53:29 +02:00