Re: XML

From: Date: Thu, 05 Apr 2001 23:19:32 +0000
Subject: Re: XML
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-47183@lists.php.net to get a copy of this message
valid and well-formed are different, can php verify neither? G is for the gang of money I make. F is for the gang of fools I break. U is for the undisputed champ. N is 'cause you never gonna get the mic back. K is for the niggaz that I knock on they back. http://www.gfunk007.com/ ----- Original Message ----- From: "Plutarck" <aemuli@spamclause-yahoo.com> To: <php-general@lists.php.net> Sent: Wednesday, April 04, 2001 11:07 PM Subject: Re: [PHP] XML > If memory serves, I was told that "PHP at the present time can not validate > an XML document". It does everything else, but you will have to validate > everything on your own. > > In other words there is no current PHP function that can parse an .xml > document and judge if it is Well Formed or not. > > > -- > Plutarck > Should be working on something... > ...but forgot what it was. > > > ""Andreas Sisask"" <a.sisask@aprote.com> wrote in message > news:9afcdk$jug$1@toye.p.sourceforge.net... > > I have a docdef.dtd file which defines a document. Now, if I parse some > > doc1.xml file which refers to this > > docdef.dtd, that is it contains the line > > > > <!DOCTYPE whateva SYSTEM "docdef.dtd"> > > > > I want to chek if the doc1.xml really is correct as defined - has the > syntax > > (elements, nesting and whatever I have defined in docdef1.dtd) > > > > And as I got answers from several people, it is not possible. > > > > Andreas > > > > "Joe Stump" <joe@earth.care2.com> wrote in message > > news:20010404093613.H12128@zorka.com... > > > AFAIK php doesn't care about extensions (ie .html vs .htm) - if it's > valid > > > XML and expat supports it then you should be good to go. I've parsed > .rdf > > just > > > fine... > > > > > > --Joe > > > > > > On Wed, Apr 04, 2001 at 03:09:36PM +0200, Andreas Sisask wrote: > > > > Hello, > > > > > > > > Does php have some feature of using .dtd or .xsd in parsing an .xml > > file? > > > > I mean for example if I parse some .xml (which refers to some .dtd) it > > > > checks that the .xml is correct or if not then > > > > gives quite exact error about it. > > > > > > > > Andreas > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > > For additional commands, e-mail: php-general-help@lists.php.net > > > > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > > > > > > > > > > > > /*************************************************************************** > > ***\ > > > * Joe Stump - PHP/SQL/HTML Developer > > * > > > * http://www.care2.com - > > > http://www.miester.org - > > http://gtk.php-coder.net * > > > * "Better to double your money on mediocrity than lose it all on a > > dream." * > > > > > > \*************************************************************************** > > ***/ > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-general-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#47183) next »