/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to trunk/CodeViewer/DomExample2/DomExample2code.php

  • Committer: Henrik G.
  • Date: 2013-03-26 23:22:55 UTC
  • Revision ID: henrik.gustavsson@his.se-20130326232255-ik6snyatlbkf3zs1
First seed of Lenasys ... Needs to be Organized Further

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<body>
 
3
<pre>
 
4
<?php
 
5
 
 
6
        $file = '../XMLData/example1b.xml';
 
7
 
 
8
        $dom = new DomDocument;
 
9
        $dom->preserveWhiteSpace = FALSE;
 
10
        $loadstate=$dom->load($file);   
 
11
 
 
12
        if($loadstate){
 
13
                        echo "Well formedness test successful!<br>";
 
14
                        $validatestate=$dom->validate();        
 
15
                        if($validatestate){
 
16
                                        echo "Validation successful!<br>";
 
17
                        }else{
 
18
                                        echo "Validation test failed!<br>";
 
19
                        }
 
20
        }else{
 
21
                        echo "Well formedness test failed!<br>";
 
22
        }
 
23
        
 
24
?>
 
25
</pre>
 
26
</body>
 
27
</html>
 
 
b'\\ No newline at end of file'