File: xml-tree-loader.html

package info (click to toggle)
libjs-extjs 3.4.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 53,188 kB
  • ctags: 3,384
  • sloc: php: 819; xml: 537; python: 60; sql: 44; makefile: 35
file content (41 lines) | stat: -rw-r--r-- 1,716 bytes parent folder | download | duplicates (5)
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
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>XmlTreeLoader Example</title>
    <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
 	<script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>

    <link rel="stylesheet" type="text/css" href="xml-tree-loader.css" />
    <script type="text/javascript" src="../../ext-all.js"></script>
    <script type="text/javascript" src="../ux/XmlTreeLoader.js"></script>
    <script type="text/javascript" src="xml-tree-loader.js"></script>

    <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
    <script type="text/javascript" src="../shared/examples.js"></script>
</head>
<body>

    <h1>XmlTreeLoader Example</h1>
    <p>Demonstrates extending the native <tt>Ext.tree.TreeLoader</tt> to support loading XML data via the
    custom <a href="../ux/XmlTreeLoader.js">Ext.ux.tree.XmlTreeLoader</a> class.</p>
    <p>The XmlTreeLoader is then further extended to demonstrate additional custom, application-specific node processing.</p>
    <p>The js is not minified so it is readable. See <a href="xml-tree-loader.js">xml-tree-loader.js</a>.</p>
    <p>This demo loads an XML file in the following format:</p>
    <p>
        <pre style="font-size:11px;">
    &lt;authors>
        &lt;author first="Fyodor" last="Dostoevsky" gender="m">
            &lt;book title="Crime and Punishment" published="1866" url="http://...">
                Raskolnikov, a destitute and desperate former student...
            &lt;/book>
            ...
        &lt;/author>
        ...
    &lt;/authors>
        </pre>
    </p>

    <div id="tree"></div>

</body>
</html>