RustyXML is an ultra-fast XML parser and XPath 1.0 engine designed for Elixir users. It utilizes a Rust NIF (Native Implemented Function) to speed up XML processing with SIMD (Single Instruction, Multiple Data) technology. This means that it can handle large XML files quickly and efficiently, making it an ideal drop-in replacement for SweetXml and Saxy. RustyXML fully conforms to W3C/OASIS standards, ensuring reliable XML handling.
To get started with RustyXML, follow the steps below. You will need a computer with Elixir installed to run this application.
To download RustyXML, visit the Releases page by clicking the link below:
Once the file downloads, you can follow these steps to install it.
Navigate to the folder where RustyXML was extracted. For example:
cd path/to/RustyXML
To install RustyXML, run the command:
mix deps.get
To use RustyXML in your Elixir projects, you need to include it in the mix.exs file. Follow these steps:
Add RustyXML to your dependencies in the mix.exs file:
defp deps do
[
{:rustyxml, "~> x.x"}
]
end
Run the following command to fetch the new dependency:
mix deps.get
Now, you can start parsing XML files using RustyXML. Here is a simple example:
# Import RustyXML
import RustyXML
# Load XML from a file
{:ok, xml_doc} = RustyXML.load_file("path/to/file.xml")
# Use XPath to query the XML document
result = RustyXML.xpath(xml_doc, "//YourXPathHere")
For more detailed examples and advanced usage, refer to the documentation provided within the repository.
Contributions are welcome! To help improve RustyXML, fork the repository and submit a pull request. Ensure that you follow the contribution guidelines outlined in the repository.
RustyXML is open-source and available under the MIT License. You can use, modify, and distribute it freely as long as you include the original license.
For more information on license details, refer to the LICENSE file in the repository.
If you encounter any issues or have questions, check the Issues section of the repository. You can also reach out through the provided contact methods in the repository.
Visit the RustyXML Releases page to get started with your download today!