Posted 20 years ago
by shark92651

I would assume that the XML that is saved from the SaveToXml call would be of the same structure as the samples included in the demo app. After calling SaveToXml to save my language definition, I get an error when I call LoadFromXml using that file. I notice that after calling SaveToXml that the structure of the XML is different - in particular, the following extra tags are added:
<?xml version="1.0"?>
<SyntaxLanguages>
<!-- SQL Language Definition -->
<SyntaxLanguage Key="SQL" LanguageDefinitionVersion="2.0" Secure="False" xmlns="http://ActiproSoftware/SyntaxEditor/2.0/LanguageDefinition">
The original looks like this:
<SyntaxLanguage Key="SQL" LanguageDefinitionVersion="2.0" Secure="True" xmlns="http://ActiproSoftware/SyntaxEditor/2.0/LanguageDefinition">
Is this a known issue? Why can't LoadFromXml still work in the case where it encounters the <SyntaxLanguages> tag?
Thanks
<?xml version="1.0"?>
<SyntaxLanguages>
<!-- SQL Language Definition -->
<SyntaxLanguage Key="SQL" LanguageDefinitionVersion="2.0" Secure="False" xmlns="http://ActiproSoftware/SyntaxEditor/2.0/LanguageDefinition">
The original looks like this:
<SyntaxLanguage Key="SQL" LanguageDefinitionVersion="2.0" Secure="True" xmlns="http://ActiproSoftware/SyntaxEditor/2.0/LanguageDefinition">
Is this a known issue? Why can't LoadFromXml still work in the case where it encounters the <SyntaxLanguages> tag?
Thanks