Move from encoding/xml to etree.
parent
8369d28f9e
commit
d3cdd71f03
@ -1,65 +0,0 @@
|
|||||||
// Copyright 2022 Martin Dosch.
|
|
||||||
// Use of this source code is governed by the BSD-2-clause
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
package main
|
|
||||||
|
|
||||||
import "encoding/xml"
|
|
||||||
|
|
||||||
// Created with https://github.com/miku/zek
|
|
||||||
type IQDiscoItemsType struct {
|
|
||||||
XMLName xml.Name `xml:"query"`
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Xmlns string `xml:"xmlns,attr"`
|
|
||||||
Item []struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Jid string `xml:"jid,attr"`
|
|
||||||
} `xml:"item"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Created with https://github.com/miku/zek
|
|
||||||
type IQDiscoInfoType struct {
|
|
||||||
XMLName xml.Name `xml:"query"`
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Xmlns string `xml:"xmlns,attr"`
|
|
||||||
Identity struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Type string `xml:"type,attr"`
|
|
||||||
Name string `xml:"name,attr"`
|
|
||||||
Category string `xml:"category,attr"`
|
|
||||||
} `xml:"identity"`
|
|
||||||
Feature []struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Var string `xml:"var,attr"`
|
|
||||||
} `xml:"feature"`
|
|
||||||
X []struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Type string `xml:"type,attr"`
|
|
||||||
Xmlns string `xml:"xmlns,attr"`
|
|
||||||
Field []struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Type string `xml:"type,attr"`
|
|
||||||
Var string `xml:"var,attr"`
|
|
||||||
Value string `xml:"value"`
|
|
||||||
} `xml:"field"`
|
|
||||||
} `xml:"x"`
|
|
||||||
}
|
|
||||||
|
|
||||||
// Created with https://github.com/miku/zek
|
|
||||||
type IQHttpUploadSlot struct {
|
|
||||||
XMLName xml.Name `xml:"slot"`
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
Xmlns string `xml:"xmlns,attr"`
|
|
||||||
Get struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
URL string `xml:"url,attr"`
|
|
||||||
} `xml:"get"`
|
|
||||||
Put struct {
|
|
||||||
Text string `xml:",chardata"`
|
|
||||||
URL string `xml:"url,attr"`
|
|
||||||
Headers []struct {
|
|
||||||
Name string `xml:"name,attr"`
|
|
||||||
Value string `xml:",chardata"`
|
|
||||||
} `xml:"header"`
|
|
||||||
} `xml:"put"`
|
|
||||||
}
|
|
Loading…
Reference in New Issue