I recently created a small C # windows / LINQ to XML application in VS2010 that does exactly what it should do, with one exception: it appends โ[]โ to the end of the DOCTYPE tag, which apparently causes files that must be diverted from the legacy system. Here a before and after:
Before
<!DOCTYPE ichicsr SYSTEM "http://www.accessdata.fda.gov/xml/icsr-xml-v2.1.dtd">
After
<!DOCTYPE ichicsr SYSTEM "http://www.accessdata.fda.gov/xml/icsr-xml-v2.1.dtd"[]>
These characters are added after saving the file in the program using the .Save function. The program allows you to select an XML file, then "cleans" it, removing certain tags, and then saves it. When the process begins, the files do not have "[]" in DOCTYPE. After saving, they do it. Does LINQ to XML Add These?
Is there a way to keep the program from adding these characters?
c # xml visual-studio-2010 linq-to-xml
ewomack
source share