Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# samp-plugin-xml

[![sampctl](https://img.shields.io/badge/sampctl-samp--plugin--xml-2f2f2f.svg?style=for-the-badge)](https://github.com/marevin/samp-plugin-xml)

XML plugin for SA-MP server
Provides API for parsing XML files
[Developed by Zeex](https://github.com/Zeex/samp-plugin-xml/)

Forked repository for compatibility with sampctl

~~http://forum.sa-mp.com/showthread.php?t=150755~~
https://sampforum.blast.hk/showthread.php?tid=150755
(Backup of an outdated thread with outdated code. Archive purposes only)

## Installation

Simply install to your project:

```bash
sampctl package install Marevin/samp-plugin-xml
```

Include in your code and begin using the library:

```pawn
#include <xml>
```

## Usage

<!--
Write your code documentation or examples here. If your library is documented in
the source code, direct users there. If not, list your API and describe it well
in this section. If your library is passive and has no API, simply omit this
section.
-->
Native functions are documented in the ```xml.inc``` file.

Note:
The following functions are hardcoded to look for files in the ```scriptfiles/``` path.

```
XML_CreateDocument
XML_LoadDocument
XML_SetValue
```

## Testing

<!--
Depending on whether your package is tested via in-game "demo tests" or
y_testing unit-tests, you should indicate to readers what to expect below here.
-->

To test, simply run the package:

```bash
sampctl package run
```