最小的xml解析器? [英] minimal xml parser?

查看:69
本文介绍了最小的xml解析器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道c中的最小/迷你/小/小xml解析器

吗?我正在寻找一些小的接受流的东西

或字符串,构建一个c结构,然后返回一个不透明的

指向该结构的指针。然后应该有一个函数

来搜索给定指针,标签和

可选属性的结构。我最初只看文本数据,

没有数字,但是事件是否会有一些二进制

数据(CDATA?)。

谢谢。


Mike

解决方案

" Mike" < MI *** @ mikee.ath.cx>在消息中写道

新闻:10 ************* @ corp.supernews.com ...

我在寻找最初只有文本数据,没有数字,虽然事件会有一些二进制数据(CDATA?)。




XML不支持 ;二进制数据该术语是常用的。 XML实例中的所有数据

必须按指定的字符编码有效。


您应该在
之前阅读XML规范的相关部分。
确定XML是否适合您的要求。


/ kmc


文章< k4 * *******************@comcast.com> ;, Keith M. Corbett写道:

" Mike" < MI *** @ mikee.ath.cx>在消息中写道
新闻:10 ************* @ corp.supernews.com ...

我最初只关注文本数据,
没有数字,虽然事件会有一些二进制数据(CDATA?)。



XML不支持二进制数据。该术语是常用的。 XML实例中的所有数据必须对指定的字符编码有效。

在确定XML是否为适当的表示之前,您应该阅读XML规范的相关部分。您的要求。

/ kmc




已选择XML,我需要编写解析器。哦,我没有

来验证XML,只需解析它。


Mike


< blockquote> Mike< mi *** @ mikee.ath.cx>写道:

已经选择了XML,我需要编写解析器。哦,我没有验证XML,只需解析它。




Expat( www.libexpat.org)。实际上每种语言都有某种支持,甚至是bash shell。


-

William Park< op **********@yahoo.ca>

Open Geometry Consulting,加拿大多伦多


Does anyone know of a minimal/mini/tiny/small xml parser
in c? I''m looking for something small that accepts a stream
or string, builds a c structure, and then returns an opaque
pointer to that structure. There should then be a function
to search that structure given the pointer, tag, and an
optional attribute. I''m looking initially at only text data,
no numbers, though eventuall there will be some binary
data (CDATA?).

Thanks.

Mike

解决方案

"Mike" <mi***@mikee.ath.cx> wrote in message
news:10*************@corp.supernews.com...

I''m looking initially at only text data,
no numbers, though eventuall there will be some binary
data (CDATA?).



XML does not support "binary data" as the term is commonly used. All data
within an XML instance must be valid per the specified character encoding.

You should read the relevant sections of the XML specification before
determining if XML is an appropriate representation for your requirements.

/kmc


In article <k4********************@comcast.com>, Keith M. Corbett wrote:

"Mike" <mi***@mikee.ath.cx> wrote in message
news:10*************@corp.supernews.com...

I''m looking initially at only text data,
no numbers, though eventuall there will be some binary
data (CDATA?).



XML does not support "binary data" as the term is commonly used. All data
within an XML instance must be valid per the specified character encoding.

You should read the relevant sections of the XML specification before
determining if XML is an appropriate representation for your requirements.

/kmc



XML has been chosen, I need to write the parser. Oh, and I do not have
to validate the XML, just parse it.

Mike


Mike <mi***@mikee.ath.cx> wrote:

XML has been chosen, I need to write the parser. Oh, and I do not have
to validate the XML, just parse it.



Expat (www.libexpat.org). Practically every language has some sort of
support for it, even Bash shell.

--
William Park <op**********@yahoo.ca>
Open Geometry Consulting, Toronto, Canada


这篇关于最小的xml解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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