README

XML

GoDoc Chat License

An experimental XML library in Go.

To use it in your project, import it like so:

import mellium.im/xml

If you'd like to contribute to the project, see CONTRIBUTING.md.

License

The package may be used under the terms of the BSD 2-Clause License a copy of which may be found in the file "LICENSE".

Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Documentation

Overview

    Package xml contains experimental XML functionality.

    This package may be deprecated or removed at any time.

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func Split

    func Split(data []byte, atEOF bool) (advance int, token []byte, err error)

      Split is a bufio.SplitFunc that splits on XML tokens.

      Example

        Use a Scanner to split a byte stream on possible XML tokens.

        Output:
        
        "<root>" "\n  " "<foo test=\"split me\"/>" "\n" "</root>"
        

        Types

        This section is empty.

        Source Files