etree icon indicating copy to clipboard operation
etree copied to clipboard

parse and generate XML easily in go

Results 26 etree issues
Sort by recently updated
recently updated
newest added

This adds a config option to choose between `"` and `'` for quoting attributes.

After a long search for an easy way to process XML documents with Go I found this project and I am very thankful for it. For my project I am...

Hello, how to read doctype in xml file ? For example : ```xml trezaq ```

Example image Load xml response: ![image](https://user-images.githubusercontent.com/7219692/171014157-d0929e5e-5fe2-4d6d-967a-ec319f69ddd3.png) Original xml ![image](https://user-images.githubusercontent.com/7219692/171014408-4ec0f9d8-9df8-4b5e-844f-df754d924f5a.png) ISO-8859-1

``` xmlStr := ` 123 456 ` fmt.Println(a.Text()) ``` ``` 123 ``` The output does not contain 456. Using "encoding/xml" package, can get the complete output ``` 123 456 ```

Hi! Great docs at https://pkg.go.dev/github.com/beevik/etree Perhaps place a link there that's easy to find? Like homepage, or a bit further up on the readme? Otherwise, thanks for a great library!

When calling Indent(2) on this snipplet, taken from Word document, it gets transformed in a way that breaks the document itself. Becomes:

We are planning to use this library in our project. Before integrating it, we would like to know how this tool performance in simple and complex XML documents, in terms...

```go log.Print("this is a log") doc := etree.NewDocument() if err := doc.ReadFromFile("D:\\Program\\FineReport_10.0\\webapps\\webroot\\WEB-INF\\reportlets\\books\\stock_detail_daily.cptx"); err != nil { panic(err) } databaseName := doc.FindElements("./WorkBook/TableDataMap/TableData/Connection/DatabaseName") for _, element := range databaseName { log.Print(element.Text()) content...