Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XAML writer changing formatting causing source control issue

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Feature Requests
View previous topic :: View next topic  
Author Message
TravisWhidden



Joined: 26 Jan 2012
Posts: 8

PostPosted: Tue Nov 17, 2015 6:54 pm    Post subject: XAML writer changing formatting causing source control issue Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4884

PostPosted: Tue Nov 17, 2015 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
TravisWhidden



Joined: 26 Jan 2012
Posts: 8

PostPosted: Wed Nov 18, 2015 5:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 4884

PostPosted: Wed Nov 18, 2015 10:42 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Globalizer Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group