etree
etree copied to clipboard
parse and generate XML easily in go
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:  Original xml  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...