ライブラリ: XMLパーサー

 

XMLパーサー:

XMLドキュメントをパースするのに使用されるライブラリです。MQL5のみで書かれており、外部ライブラリは使用されません。

作者: yu-sha

 

ys-haさんへ、

お疲れ様です!

ライブラリをダウンロードしましたが、コンパイルしようとすると2つのエラーが発生します:

  1. '=' - const ポインタから nonconst ポインタに変換できません XmlElement.mqh 171 11
  2. 'GetXml' - callnon-const method for constant object XmlDocument.mqh 285 28

助けていただけますか?

よろしくお願いします。

よろしくお願いします。

Gianfrancio

 
gianfrancio:

ライブラリをダウンロードしたのですが、コンパイルしようとすると2つのエラーが出ます:

  1. '=' - const ポインタから nonconst ポインタに変換できません XmlElement.mqh 171 11
  2. 'GetXml' - constant objectに対してconstでないメソッドを 呼び出す XmlDocument.mqh 285 28

修正しました。更新版をダウンロードしてください。
 

ys-shaさん、こんにちは、

ライブラリを組み込んだスクリプトをコンパイルすると、以下のエラーが発生します:

'aParent' - const ポインタから nonconst ポインタに変換できません XmlElement.mqh 95 14

ありがとうございました。

Izechias

 
Izechias:

ys-shaさん、こんにちは、

ライブラリを組み込んだスクリプトをコンパイルすると、以下のエラーが発生します:

'aParent' - const ポインタから nonconst ポインタに変換できません XmlElement.mqh 95 14

ありがとうございました。

Izechias

こんにちは、Izechiasさん、

この人はすでにこの修正をしています:

https://www.mql5.com/ja/articles/2540?utm_campaign=MetaEditor+5&utm_medium=special&utm_source=mt5editor+article

楽しんでください。

Universal Expert Advisor: Integration with Standard MetaTrader Modules of Signals (Part 7)
Universal Expert Advisor: Integration with Standard MetaTrader Modules of Signals (Part 7)
  • 2016.07.22
  • Vasiliy Sokolov
  • www.mql5.com
This part of the article describes the possibilities of the CStrategy engine integration with the signal modules included into the standard library in MetaTrader. The article describes how to work with signals, as well as how to create custom strategies on their basis.
 

ys-haさんへ、

お疲れ様でした!

エラー "const pointer to nonconst pointer cannot convert from const pointer to nonconst pointer "が出る人のために、

よろしくお願いします。

ファイル:
 
xml_test.mq5がエラーなしでコンパイルされません。 XnlElement.mqhの95行目でエラーが発生します。 95: SetParent(aParent); Error: 'aParent' - const pointerからnonconst pointerに変換できません XmlElement.mqh 95 14 どうすれば修正できますか? コードがコンパイルまたは実行されないのはなぜですか?