/lenasys/trunk

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

« back to all changes in this revision

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

  • Committer: a11andoh
  • Date: 2013-05-31 06:21:54 UTC
  • mfrom: (135 lenasys_b)
  • mto: This revision was merged to the branch mainline in revision 137.
  • Revision ID: a11andoh@student.his.se-20130531062154-x18nki8dufjub99h
blurp

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'