PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_DTD » Bug #115

Warning: xml_parse(): Unable to call handler startHandler()

Details

Submitted2003-10-17 03:24 UTC
Fromdh at onclick dot org
StatusDuplicate
PackageXML_DTD
PHP Version5.0.0b1 (beta1)
OSLinux
Roadmaps(Not assigned)

Comments

[2003-10-17 03:24 UTC] dh at onclick dot org

Description:
------------
Hello -

I tried XML_DTD 0.4.1 with both XML_Tree 2.0.b(1/2) and always got this error message when using XmlValidator.php:

Warning: xml_parse(): Unable to call handler startHandler()

The error appears in XML/Parser.php at line 265 which is called by XML_Tree.

Can you help me further? I include the dtd and the file I tested in the fields below.

Reproduce code:
---------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- $Id: ocm.dtd, v 0.96 2003/10/17 00:00:00 garfycx Exp $ -->

<!DOCTYPE ocm[

<!ELEMENT ocm (concept|data|element|id|index|protocol|session|set|user)+>

<!ATTLIST ocm
signed CDATA #REQUIRED
changed CDATA #REQUIRED
user CDATA #REQUIRED
userid CDATA #REQUIRED>

<!ELEMENT concept (#PCDATA)>

<!ATTLIST concept
id CDATA #REQUIRED
language CDATA #REQUIRED
status CDATA #REQUIRED
maintainers CDATA #REQUIRED
users CDATA #REQUIRED
public CDATA #REQUIRED>

<!ELEMENT data (#PCDATA)>

<!ATTLIST data
idref CDATA #REQUIRED>

<!ELEMENT element (title)+>

<!ATTLIST element
id CDATA #REQUIRED
type CDATA #REQUIRED
length CDATA #REQUIRED
checksum CDATA #REQUIRED>

<!ELEMENT id EMPTY>

<!ATTLIST id
idref CDATA #REQUIRED
signed CDATA #REQUIRED
changed CDATA #REQUIRED
user CDATA #REQUIRED
userid CDATA #REQUIRED>

<!ELEMENT index (key)+>

<!ATTLIST index
id CDATA #REQUIRED>

<!ELEMENT key EMPTY>

<!ATTLIST key
on CDATA #REQUIRED
of CDATA #IMPLIED
order CDATA #IMPLIED
only CDATA #IMPLIED> <!-- pattern for matching entries -->

<!ELEMENT session EMPTY>

<!ATTLIST session
signed CDATA #REQUIRED
changed CDATA #REQUIRED
user CDATA #REQUIRED
userid CDATA #REQUIRED
expires CDATA #REQUIRED
after (signed|changed) #REQUIRED>

<!ELEMENT set EMPTY>

<!ATTLIST set
subject CDATA #REQUIRED
object CDATA #REQUIRED
value CDATA #REQUIRED>

<!ELEMENT title (#PCDATA)>

<!ATTLIST title
language CDATA #REQUIRED
pattern CDATA #IMPLIED>

<!ELEMENT user EMPTY>

<!ATTLIST user
id CDATA #REQUIRED
name CDATA #REQUIRED
password CDATA #REQUIRED
email CDATA #REQUIRED>
]>

Expected result:
----------------
<ocm version="" signed="" changed="" user="" userid="">
<session signed="" changed="" user="" userid="" expires="20" after="changed"/>
</ocm>