How do I make a webpage output XML using jQuery or PHP?
===

I am trying to make an XML generator and then use Java to read into the XML schema to create a survey. How would I make a webform or something else output XML? Here is an example of part of the XML. This is just the beginning of the survey. There will be free-response and multiple choice questions, but I just need the basics.

    <Section>
		<Title>
			<English> SECTION I: SOCIO ECONOMIC AND DEMOGRAPHIC CHARACTERISTICS </English>
			<Native> विभाग पहिला: सामाजिक आर्थिक आणि संख्यात्मिक वैशिष्ट्ये </Native>
		</Title>
		<ID>1</ID>
			<Question>
				<ID> 1.1 </ID>
					<Description>
						<English> How old are you? </English>
						<Native>तुमचे वय किती आहे?   </Native>
					</Description>
				<Edit>
					<Title>
						<English> Years </English>
						<Native>वर्ष  </Native>
					</Title>
					<IsNumerical>true</IsNumerical>
						<Value></Value>//default if not empty
						<Minvalue>15</Minvalue>
						<Maxvalue>50</Maxvalue>
				</Edit>
			</Question>