Re: PEAR::Config and XML container

From: Date: Sat, 11 Mar 2006 16:50:03 +0000
Subject: Re: PEAR::Config and XML container
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23271@lists.php.net to get a copy of this message
Hi, On 3/10/06, Laurent Laville <pear@laurent-laville.org> wrote: > Is this simple xml file suppose to be well formed or not ? > > test.xml contents is only between * lines > ********************************************************** > 1. *<?xml version="1.0" encoding="UTF-8"?> > 2. *<!-- > 3. * a simple comment > 4. * --> > *********************************************************** ... > output: > XML_Parser: no element found at XML input line 4:5 > It's not well formed, as the parser says, there is no element! > BTW, i also want to know if it's possible to parse boolean content > Here is my other xml test file ... I'm just started with this library, but it seems that the xml container treats everything as a string. But I think this is only a problem for booleans. For false values you can use 0 or leave the element empty in the xml file. Otherwise fixing the source is also easy. > > Feedback will be greatly appreciated > Laurent > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Bernardo

« previous php.pear.general (#23271) next »