Re: [PHP] Parsing entities in XML attributes

2004-06-24 Thread Decapode Azur
Hi, The problem I had has not exactly the same, but quite close, it was to make a pure xml template system both data and template, anyway it was due to the same expat design problem, which is the entities that are located in attribute values inside tags. The solution I have used was just to prese

[PHP] Parsing entities in XML attributes

2004-06-23 Thread Gabriel Birke
Hello! I've got an XML file that has the following tag: I parse it with the following handler (simplified a bit): function start_tag($parser, $name, $attrs) { global $text; if($name == "CUSTOMTEXT") $text = $attrs['TEXT']; // more tags here .. } When I echo

[PHP] parsing entities

2004-03-30 Thread Decapode Azur
hello, I am parsing an xhtml template throught the php xml expat parser. But the problem is that it removes all entities from the xhtml template such as   or & (in href anchors attributes) The entities can't be handle with xml_set_default_handler because some entities are inside an attribute (ti