1 Replies - 690 Views - Last Post: 29 October 2012 - 02:17 PM Rate Topic: -----

#1 maddtechwf  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 22-October 12

ReST and XML

Posted 29 October 2012 - 01:03 PM

I'm working in VB.NET and trying to write a ReST service that will output the data to an XML format for consumption in an RSS reader. Can anyone help me? I understand ReST services for the most part now and have a basic one running with JSON output. I want to do the same thing now but with an XML output instead.
Is This A Good Question/Topic? 0
  • +

Replies To: ReST and XML

#2 maddtechwf  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 41
  • Joined: 22-October 12

Re: ReST and XML

Posted 29 October 2012 - 02:17 PM

Here is an example of how I would like to display the information using a ReST service.

<?xml version="1.0" encoding="UTF-8"?>
<Directory>
	<employee id="{id}">
		<name>
			<TName> {Name_Title} </TName>
			<FName> {Name_First} </FName>
			<MName> {Name_Middle} </MName>
			<LName> {Name_Last} </LName>
			<SName> {Name_Suffix} </SName>
		</name>
		<email> {email} </email>
		<dept> {dept} </dept>
		<building> {building} </building>
		<room> {room_numb} </room>
		<title> {registrationTitle} </title>
		<photo> http://www.demo.com/files/uploads/photos/{PhotoFileName} </photo>
		<phone> {phone} </phone}
		<fax> {fax} </fax>
	</employee>
</Directory>


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1