-
Notifications
You must be signed in to change notification settings - Fork 23
/
opml.go
34 lines (32 loc) · 878 Bytes
/
opml.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"encoding/xml"
)
type Opml struct {
XMLName xml.Name `xml:"opml"`
Text string `xml:",chardata"`
Version string `xml:"version,attr"`
Head struct {
Text string `xml:",chardata"`
Title string `xml:"title"`
} `xml:"head"`
Body struct {
Text string `xml:",chardata"`
Outline []struct {
Text string `xml:",chardata"`
AttrText string `xml:"text,attr"`
Title string `xml:"title,attr"`
Type string `xml:"type,attr"`
XmlUrl string `xml:"xmlUrl,attr"`
HtmlUrl string `xml:"htmlUrl,attr"`
Outline []struct {
Text string `xml:",chardata"`
Type string `xml:"type,attr"`
AttrText string `xml:"text,attr"`
Title string `xml:"title,attr"`
XmlUrl string `xml:"xmlUrl,attr"`
HtmlUrl string `xml:"htmlUrl,attr"`
} `xml:"outline"`
} `xml:"outline"`
} `xml:"body"`
}