Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/XML-DOM-serialization/Go/xml-dom-serialization-1.go
Normal file
21
Task/XML-DOM-serialization/Go/xml-dom-serialization-1.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
dom "gitlab.com/stone.code/xmldom-go.git"
|
||||
)
|
||||
|
||||
func main() {
|
||||
d, err := dom.ParseStringXml(`
|
||||
<?xml version="1.0" ?>
|
||||
<root>
|
||||
<element>
|
||||
Some text here
|
||||
</element>
|
||||
</root>`)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
}
|
||||
fmt.Println(string(d.ToXml()))
|
||||
}
|
||||
5
Task/XML-DOM-serialization/Go/xml-dom-serialization-2.go
Normal file
5
Task/XML-DOM-serialization/Go/xml-dom-serialization-2.go
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<root>
|
||||
<element>
|
||||
Some text here
|
||||
</element>
|
||||
</root>
|
||||
Loading…
Add table
Add a link
Reference in a new issue