简体   繁体   English

使用txmldocument(C ++ Builder 2007)打开gpx文件

[英]using txmldocument (c++ builder 2007) to open a gpx file

I have a gpx-file that I want to open with the vcl component txmldocument under the c++ builder 2007. the file should be compatible with the xml-version 1.0 because it is written in the first line as one can see in the code below. 我有一个gpx文件,我想使用c ++ builder 2007下的vcl组件txmldocument打开。该文件应与xml-version 1.0兼容,因为它写在第一行,如下面的代码所示。

I enter the file name in the file name line of the txmldocument in the object inspector. 我在对象检查器中的txmldocument的文件名行中输入文件名。 Then I double click the txmldocument icon on the form of my vcl application. 然后,我在vcl应用程序的形式上双击txmldocument图标。

I get the error message: "ungültiges oder nicht unterstütztes xml-schemadokument." 我收到错误消息:“ungültigesoder nichtunterstütztesxml-schemadokument”。 which means in english: "not valid or not supported xml-schema document." 这在英语中表示:“无效或不受支持的xml模式文档。”

The first lines of my xml-code are: 我的xml代码的第一行是:

<?xml version="1.0" encoding="utf-8"?><gpx creator="Garmin Desktop App" version="1.1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd http://www.garmin.com/xmlschemas/WaypointExtension/v1 http://www8.garmin.com/xmlschemas/WaypointExtensionv1.xsd http://www.garmin.com/xmlschemas/TrackPointExtension/v1 http://www.garmin.com/xmlschemas/TrackPointExtensionv1.xsd

I have seen the code on http://www.topografix.com/GPX/1/1/gpx.xsd but I do not understand where the error is located. 我已经在http://www.topografix.com/GPX/1/1/gpx.xsd上看到了该代码,但我不知道该错误位于何处。

Perhaps someone could help me ? 也许有人可以帮助我?

thanks 谢谢

I changed the suffix of my gpx-file from .gpx to .xml. 我将gpx文件的后缀从.gpx更改为.xml。 Then the error warning from above did not appear anymore. 然后,上面的错误警告不再出现。

I have some new problems now but the problem from the origin question is solved. 我现在有一些新问题,但是原点问题解决了。

I´m sorry, I thought I had loaded files with other suffix than .xml before so I did not try to change the suffix in the first instance. 对不起,我以为我之前加载的文件后缀不是.xml,因此我没有尝试在第一个实例中更改后缀。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM