File: unknown-elements.kml

package info (click to toggle)
libkml 1.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,660 kB
  • sloc: cpp: 48,088; python: 2,008; xml: 1,806; ansic: 1,766; php: 223; java: 195; ruby: 109; perl: 108; sh: 42; makefile: 17
file content (77 lines) | stat: -rw-r--r-- 2,561 bytes parent folder | download | duplicates (9)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file contains lots of junk for the specific purpose of testing unknown
element and attribute handling.
-->
<kml xmlns="http://earth.google.com/kml/2.2">
  <unknownKmlChild a="b">preserve me</unknownKmlChild>
  <NetworkLinkControl attr="unknown">
    <Point> <!-- known element, but illegal child of NLC -->
      foo
      <coordinates>1,2,3</coordinates> <!-- foo and goo ignored -->
      goo
    </Point>
    <maxSessionLength>60</maxSessionLength>
    <someFutureElement attr="unknown">some string</someFutureElement>
  </NetworkLinkControl>
  <Document id="knownAttr" attr="unknown">
    <unknownDocChild>hi</unknownDocChild>
    <Schema>
      <SimpleField type="string" name="alsoknown" foo="notknown">
        <displayName>yep</displayName>
        <someOtherName>nope</someOtherName>
      </SimpleField>
    </Schema>
    <Placemark>
      <name>we know name</name>
      <UnknownPlacemarkChild>
      This complex element has character data followed by:
        <weird>a nested child element</weird>
      All of this should be preserved for serialization.
      </UnknownPlacemarkChild>
      <EmptyComplex/>
      <Snippet maxlines="BigL" maxLines="3">foo bar</Snippet>
      <EmptyComplexWithAttrs a="b" b="c"/>
      <ComplexWithAttrsAndCdata a="b" b="c">text</ComplexWithAttrsAndCdata>
      <ComplexParent>
        <ComplexChild>
          <simpleChild foo="goo">hi</simpleChild>
        </ComplexChild>
      </ComplexParent>
      <description>we know about this element</description>
      <Description>we have no idea about this element</Description>
      <Style>
        <IconStyle>
          <hotSpot x="foo" y="123" xunits="fraction" yunits="pixels" a="b"/>
          <SomeNewChildOfIconStyle/>
        </IconStyle>
      </Style>
      <MultiGeometry>
        <Polygon>
          <outerBoundaryIs>
            <LinearRing>
              <coordinates/>
            </LinearRing>
          </outerBoundaryIs>
        </Polygon>
        <NoSuchGeometry>
          <fantasy attr="foo"/>
        </NoSuchGeometry>
      </MultiGeometry>
      <ExtendedData>
        <SchemaData>
          <SimpleData attr="unknown" name="known">
            another example of a known element
            <name>does not belong here</name>
            interposing inside the wrong parent.
          </SimpleData>
        </SchemaData>
      </ExtendedData>
    </Placemark>
    <anotherUnknownDocChild foo="emptyelement"/>
    <PhotoOverlay>
      <what>huh?</what>
    </PhotoOverlay>
  </Document>
</kml>