Java generated XML is in Display special characters in net / SQL
We have a java desktop application that uses JAXB to generate XML files, which are then generated by Net application is read and stored in SQL Server database
We found that carriage return in Java rather than in Net / SQL as carriage return / line feed
Is there any way to tell Java or JAXB to include both carriage return and line feed characters Is there any way to make it Put them in Does CDATA block help?
thank you.
Solution
How on earth do you create XML files? Does the data pass through printstream at any time? If so, it may be the point where the system related row separator is introduced
What is a problematic line feed? Within a text element? Or XML tags? If it is the former, you should focus on building text code. If it is the latter, it is the XML generation library