Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Predefined entities
Message
 
 
Information générale
Forum:
ASP.NET
Catégorie:
XML
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01486898
Message ID:
01486906
Vues:
31
>>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 don't think this is it. I simply have a code like following:
<td class='nobordercell' width=130> </td>
The above line is plain HTML code which usually works. But when this line is inside and XML file and the XML file has to be loaded, XML parser (I am guessing) does not accept   so I have to replace it but make sure that html still works. Google showed me pages where this problem was suggested to be solved using predefined entities but so far I can't figure out how to use them.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform