Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Invalid Characters in XML Documents... [Thread Next] Re: Invalid Characters in XML Documents...To: NULL Date: 8/3/2004 1:41:00 AM * Vagabond Software wrote in microsoft.public.xml: ><fieldname>col_8_140 Dose Max (99.7%) <1900</fieldname> >Clearly, the 'less than' sign is creating problems. My problem >is that there are more than 100 such lines in this XML file. Well, the problem is that these files are not XML documents... >How do I go about parsing through or around these elements? >I would prefer to do this using C# and the .NET framework. >Any suggestions or links would be greatly appreciated. You could probably read the document into a string and use the Regular Expression classes to replace all < followed by a digit (or whatever the pattern might be) by < and pass the resulting string to the XML Processor, but that would be quite a hack and might break if the XML documents no longer match the pattern you expect. Better get whoever created the documents to fix them. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
