Browse Source

Update 'README.md'

master
TheoryOfNekomata 1 year ago
parent
commit
02b98a5d98
1 changed files with 4 additions and 7 deletions
  1. +4
    -7
      README.md

+ 4
- 7
README.md View File

@@ -15,16 +15,13 @@ Downloads
All releases are based on master, so the preferred way of using xml.c is adding
the repository as [git submodule](http://git-scm.com/book/en/Git-Tools-Submodules).

If you prefer formal releases, check out the [release tags](https://github.com/ooxi/xml.c/tags).


Building xml.c
--------------

Since xml.c uses [CMake](http://www.cmake.org/), building the library is fairly
easy

$ git clone https://github.com/ooxi/xml.c.git xml.c
$ git clone https://code.modal.sh/TheoryOfNekomata/xml-c.git xml.c
$ mkdir xml.c/build; cd xml.c/build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make && make test
@@ -35,7 +32,7 @@ If you need a debug build, specify `CMAKE_BUILD_TYPE` as `Debug` and rebuild.
Usage
-----

This example is also [included in the repository](https://github.com/ooxi/xml.c/blob/master/test/example.c)
This example is also [included in the repository](https://code.modal.sh/TheoryOfNekomata/xml-c/blob/master/test/example.c)
and will be build by default. Most of the code is C boilerplate, the important
functions are `xml_parse_document`, `xml_document_root`, `xml_node_name`,
`xml_node_content` and `xml_node_child` / `xml_node_children`.
@@ -116,11 +113,11 @@ int main(int argc, char** argv) {
}
```

Another usage example can be found in the [unit case](https://github.com/ooxi/xml.c/blob/master/test/test-xml.c).
Another usage example can be found in the [unit case](https://code.modal.sh/TheoryOfNekomata/xml-c/blob/master/test/test-xml.c).


License
-------

[libpng/zlib](https://github.com/ooxi/xml.c/blob/master/LICENSE) (BSD)
[libpng/zlib](https://code.modal.sh/TheoryOfNekomata/xml-c/blob/master/LICENSE) (BSD)


Loading…
Cancel
Save