LiGang | 15 May 10:57

problems about XML dtd entity

Dear all,

I use R "XML" package to parse DTD files, however, it seems that parseDTD
function cannot extract "entity" information.

================
dtdFile <- system.file("exampleData","foo.dtd", package="XML")
foo.dtd <- parseDTD(dtdFile)
foo.dtd$entities   ###NULL
dtdEntity("img", foo.dtd)  ###NULL
packageDescription("XML")$Version  ### "1.95-2"

================

sessionInfo

=================
R version 2.7.0 (2008-04-22)
i386-pc-mingw32

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] XML_1.95-2
(Continue reading)

Martin Morgan | 15 May 19:03

Re: problems about XML dtd entity

Hi LiGang -- this is not the right place to ask this; you'll find the
package maintainer responsive.

> packageDescription('XML')$Maintainer
[1] "Duncan Temple Lang <duncan@...>"

Martin

LiGang <luzifer.li@...> writes:

> Dear all,
>
> I use R "XML" package to parse DTD files, however, it seems that parseDTD
> function cannot extract "entity" information.
>
> ================
> dtdFile <- system.file("exampleData","foo.dtd", package="XML")
> foo.dtd <- parseDTD(dtdFile)
> foo.dtd$entities   ###NULL
> dtdEntity("img", foo.dtd)  ###NULL
> packageDescription("XML")$Version  ### "1.95-2"
>
> ================
>
>
> sessionInfo
>
> =================
> R version 2.7.0 (2008-04-22)
> i386-pc-mingw32
(Continue reading)


Gmane