View previous topic :: View next topic |
Author |
Message |
TravisWhidden
Joined: 26 Jan 2012 Posts: 8
|
Posted: Tue Nov 17, 2015 6:54 pm Post subject: XAML writer changing formatting causing source control issue |
|
|
The XAML writer you are using must be dropping the existing formatting, which creates a big problem for source control solutions. Is there an option somewhere to not change the XAML so much? I have hundreds of XAML files that were modified, and will have to revert them.
Example of one:
https://monosnap.com/file/xTFAojARpZgWnW4oxj58xMaUBHcU7d
I can manually discard each changed part, but that is a real pain when there are so many changes.
Thanks! _________________ Travis |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Tue Nov 17, 2015 9:23 pm Post subject: |
|
|
Unfortunately the standard .NET XML Writer that we are using does not give a lot of control over formatting. See the following link for more details:
http://www.infralution.com/phpBB2/viewtopic.php?t=2485 _________________ Infralution Support |
|
Back to top |
|
|
TravisWhidden
Joined: 26 Jan 2012 Posts: 8
|
Posted: Wed Nov 18, 2015 5:29 pm Post subject: |
|
|
Can you tell me what XML writer you are using from .net? I would like to do some research and see if I can give you a solution. _________________ Travis |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Nov 18, 2015 10:42 pm Post subject: |
|
|
The XAML localizer uses the standard Microsoft System.Xml.XmlDocument to parse the XAML and locate nodes that need to be localized and then uses the System.Xml.XmlWriter to write the document (using the XmlDocument.WriteTo method). The XmlWriter.Create method takes an XmlSettings object which gives limited control over the output formatting.
The difficulty is that the XmlDocument does not retain the formatting information from the original Xml document and we use the extensive parsing capabilities of XmlDocument to provide the ability of the XAML localizer to locate localizable nodes. _________________ Infralution Support |
|
Back to top |
|
|
|