简体   繁体   English

C ++ Expat XML标签支持

[英]C++ Expat XML tag support

I can't find any documentation about what the expat-parser does and does not support in terms of XML tags. 我找不到任何有关expat-parser做什么和不支持XML标记的文档。 I know that in the general case expat lets the event handlers (implemented by the user) deal with the tags, but specifically I would like to know if expat supports any sort of file inclusion tag. 我知道在一般情况下,expat让事件处理程序(由用户实现)处理标签,但是我特别想知道expat是否支持任何类型的文件包含标签。

The idea would be to extract common sections of XML into a single file and then include that file where necessary in the XML files which contain that data. 想法是将XML的公共部分提取到一个文件中,然后在包含该数据的XML文件中根据需要将该文件包括在内。

If anyone knows the direct answer to this that would be greatly appreciated, however I would also accept a pointer to some documentation. 如果有人知道对此的直接回答,将不胜感激,但是我也接受一些文档的指针。

I could not find any documentation, and I am left to assume that this is not possible. 我找不到任何文档,因此我假设这是不可能的。 I would imagine the expat user could implement this themselves by defining a tag handler which will open a new XML file based on the value in the tags and call the appropriate methods on that file. 我可以想象,expat用户可以通过定义标签处理程序自己实现此目的,该处理程序将基于标签中的值打开一个新的XML文件,并对该文件调用适当的方法。

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

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