I've written an app to parse an XML RSS feed. Some of the content in that
RSS feed has entities properly encoded for XML, e.g.:
UW's Hawes To Enter NBA Draft
High school's 'No-shush' to retire
My app reads the content using XmlDocument/XmlNodeList and then commits
selected pieces to my DB.
I want to know the best/easiest/most reliable/most complete way to translate
entities that are escaped as in the example above and convert them to normal
characters or entities. Am I stuck writing a translation function, or is
there a .NET class or method set that I can plug into?
Thanks,
-KF 2 1936
Microsoft's free Anti-Cross Site Scripting Library provides superb encoding
and decoding functionality: http://msdn2.microsoft.com/en-us/security/aa973814.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
<ke*****@nospam .nospamwrote in message
news:uX******** ******@TK2MSFTN GP02.phx.gbl...
I've written an app to parse an XML RSS feed. Some of the content in that
RSS feed has entities properly encoded for XML, e.g.:
UW's Hawes To Enter NBA Draft
High school's 'No-shush' to retire
My app reads the content using XmlDocument/XmlNodeList and then commits
selected pieces to my DB.
I want to know the best/easiest/most reliable/most complete way to
translate entities that are escaped as in the example above and convert
them to normal characters or entities. Am I stuck writing a translation
function, or is there a .NET class or method set that I can plug into?
Thanks,
-KF
Great, thank you very much, Steve.
-KF
"Steve C. Orr [MCSD, MVP, CSM, ASP Insider]" <St***@Orr.netw rote in
message news:29******** *************** ***********@mic rosoft.com...
Microsoft's free Anti-Cross Site Scripting Library provides superb
encoding and decoding functionality: http://msdn2.microsoft.com/en-us/security/aa973814.aspx
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
<ke*****@nospam .nospamwrote in message
news:uX******** ******@TK2MSFTN GP02.phx.gbl...
>I've written an app to parse an XML RSS feed. Some of the content in that RSS feed has entities properly encoded for XML, e.g.:
UW's Hawes To Enter NBA Draft High school's 'No-shush' to retire
My app reads the content using XmlDocument/XmlNodeList and then commits selected pieces to my DB.
I want to know the best/easiest/most reliable/most complete way to translate entities that are escaped as in the example above and convert them to normal characters or entities. Am I stuck writing a translation function, or is there a .NET class or method set that I can plug into?
Thanks, -KF This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: lawrence |
last post by:
I haven't been able to reach www.php.net for days. Most of the rest of
the web is working for me, though I've bad trouble reaching any
English sites. Anyone else having trouble?
|
by: gulu man |
last post by:
Hi,
What is the substitute for COM objects in .NET?
How can I create something similar to com in .net?
Is it still possible?
Thank you
|
by: Olav.NET |
last post by:
I am a .NET/C++ developer who is supposed to do some work with Access.
I do not know much about it except for the DB part.
Questions:
*1*
I am looking for INTENSIVE books to get quickly up to speed.
I like books with practical exercises, and also with test questions (like
cert books)
*2*
|
by: TAM |
last post by:
Hi,
I read that ASP.NET uses VB.NET instead of VBScript. I also read that
ASP.NET is a subset of VB.NET. So if I learn VB.NET first then do I have the
knowledge for programming ASP.NET applications or do I need to learn both
VB.NET and ASP.NET.
Thank you.
TAM
|
by: hussein |
last post by:
'm not bale to run my projec on the 2000 server, he error was:
error while trying to run project: unable to start debugging on the web server.erver side error occurred on sending debug HTTP request
mak sure that the server is running correctly . verify that there are o syntax errors in the web.config...
i check the IIS, it is running correctly, also the webconfig so what am i sposed to to do be able to run it
| |
by: Bob |
last post by:
Is ASP.NET 1.1 available on the 64 bit extended version of Windows 2003
Server? When I install VS.NET 2003 I then get Service Unavailable from IIS
when navigating to the main under construction site (http://localhost) and I
get error 'HTTP/1.1 503 Service Unavailable' when trying to start a new
ASP.NET project. I uninstalled IIS and reinstalled IIS, and the under
construction default page comes up normally, I ran aspnet_regiis -i and then...
|
by: Steve H. |
last post by:
Hi all,
I'm searching for a few good books on asp.net and c#. I'm afraid of buying
books here in denmark that i cant read though before i get them, becuase 90%
of them are just pure junk. I dont need 3 chapters on object oriented
programming or c# inside a asp.net book.
Looking mainly for reference books or tactics books that would cover all
aspects of asp.net, like security, controls, session managment, web.config
and so on.
|
by: EP |
last post by:
When running my asp.net hosting service (asp.net without IIS), on server
2003 with IIS not installed, I get the following when trying to process a
request.
"System.DllNotFoundException: Unable to load DLL (aspnet_isapi.dll)."
Of course the dll is able to be found, it's still in the framework directory
and for grins I even put it in my service's local directory. This is apparantly
server 2003 not allowing asp.net to be run if IIS was not...
|
by: Hernan Garber |
last post by:
Hi,
Attached, the installation log.
Win 2k Server SP3 IE6SP1/SQL Server Installed
Thanks
Setup.exe:
Setup.exe: ========== Logging started
==========
|
by: abcd |
last post by:
I have asp.net application which was tested and developed on asp.net 1.1.
WIll my application work on asp.net 2.0 also. Can I say asp.net 2.0 is
supported automatically for the applications which are written for asp.net
1.1
thanks
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |