LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package xml | 5 package xml |
6 | 6 |
7 import ( | 7 import ( |
8 "bytes" | 8 "bytes" |
9 "errors" | 9 "errors" |
10 "reflect" | 10 "reflect" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 case fCharData: | 272 case fCharData: |
273 if !saveData.IsValid() { | 273 if !saveData.IsValid() { |
274 saveData = finfo.value(sv) | 274 saveData = finfo.value(sv) |
275 } | 275 } |
276 | 276 |
277 case fComment: | 277 case fComment: |
278 if !saveComment.IsValid() { | 278 if !saveComment.IsValid() { |
279 saveComment = finfo.value(sv) | 279 saveComment = finfo.value(sv) |
280 } | 280 } |
281 | 281 |
282 » » » case fAny: | 282 » » » case fAny, fAny | fElement: |
283 if !saveAny.IsValid() { | 283 if !saveAny.IsValid() { |
284 saveAny = finfo.value(sv) | 284 saveAny = finfo.value(sv) |
285 } | 285 } |
286 | 286 |
287 case fInnerXml: | 287 case fInnerXml: |
288 if !saveXML.IsValid() { | 288 if !saveXML.IsValid() { |
289 saveXML = finfo.value(sv) | 289 saveXML = finfo.value(sv) |
290 if p.saved == nil { | 290 if p.saved == nil { |
291 saveXMLIndex = 0 | 291 saveXMLIndex = 0 |
292 p.saved = new(bytes.Buffer) | 292 p.saved = new(bytes.Buffer) |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 case StartElement: | 522 case StartElement: |
523 if err := d.Skip(); err != nil { | 523 if err := d.Skip(); err != nil { |
524 return err | 524 return err |
525 } | 525 } |
526 case EndElement: | 526 case EndElement: |
527 return nil | 527 return nil |
528 } | 528 } |
529 } | 529 } |
530 panic("unreachable") | 530 panic("unreachable") |
531 } | 531 } |
LEFT | RIGHT |