File: test.xml

package info (click to toggle)
libxmlada1 1.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,704 kB
  • ctags: 94
  • sloc: ada: 22,582; sh: 1,804; makefile: 142; xml: 140; perl: 128
file content (26 lines) | stat: -rw-r--r-- 773 bytes parent folder | download
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
<?xml version="1.0"?>
<?my_pi ?>
<!--  top level comment -->
<html xmlns:top="top-levelns">
   <top:h1>Big &amp; &#65; &#x41; header</top:h1>
   <manu:h2 xmlns:manu="manuns"
      a1="  a  b  " a2=" &#x20; &#x20; a  b&#x20;  " />
   <xml:img 	xml:src='&#65;&amp;toto.gif' />
		    <!-- an invalid comment  -->
   <empty_tag xmlns="foons" attr='foo' />
   <![CDATA[<greeting]]>
   <full_tag attr="foo">full</full_tag>

    <!--  Check uniqueness of attributes => incorrect
    <bad xmlns:n1="http://www.w3.org" 
         xmlns:n2="http://www.w3.org"
	 n1:a="1"  n2:a="2" />    -->
    <good xmlns:n1="http://www.w3.org" 
	  xmlns="http://www.w3.org"
	  n1:a="1"  a="2" />   
</html>

<!--  Activate this to test that only one single root child is allowed
<foo2>
</foo2>
-->