i have a little problem. I have a string (containing XML code). Example:
<PosizioneRischio>
<ParametriInput>
<Utente>Utente</Utente>
<Input>
<ClienteRichiesto>
<CodiceCR>1</CodiceCR>
<CodiceCRA />
</ClienteRichiesto>
<IstitutiRichiesti>
<IstitutoRichiesto>1</IstitutoRichiesto>
</IstitutiRichiesti>
<DateContabiliRichieste>
<DataContabileRichiesta>2014</DataContabileRichiesta>
</DateContabiliRichieste>
</Input>
<ScalaImporti>5000</ScalaImporti>
</ParametriInput>
<PosizioneRischio>
I would like to show it in a textarea with razor, in a formatted way.
Supponing the string name is "xmlstring", i would like doing something like:
@Html.TextArea("Info",xmlstring, new {cols="105", rows="30",@readonly="readonly",@disabled="disabled" })</td>
But in this manner, xml code appears flattened.. obvioulsy the result is not formatted. How can i make it formatted? Sorry for the question..i'm a newbie