/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/DomExample2.htm

  • 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
 
<span class="description">
2
 
<br>
3
 
<div class="descriptionheading">Overview</div>
4
 
This example shows how to do very basic validation of an XML document.
5
 
<br><br>
6
 
<div class="descriptionheading">Well formedness</div>
7
 
The DOM parser automatically tests for well-formedness when loading the file (row 10).
8
 
The value that is returned from the <span class="interestingdescription">load</span> method is true if the file was well-formed and false if not.
9
 
<br><br>
10
 
<div class="descriptionheading">Validation</div>
11
 
Validation of the file using the DTD linked by the XML file (if such a link exists) is performed with the <span class="interestingdescription">validate</span> method.
12
 
The value returned is true if the file is valid and false if not.
13
 
<br><br>
14
 
Validation is as simple as this in the simplest case. However we do not get very detailed information abou why validation or well-formedness has failed.
15
 
<br><br>
16
 
<div class='exampleheading'>Web Page Output:<br><br>
17
 
<img src='DomExample2.png'>
18
 
</div>
19
 
                                                                                                                                        
20
 
</span>
 
 
b'\\ No newline at end of file'