In my code, I use this code to create a xml string and then load it into a
xmldocument.
for(int i=0;i<sqlReader.FieldCount;i++){
rowxml+="<"+sqlReader.GetName(i)+">"+(!sqlReader.I sDBNull(i)?sqlReader.GetVa
lue(i).ToString().Replace("&","&").Replace("<" ,"<").Replace(">",">
"):"")+"</"+sqlReader.GetName(i)+">";
}
but it can not create xml node if the return text include characters like
PDف
my question is is there a more efficient way to create xmldocument from data
records? if my way is ok, how can I filter out invalid characters and create
formed xml?
Plase help.
Thanks!