Skip to content

Instantly share code, notes, and snippets.

@yeban
Created May 18, 2010 00:11
Show Gist options
  • Save yeban/404420 to your computer and use it in GitHub Desktop.
Save yeban/404420 to your computer and use it in GitHub Desktop.
Output of parsing samples.xml
Node # 1
Name: nex:nexml
Prefix: nex
Local: nexml
Depth: 0
Attribute # 1
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 2
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 3
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 4
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 5
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 6
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Attribute # 7
Name: xmlns:xsi
Prefix: xmlns
Local: xsi
Depth: 1
Value: http://www.w3.org/2001/XMLSchema-instance
Node # 2
Name: otus
Depth: 1
Attribute # 1
Name: id
Depth: 2
Value: taxa1
Attribute # 2
Name: id
Depth: 2
Value: taxa1
Attribute # 3
Name: id
Depth: 2
Value: taxa1
Attribute # 4
Name: id
Depth: 2
Value: taxa1
Attribute # 5
Name: id
Depth: 2
Value: taxa1
Attribute # 6
Name: id
Depth: 2
Value: taxa1
Attribute # 7
Name: id
Depth: 2
Value: taxa1
Node # 3
Name: #comment
Depth: 2
Value:
The taxon element is analogous to a single label in
a nexus taxa block. It may have the same additional
attributes (label, xml:base, xml:lang, xml:id, xlink:href
and class) as the taxa element.
Node # 4
Name: otu
Depth: 2
Empty Element
Attribute # 1
Name: id
Depth: 3
Value: t1
Node # 5
Name: otu
Depth: 2
Empty Element
Attribute # 1
Name: id
Depth: 3
Value: t2
Node # 6
Name: otu
Depth: 2
Empty Element
Attribute # 1
Name: id
Depth: 3
Value: t3
Node # 7
Name: otu
Depth: 2
Empty Element
Attribute # 1
Name: id
Depth: 3
Value: t4
Node # 8
Name: otu
Depth: 2
Empty Element
Attribute # 1
Name: id
Depth: 3
Value: t5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment