TkbmMWXMLMarshal and national symbols in xml

Home Forums kbmMW TkbmMWXMLMarshal and national symbols in xml

Viewing 1 reply thread
  • Author
    Posts
    • #54403
      VadimMest
      Participant

      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?

       

    • #54404
      VadimMest
      Participant

      I am so sorry. It’s work! I didn’t call procedure for classes registration

Viewing 1 reply thread
  • You must be logged in to reply to this topic.