ooxi
66caec13c9
Fixed missing `stdio.h` include
`xml.h` required `stdio.h` to be included first, which is unfortunate. Switch `xml.c` include order to include `xml.h` first in order to catch such mistakes in the future.
il y a 1 an
ooxi
2e1a10b260
Upgrade to Ubuntu 22.04 for CI
il y a 2 ans
ooxi
82efbaf2f5
GitHub no longer provides standalone downloads
Downloads can be hosted on GitHub using releases. However, prebuild binaries for such a simple library were never that useful.
il y a 2 ans
Finxx
924e9b0acd
Fix compilation error on macOS using Clang.
il y a 2 ans
ooxi
d54eb98a42
Fix typo
il y a 3 ans
ooxi
db3e166cf8
Update CI to Ubuntu 20.04
il y a 3 ans
ooxi
69b2c47089
Switch from Travis CI to GitHub Actions
While Travis CI has served us well in the past, the recent changes made it unusable. Farewell Travis CI!
il y a 3 ans
ooxi
93614254a2
Test can be executed via CMake
il y a 3 ans
ooxi
039b0893ec
Fixed typo
il y a 4 ans
Farkasvölgyi
070d0ec22b
XML attributes unit test
* `strtok_r` is not a standard function, and not available wiht std=c11 so I used a public domain implementation of it.
* Added an attribute unit test
il y a 5 ans
Blake Felt
bd11bbb5d3
Added ability to parse attributes.
il y a 5 ans
Siwen Yu
8297961519
Fix possible memory leaks
Fix #18
il y a 6 ans
ooxi
e18c25cebc
Merge pull request #16 from ooxi/issue/14
Added a test case which demonstrates how to search for an element using recursion. Functionality is similar to [getElementsByTagName](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName ), however only the first found node or null is return.
il y a 6 ans
ooxi
65e582d6d7
Recursive search example for issue #14
il y a 6 ans
ooxi
d76cbfc728
Minor documentation fix
il y a 6 ans
ooxi
591052005b
Rewrote build system to make use of modern CMake features
Now using modern CMake features as discussed by Daniel Pfeifer on C++Now 2017. Moreover a full build environment is defined by the provided [mini-cross](https://github.com/ooxi/mini-cross ) description.
il y a 7 ans
ooxi
16fc76fe62
Merge pull request #10 from ooxi/patch/fix-test-cpp
malloc/free must be used instead of new/delete
il y a 8 ans
ooxi
f800fc8354
malloc/free must be used instead of new/delete
Since xml.c is a C library, memory has to be `malloc`ed and `free`d even when using C++. This could be solved by user supplied malloc/free implementations or using `ifdef __cpluspus`.
il y a 8 ans
ooxi
aa71b65387
Corrected build instructions
Since the test was spit into a C and a C++ version, `run-tests.sh` should be used to execute all tests at once.
il y a 8 ans
ooxi
e5568290c0
Merge pull request #8 from tweakdeveloper/master
Added C++ compatibility
il y a 9 ans
Nolan Clark
b98fb3f650
Added C++ test for Travis
il y a 9 ans
Nolan Clark
6e3df59596
Further C++ compatibility changes
il y a 9 ans
Nolan Clark
1061a391bd
Fix Travis build errors
il y a 9 ans
Nolan Clark
fc4e875977
Added C++ compatibility
il y a 9 ans
ooxi
052f19e572
Plural of child is children, not childrens
il y a 11 ans
ooxi
207c7548e4
Merge pull request #7 from luksow/easy-content-fix
Fix for xml_easy_content() for nodes with no content
il y a 11 ans
ooxi
03b2d824b8
Merge pull request #6 from luksow/self-closing-tags-fix
Support for self-closing tags
il y a 11 ans
Łukasz Sowa
0f9f7089a5
Added length check to prevent wrapping.
il y a 11 ans
Łukasz Sowa
7b4dd4bace
Fixed braces for patch.
il y a 11 ans
Łukasz Sowa
e37d916dfc
Fix for xml_easy_content() for nodes with no content.
Instead of crushing xml_easy_content() returns now NULL when there's no content.
il y a 11 ans
Łukasz Sowa
b0639a0c6d
Support for self-closing tags.
il y a 11 ans
ooxi
3925b2a848
Fixed small typo
il y a 11 ans
ooxi
86c7895077
Merge pull request #4 from ooxi/verbose
Fixed xml.c verbosity in debug builds. See [Issue 1](https://github.com/ooxi/xml.c/issues/1 )
il y a 12 ans
ooxi
10d1ef9a20
Fixed xml.c verbosity in debug builds
Squashed commit of the following:
commit 9ed7fee198
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 18:20:04 2012 +0100
xml.c parser verbosity
commit 97d4cbade8
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 18:19:21 2012 +0100
xml.c parser verbosity
commit 8c5493710b
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 18:17:13 2012 +0100
xml.c parser verbosity
commit 3a793c8c7d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 18:16:37 2012 +0100
xml parser verbosity
il y a 12 ans
ooxi
dba018da77
Merge pull request #3 from ooxi/xml-open-document
Added xml_open_document API call to read a XML document from file
il y a 12 ans
ooxi
d049d16a6d
Added xml_open_document API call to read a XML document from file
Squashed commit of the following:
commit 3501a6d4a4
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:10:37 2012 +0100
Open XML document...
commit e4f6335425
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:10:04 2012 +0100
Open XML document...
commit cf9b46c260
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:09:56 2012 +0100
Open XML document...
commit be3baa3d99
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:09:48 2012 +0100
Open XML document...
commit 9be46ba2cf
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:07:35 2012 +0100
Open XML document...
commit 081a599747
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:06:58 2012 +0100
Open XML document...
commit 4af3334803
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:05:24 2012 +0100
Open XML document...
commit f5c3a25541
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:04:30 2012 +0100
Open XML document...
commit 81ee66c39e
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:02:53 2012 +0100
Open XML document...
commit 1448aa1484
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:02:03 2012 +0100
Open XML document...
commit dc767c8d67
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:01:14 2012 +0100
Open XML document...
commit ad23dcc127
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 16:00:25 2012 +0100
Open XML document...
commit f7c905130d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:59:31 2012 +0100
Open XML document...
commit 1cce95d462
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:57:29 2012 +0100
Open XML document...
commit 1b3fa5f684
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:45:03 2012 +0100
Open XML document...
commit 0778105ea2
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:41:48 2012 +0100
Open XML document...
commit 64418dcb81
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:41:06 2012 +0100
Open XML document...
commit 54061a0e3b
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:40:39 2012 +0100
Open XML document...
commit e776734fa2
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:39:39 2012 +0100
Open XML document...
commit 81bbf1e0c3
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 15:38:36 2012 +0100
Open XML document...
il y a 12 ans
ooxi
4a42ec0bc3
Merge pull request #2 from ooxi/easy-interface
New easy xml interface
il y a 12 ans
ooxi
4ec6006b64
New easy xml interface
Squashed commit of the following:
commit 7300b93a1f
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:51:19 2012 +0100
Easy development...
commit 66b764840d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:50:11 2012 +0100
Easy development...
commit 62e4801612
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:47:26 2012 +0100
Easy development...
commit d3b67262ff
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:47:08 2012 +0100
Easy development...
commit 65661e2ac0
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:45:05 2012 +0100
Easy development...
commit 3ae765fd82
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:44:58 2012 +0100
Easy development...
commit c6d1a3bb2c
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:44:36 2012 +0100
Easy development...
commit deb9846236
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:44:13 2012 +0100
Easy development...
commit 53cb08c3fc
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:43:41 2012 +0100
Easy development...
commit ce3766de25
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:40:47 2012 +0100
Easy development...
commit 9df056a6a0
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:37:59 2012 +0100
Easy interface...
commit c6b1797f0a
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:37:49 2012 +0100
Easy interface...
commit b72f20c42d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:37:32 2012 +0100
Easy interface...
commit 9d9e3994a3
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:36:52 2012 +0100
Easy interface...
commit fe43225e7d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:36:18 2012 +0100
Easy interface...
commit 9881f5516d
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:35:55 2012 +0100
Easy interface...
commit 5a0b4197be
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:35:23 2012 +0100
Easy interface...
commit e4bce00912
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:34:47 2012 +0100
Easy interface...
commit 0872374b18
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:33:56 2012 +0100
Easy interface...
commit fa075c61c6
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:31:58 2012 +0100
Easy interface...
commit 221f9cd044
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:30:12 2012 +0100
Easy interface...
commit ec2b858a82
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:29:32 2012 +0100
Easy interface...
commit 4159c73181
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:29:17 2012 +0100
Easy interface...
commit e040c00436
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:28:35 2012 +0100
Easy interface...
commit a34b05154c
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:27:39 2012 +0100
Easy interface...
commit f9b46f112b
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:26:37 2012 +0100
Easy interface...
commit d049b2f822
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:26:24 2012 +0100
Easy interface...
commit 8ff31ce1f3
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:25:39 2012 +0100
Easy interface...
commit 004a580c6b
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:25:12 2012 +0100
Easy interface...
commit 29d1070b98
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:23:57 2012 +0100
Easy interface...
commit 158f5db904
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:23:40 2012 +0100
Easy interface...
commit 9f761ff51b
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:21:27 2012 +0100
Easy interface...
commit 795c6464ca
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:19:08 2012 +0100
Easy interface...
commit 64f60cddad
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:18:32 2012 +0100
Easy interface...
commit d0c595ea84
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:18:23 2012 +0100
Easy interface...
commit 4a593ce313
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:17:59 2012 +0100
Easy interface...
commit a1552478a0
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:15:54 2012 +0100
Easy interface...
commit ac2184dee3
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:14:57 2012 +0100
Easy interface...
commit 393cbe4bf0
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:14:31 2012 +0100
Easy interface...
commit a56995ac8a
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:13:55 2012 +0100
Easy interface...
commit 921d7d6740
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:07:57 2012 +0100
Easy interface...
commit fe7de39d75
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 14:04:36 2012 +0100
Easy interface...
commit e6e158dd43
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 13:59:29 2012 +0100
Easy interface...
commit 9bb88f95d4
Author: ooxi <85fcd0ef4ec8@f977375cdcd6.anonbox.net>
Date: Thu Nov 1 13:59:01 2012 +0100
Easy interface...
il y a 12 ans
ooxi
2be4cfa787
xml_string_length and xml_string_copy will now accept 0 as string
il y a 12 ans
ooxi
aecf9769a0
Travis CI does not provide valgrind by default
il y a 12 ans
ooxi
a360944ba1
Fixed a couple of possible and fatal bugs
il y a 12 ans
ooxi
964d05bca4
Travis CI valgrind support
il y a 12 ans
ooxi
a0f55c7c14
Fixed possible memory corruption caused by off-by-one error in test case
il y a 12 ans
ooxi
3d2d9b3473
Fixed memory leak
il y a 12 ans
ooxi
1593b36a4a
Fixed memory corruption caused by off-by-one error
il y a 12 ans
ooxi
029c514ed8
Replaced manual array copy with memcpy
il y a 12 ans
ooxi
1e87d75209
Debug builds should include debug symbols
il y a 12 ans
ooxi
383ff54b93
xml.c is an extraction from gltoolkit
il y a 12 ans
ooxi
351bbe28d6
Added `Building xml.c` README section
il y a 12 ans
ooxi
12e866c25f
Referenced release tags and prebuild binaries
il y a 12 ans