Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

XML: Simple internal DTD definition example

Best way to validate is using any browser. Open the XML file in any browser.
Also, if you open in Eclipse, you can right click on the .xml file and select "validate".

 <?xml version="1.0"?>  
 <!DOCTYPE notes [  
  <!ELEMENT notes  (note*)>  
  <!ELEMENT note  (to,from,heading,body*)>  
  <!ELEMENT to   (#PCDATA)>  
  <!ELEMENT from  (#PCDATA)>  
  <!ELEMENT heading (#PCDATA)>  
  <!ELEMENT body  (#PCDATA)>  
 ]>  
 <notes>  
      <note>  
           <to>Joe</to>  
           <from>Tom</from>  
           <heading>Hello</heading>  
      </note>  
      <note>  
           <to>Bob</to>  
           <from>Joe</from>  
           <heading>Reminder</heading>  
           <body>this is msg</body>  
      </note>  
 </notes>  

Install CMake 3.30.8 on Ubuntu 22.04

How to Install CMake 3.30.8 on Ubuntu 22.04 CMake is a powerful open-source tool for managing the build process of software proje...