473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

A question about XML Tags

Dear All;
I am a biginner in XML. Currently I am developing a service for CISCO IP
Phone using ASP.Net. The CISCO IP Phone service has to be developed using
XML Tags. For examlpe the CISCO IP Phone Input takes the following form

<CiscoIPPhoneInput>
<Title>Directory title goes here</Title>
<Prompt>Prompt text goes here</Prompt>
<URL>The target URL for the completed input goes here</URL>
<InputItem>
<DisplayName>Name of the input field to display </DisplayName>
<QueryStringParam>TheURLqueryparameter</QueryStringParam>
<InputFlags> </InputFlags>
<DefaultValue>Value</DefaultValue>
</InputItem>
</CiscoIPPhoneInput>

The problem is that the tag QueryStringParam , (which takes the input from
the user and stores it in the "TheURLqueryparameter" which is a parameter
that is appended to the URL in the URL tag), If contained space, the
application doesn't respond. So I don't know if proper standard XML tag
which permits a space is available to habdle this case or not. If I used any
other characters except the sapce, it will work well without any error .

So my concern is this problem releates to XML or not?
I hope that any can help me
Best Regards;
Jony
Nov 12 '05 #1
2 1801
Hi Jony,

It is possible that the IP Phone is not correctly URL Encoding the query
parameter causing the web server to become confused. Look in your web
server logs to see if the query string is truncated at a position where
a space would be in the name. (This assumes you have query string
logging turned on)

You may have to URL encode the contents of that field yourself, for
spaces you can try replacing them with '%20' (without the quotes). Most
platforms have a URL encoding function avaliable that will do this as
well. For .Net it is Server.Web.HttpUtility.UrlEncode()

So:
<QueryStringParam>name with spaces</QueryStringParam>
Could be translated to:
<QueryStringParam>name%20with%20spaces</QueryStringParam>

For more information, see:
http://www.w3schools.com/html/html_ref_urlencode.asp

--
Jesse Hager
Nov 12 '05 #2
Hi Jony,

It is possible that the IP Phone is not correctly URL Encoding the query
parameter causing the web server to become confused. Look in your web
server logs to see if the query string is truncated at a position where
a space would be in the name. (This assumes you have query string
logging turned on)

You may have to URL encode the contents of that field yourself, for
spaces you can try replacing them with '%20' (without the quotes). Most
platforms have a URL encoding function avaliable that will do this as
well. For .Net it is Server.Web.HttpUtility.UrlEncode()

So:
<QueryStringParam>name with spaces</QueryStringParam>
Could be translated to:
<QueryStringParam>name%20with%20spaces</QueryStringParam>

For more information, see:
http://www.w3schools.com/html/html_ref_urlencode.asp

--
Jesse Hager
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: varois83 | last post by:
Hi I am fairly new to PHP/mysql and was reading an online tutorial and learned that my short tags weren't enabled. At this time I have no need for them, my setup apache/mysql/php runs on my PC...
24
by: Day Bird Loft | last post by:
Web Authoring | Meta-Tags The first thing to understand in regard to Meta Tags is the three most important tags placed in the head of your html documents. They are the title, description, and...
11
by: Hello | last post by:
Hello, I am a self-taught home developer: Question: As it seems, most CSS people like to use DIVs as a division between styles. So, they would have a style for a div tag that would hold some...
2
by: Stephanie_Stowe | last post by:
I see this in my Quick Start info: "In addition to (or instead of) using <% %> code blocks to program dynamic content, ASP.NET page developers can use ASP.NET server controls to program Web...
14
by: UJ | last post by:
What's the easiest way (without setting up a style sheet) to set the font for an area of text. I need to be able to specify the exact font and font size - not the 1-7 numbers IE uses. I want to be...
20
by: ma0001yu | last post by:
Hi, all. I feel confuse about below struct definition: typedef struct TAG { comments.... }; What my confusion is: is typedef extra??why we not just use
6
by: Sam Carleton | last post by:
Ok, over the years I have read about doing web programing and I have done some real basic stuff. Now I am digging into some real ASP.Net 2.0 and am totally lost some things. I have a master...
3
by: Gary | last post by:
Hi in a simple application that consists of a couple of user input forms. I'm wondering what the difference is between using a database technology and a plain text file? I've been working on...
10
by: swethak | last post by:
hi, i write the below code to capture the images from the website when i submit the url.In the same way i want to capture the Text information from the website.plz tell that whats the code for...
1
by: SM | last post by:
Hello, I have a couple of XML files that represent articles. Each XML file is unique. Meaning that overall the structure is the same but some tags in the xml file are not in the same place or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.