处理CFchart时的实际XML文件位置 [英] Actual XML file location while dealing with CFchart

查看:206
本文介绍了处理CFchart时的实际XML文件位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以告诉我是否需要在使用ColdFusion时将XML文件放在单独的目录中?现在我把我的xml文件保存在同一个目录,我有.cfm文件。当我运行文件(cfm)它说,

Could anyone tell me whether I need to place xml file in a separate directory while working with coldfusion? Right now I have kept my xml file in the same directory where I have .cfm file. When I run the file(cfm) it says,

Could not locate the style file filename.xml

这是错误:

无法找到样式文件VerticalXLabels .xml。
确保文件存在并且可读。

Could not locate the style file VerticalXLabels.xml. Ensure that the file exists and is readable.

The error occurred in C:\PATH\Testing_Connections.cfm: line 296
Called from C:\PATH\Testing_Connections.cfm: line 271
Called from C:\PATH\Testing_Connections.cfm: line 1

294 :         <cfchartseries  query="detail4" type="line" itemColumn="FIFTHCONN " valueColumn="FIFTHOccurances" > 
295 :        <cfchartseries  query="detail5" type="line" itemColumn="SIXTHCONN" valueColumn="SIXTHOccurances" >   
296 :        <cfchartseries  query="detail6" type="line" itemColumn="SEVENTHCONN" valueColumn="SEVENTHOccurances" >
297 :   </cfchartseries>  
298 : </cfchart>  


推荐答案

根据文档,您可以将XML文件放在任何您喜欢的地方,但是,您必须能够访问它,就像你使用CFINCLUDE。

According to the documentation here, you can put the XML file anywhere you like, however, you must be able to access it as if you were using CFINCLUDE.


ColdFusion使用相同的规则来查找图表样式XML文件,就像使用cfinclude标签包含的文件一样。

ColdFusion uses the same rules to look for the chart style XML files as it does for files included using the cfinclude tag.

这篇关于处理CFchart时的实际XML文件位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆