Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Simple	
1.		The Partial differential equation formed by the elimination  of a and b from z= (x+1)(y+b) is
(a) z= p+q (b) p-1  (c) z=xypq  (d) z=pq	[       ]
2.		The partial differential equation formed by eliminating the arbitrary contants a and b from z= (x2+a)(y2+b) is 
(a) xyz=pq   (b) xyz = p   (c) 4xyz = pq   (d) xyz = q	[       ]
3.		The partial differential equation formed by eliminating the arbitrary constants a and b from z= ax+by+ab is 
(a) z= p+q+pq  (b) z= px+qy+pq  (c) z= py+qx  (d) py+qx+pq	[       ]
4.		The partial differential equation by the elimination of a and b from z= ax+a2y2+b is
(a) q=2yp2  (b) q2=2yp (c) p2=2yq2   (d) p=2yq2	[       ]
5.		The partial differential equation by the elimination of a and b from az+b = a2x+y is
(a) p+q=1  (b) pq=1  (c) xp+yq=1  (d) xp-yq = 1	[       ]


I have a question paper in the word format..I have to split this question paper and then convert into xml tag.

The conditions are
1)split the question into one tag and then split the answer into four separate sub tags.

Pls help me to split this format and how to convert into XML.


I dont know how to split using common symbol for main tag question and sub tags answers..please tell me the symbol used to separate questions and answers
Posted
Updated 21-May-13 20:38pm
v2

1 solution

Hi,

For splitting your document, plz look into this...

http://www.dotnetperls.com/split[^]

C#
int i = 0;
    foreach (string line in File.ReadAllLines("TextFile1.txt"))
    {

        //string[] parts = line.Split(','); 
//Use any one here to split,after splitting you can save into the xml file 
        //string[] lines = Regex.Split(value, "\r\n");
        foreach (string part in parts)
        {
        Console.WriteLine("{0}:{1}",
            i,
            part);
        }
        i++; // For demonstration.
    }



// For converting string to XML..
C#
using System;
using System.Xml;

namespace StringToXml
{
 class Program
 {
  static void Main(string[] args)
  {
   string s = "hello";
   XmlDocument xm = new XmlDocument();
   xm.LoadXml(string.Format("<root>{0}</root>", s));

   Console.WriteLine(xm.InnerXml);
   Console.ReadKey();
  }
 }
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900