(start xml.StartElement, source *Source)
| 189 | } |
| 190 | |
| 191 | func (d *Decoder) decSourceTechniqueCommon(start xml.StartElement, source *Source) error { |
| 192 | |
| 193 | // Decodes source technique common children |
| 194 | for { |
| 195 | // Get next child |
| 196 | child, _, err := d.decNextChild(start) |
| 197 | if err != nil || child.Name.Local == "" { |
| 198 | return err |
| 199 | } |
| 200 | //log.Debug("decSourceTechniqueCommon(%s): %s", start.Name.Local, child.Name.Local) |
| 201 | if child.Name.Local == "accessor" { |
| 202 | err = d.decAcessor(child, source) |
| 203 | if err != nil { |
| 204 | return err |
| 205 | } |
| 206 | continue |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | // decAcessore decodes the acessor from the specified source |
| 212 | func (d *Decoder) decAcessor(start xml.StartElement, source *Source) error { |
no test coverage detected