Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Predefined entities
Message
 
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01486898
Message ID:
01486907
Views:
42
>>Hi,
>>
>>I have a XML file being used by an .NET application. The XML file contains HTML code. The HTML code uses " " (if UT does not show this correctly it should be "epershand" + "nbsp" + "semicolon"). But the .NET application gives error "reference to undeclared entity 'nbsp'". How do I show this entity in the XML so that .NET will not give an error? I suspect that the concept of "predefined entity" should be used but I don't know how.
>>
>>I would appreciate any help.
>
>How exactly you're using this XML? It sounds to me you need to use some strandard EnCode function with this XML file.
>
>Check EnCode XML

I replaced the
 
with
 
and all works fine now.

I tried several ways to show the nbsp and #160 but UT does not like it. Forget about it.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform