vb.net - Why doesn't this code replace my string? -
ok.. has been asked here 10 times , immutable issue. code looks this:
for = 0 filterlist.length - 1 dim s = filterlist(i) if s.length > 2 dim ts = xmlstring.replace(s, "<temps>" + s + "</temps>") xmlstring = ts end if next
filterlist array(n) of strings. in case wants know i'm replacing.. xml has bad formatting , looks this:
<property>g_defaultpbsconversionparams<bool>false</bool></property> <property>g_metallicconversions<vector4>0.025 0.355 1.373 2.913</vector4></property> <property>g_glossconversions<vector4>0.185 0.478 0.588 0.735</vector4></property> <property>g_albedoconversions<vector4>0.05 0.65 0.513 0.5</vector4></property> <property>normalmap <texture>vehicles/american/tracks/t54_e2_track_nm.dds</texture></property> <property>diffusemap <texture>vehicles/american/tracks/t54_e2_track.dds</texture></property> <property>specularmap <texture>vehicles/american/tracks/t54_e2_track_sm.dds</texture></property> <property>alphareference<int>16</int></property> <property>alphatestenable<bool>true</bool></property>
you can see there string value after property tag bad xml formatting. can't display correctly until wrap these entries. junk not let xmltextwriter job , make pretty me.
i not smart.. after staring @ hour..(obviously long) figure out there white character @ start of every string filterlist array
Comments
Post a Comment