summaryrefslogtreecommitdiff
path: root/isso/tests/disqus.xml
blob: e105a66e2ca4263874d942d12f489871b5ebf3bd (plain)
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
78
79
80
81
<?xml version="1.0"?>
<disqus xmlns="http://disqus.com"
        xmlns:dsq="http://disqus.com/disqus-internals"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://disqus.com/api/schemas/1.0/disqus.xsd
                            http://disqus.com/api/schemas/1.0/internals.xsd"
>
    <category dsq:id="1">
      <forum>disqusdev</forum>
      <title>Technology</title>
    </category>

    <thread dsq:id="2">
      <id>some-id</id>
      <forum>disqusdev</forum>
      <category dsq:id="1"/>
      <link>http://example.org/</link>
      <title>Hello, World!</title>
      <message/>
      <createdAt>2012-12-12T12:12:12Z</createdAt>
      <author>
        <name>Baz</name>
        <email>foo@bar.com</email>
      </author>
    </thread>

    <!-- Yeah... occurs. No idea, why. -->
    <thread dsq:id="3">
        <id/>
    </thread>

    <!-- regular post -->
    <post dsq:id="4">
        <id />
        <message>...</message>
        <createdAt>2013-10-10T19:20:29Z</createdAt>
        <isDeleted>false</isDeleted>
        <isSpam>false</isSpam>
        <author>
            <email>foo@bar.com</email>
            <name>peter</name>
            <isAnonymous>true</isAnonymous>
        </author>
        <ipAddress>127.0.0.1</ipAddress>
        <thread dsq:id="2" />
    </post>

    <!-- reference to previous post -->
    <post dsq:id="5">
        <message><![CDATA[<p>Hello, World.</p>]]></message>
        <createdAt>2013-10-11T06:51:33Z</createdAt>
        <isDeleted>false</isDeleted>
        <isSpam>false</isSpam>
        <author>
            <email>foo@bar.com</email>
            <name>user</name>
            <isAnonymous>false</isAnonymous>
            <username>user</username>
        </author>
        <ipAddress>127.0.0.1</ipAddress>
        <thread dsq:id="2" />
        <parent dsq:id="4" />
    </post>

    <!-- orphan comment (= thread id no longer exists) -->
    <post dsq:id="6">
        <id />
        <message>...</message>
        <createdAt>2013-10-10T19:20:29Z</createdAt>
        <isDeleted>false</isDeleted>
        <isSpam>false</isSpam>
        <author>
            <email>foo@bar.com</email>
            <name>where am I?</name>
            <isAnonymous>true</isAnonymous>
        </author>
        <ipAddress>127.0.0.1</ipAddress>
        <thread dsq:id="1337" />
    </post>

  </disqus>