/
global.go
37 lines (33 loc) · 1.3 KB
/
global.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
35
36
37
// Copyright ©2013 The bíogo Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package entrez
import (
"github.com/biogo/ncbi/entrez/global"
)
// <!--
// This is the Current DTD for Entrez eGSearch
// $Id: egquery.dtd 39250 2004-05-03 16:19:48Z yasmax $
// -->
// <!-- ================================================================= -->
//
// <!ELEMENT DbName (#PCDATA)> <!-- .+ -->
// <!ELEMENT MenuName (#PCDATA)> <!-- .+ -->
// <!ELEMENT Count (#PCDATA)> <!-- \d+ -->
// <!ELEMENT Status (#PCDATA)> <!-- .+ -->
// <!ELEMENT Term (#PCDATA)> <!-- .+ -->
//
// <!ELEMENT ResultItem (
// DbName,
// MenuName,
// Count,
// Status
// )>
// <!ELEMENT eGQueryResult (ResultItem+)>
//
// <!ELEMENT Result (Term, eGQueryResult)>
// A Global holds the deserialised results of an EGQuery request.
type Global struct {
Query string `xml:"Term"`
Results []global.Result `xml:"eGQueryResult>ResultItem"`
}