Difference between revisions of "LRM XML Support"

From Lingoport Wiki
Jump to: navigation, search
(XML Support for Standard LRM Extensions)
(Formatting xml files)
Line 6: Line 6:
 
There are 3 out-of-the-box parser definitions for XML files.
 
There are 3 out-of-the-box parser definitions for XML files.
 
<ul>
 
<ul>
  +
<li><b>AndroidParser.xml</b> format definition used for as the default for [[LRM_Android_Support#xml_parser_type_using_AndroidParser.xml_format_definition|''.xml'']] extensions.</li>
 
<li><b>ResxParser.xml</b> format definition used for [[LRM_resx_Support#xml_parser_type_using_ResxParser.xml_format_definition|''.resx'']] extensions.</li>
 
<li><b>ResxParser.xml</b> format definition used for [[LRM_resx_Support#xml_parser_type_using_ResxParser.xml_format_definition|''.resx'']] extensions.</li>
 
<li><b>RxmlParser.xml</b> format definition used for [[LRM_rxml_Support#xml_parser_type_using_RxmlParser.xml_format_definition|''.rxml'']] extensions.</li>
 
<li><b>RxmlParser.xml</b> format definition used for [[LRM_rxml_Support#xml_parser_type_using_RxmlParser.xml_format_definition|''.rxml'']] extensions.</li>
<li><b>AndroidParser.xml</b> format definition used for as the default for [[LRM_Android_Support#xml_parser_type_using_AndroidParser.xml_format_definition|''.xml'']] extensions.</li>
 
 
</ul>
 
</ul>
   

Revision as of 17:06, 1 September 2017

Formatting xml files

LRM uses the xmlParser.xml file to parse any extensions that have a xml parser type. This file is located in the ../L10nStreamlining/<group>/projects/<project>/config folder.

The xmlParser.xml directs LRM on the location of the keys and values within the xml files as well as whether the key/value is translatable.

There are 3 out-of-the-box parser definitions for XML files.

  • AndroidParser.xml format definition used for as the default for .xml extensions.
  • ResxParser.xml format definition used for .resx extensions.
  • RxmlParser.xml format definition used for .rxml extensions.

AndroidParser.xml structure

ResxParser.xml structure

RxmlParser.xml structure