- This topic has 1 reply, 1 voice, and was last updated 5 years, 11 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Tagged: TkbmMWXMLMarshal
Hello
KbmMW 5.00.00 Beta Feb 19 2017
I try to work with XML file (utf-8) which contains national symbol (Cyrilic) in node’s names
<?xml version=”1.0″ encoding=”utf-8″ ?>
<Файл ИдФайл=”ON_NSCHFDOPPR” ВерсФорм=”5.01″ ВерсПрог=”Diadoc 1.0″>
I created Delphi classes from XSD file with national symbols in class’s names. It’s possible in Delphi XE5. This classes is works. Project can be compiled and run.
xml := TkbmMWDOMXML.Create;
try
xml.AutoDetectEncoding := True;
xml.LoadFromFile(AFileName);
Result := Integer(mx.ValueFromDOMXML<KBMON_NSCHFDOPPR.TФайл>(xml));
finally
mx.Free;
xml.Free;
end;
But Marshaling doesn’t work. It’s seems like TkbmMWXMLMarshal read node name in ANSI
Error: Type ‘KBMON_NSCHFDOPPR.TФайл’ not registered as known type.
It’s can be fixed?
I am so sorry. It’s work! I didn’t call procedure for classes registration