资料库: XML 解析器

 

XML 解析器:

解析 XML 文档的库。纯 MQL5, 它未使用任何外部库。

作者: yu-sha

 

亲爱的ys-sha

感谢您的工作!

我下载了这个库,但是当我尝试编译它时,出现了两个错误:

  1. '=' - 无法从常量指针转换为非常量指针 XmlElement.mqh 171 11
  2. GetXml' - 调用常量对象的非常量方法 XmlDocument.mqh 285 28

您能帮助我吗?

非常感谢

谢谢

Gianfrancio

 
gianfrancio:

我下载了程序库,但尝试编译时却出现了两个错误:

  1. '=' - 无法从常量指针转换为非常量指针 XmlElement.mqh 171 11
  2. 'GetXml'--为常量对象调用非常量方法 XmlDocument.mqh 285 28

已修复。请下载更新版本。
 

你好,ys-sha、

在编译包含您的库的脚本时,我遇到以下错误:

aParent' - 无法从常数指针转换为非常数指针 XmlElement.mqh 95 14

感谢您的工作。

Izechias

 
Izechias:

你好,ys-sha、

在编译包含您的库的脚本时,我遇到以下错误:

aParent' - 无法从常数指针转换为非常数指针 XmlElement.mqh 95 14

感谢您的工作。

Izechias

嗨,Izechias、

这个人已经做了更正:

https://www.mql5.com/zh/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-sha

感谢您的工作!

对于那些遇到 "无法将常量指针转换为非常量指针 "错误的人,
,这是我的修复方法,我还添加了我需要的 CDATA 特征。

致敬

附加的文件:
 
xml_test.mq5 无法编译,在 XnlElement.mqh 的第 95 行出现错误。 95: SetParent(aParent); Error: 'aParent' - cannot convert from const pointer to nonconst pointer XmlElement.mqh 95 14 如何修复? 为什么代码无法编译或运行?