Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Question

Status
Not open for further replies.

hksoftware

Technical User
Feb 13, 2003
66
0
0
GB
Hi,
I've seen 2 uses of XML. eBays example code sends this to the server:

<?xml version="1.0" encoding="utf-8"?>
<GetCategoriesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>value</eBayAuthToken>
</RequesterCredentials>
<DetailLevel>0</DetailLevel>
<Item>
<Site>0</Site>
</Item>
<ViewAllNodes>1</ViewAllNodes>
</GetCategoriesRequest>


And uses an xml file to store settings like so:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

<appSettings>
<add key="DevID" value="INSERT_DEVID" />
<add key="AppID" value="INSERT_APPID" />
<add key="CertID" value="INSERT_CERTID" />
<add key="ServerUrl" value=" />
<add key="UserToken" value="INSERT_TOKEN" />
</appSettings>

</configuration>

These look like 2 different types of XML.
I'm making an app which checks online for a new version by downloading an XML file. Which of the above methods shall I use and why?

If someone could point me to an article which explains the 2 implementations that'd be great. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top