Tuesday, 26 May 2015

XML program for student details by using cascading style sheets(CSS)

Program:


 <?xml version ="1.0"?>
          <?xml-style sheet type="text/css"href="student info=css"?>
      <student info>
      <student>
         <name>ABC</name>
         <rno>004</rno>
         <branch>MMT</branch>
        </student>
     
<student>
         <name>Nitesh</name>
        <rno>008</rno>
        <branch>Biotech</branch>
        </student>
        <student>
              <name>Jignesh</name>
          <rno>012</rno>
          <branch>chemical</branch>
          </student>
        </student info>
CSS fig:-
      student info
      {
        background-color:cyace;
        width:100%;
        }
          name
        {
          width:100%;
          color:yellow
          font:14px;
         }
              rno
          {
            width:100%
            display:black;
            color:red;
            margin-rynt:20pt
           font:20pt
          }
           branch
           {
            width:100%
            display:blw;
            color:white;
            font:25pt;
            }

Learn ruby on rails visit Rails Cheatsheet

No comments:

Post a Comment