RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
ni.iu.edu > CC: php-general@lists.php.net > Subject: Re: [PHP] Validating XML Issue > > I'd say your XML document is not "well formed", but validity depends on > whether it conforms to the rules expressed in a schema. > > Mattias > > Alice Wei wrote: &

[PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet here as follows: setParserProperty(XMLReader::VALIDATE, true); if ($xml->isValid()) echo "true"; else echo "NOT"; ?> Here is the contents of hello.xml:

Re: [PHP] Validating XML Issue

2009-09-03 Thread Mattias Thorslund
I'd say your XML document is not "well formed", but validity depends on whether it conforms to the rules expressed in a schema. Mattias Alice Wei wrote: Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet he

[PHP] Validating XML

2006-04-21 Thread Brad Bonkoski
Hello, Anyone have pointers to good tutorials out there for validating XML with DTD? I have looked at the top comment on: http://www.php.net/manual/en/ref.xmlreader.php#xmlreader.constants Where you set the parser property to validate, but it is kind of like a black box...what is it using the

[PHP] Validating XML structure with PHP

2005-03-28 Thread Eli
Hi, I want to validate an XML structure using PHP. I thought of using PHP's DOM and XSD or DTD for validation. This does the job ok, except on invalid XML structure I get the same error code. What I want is to point exactly why the XML structure is invalid. I know there's also an error message t

[PHP] Validating XML Schema

2004-11-20 Thread Mario Bittencourt
Hi, I am trying to use php to validate a document using it's schema. I keep getting Warning: Element 'Invoices': No matching global declaration available. My xsd has http://www.w3.org/2001/XMLSchema"; targetNamespace="http://www.mysite.com"; xmlns="http://www.mysite.com"; elementFormDefault="q

Re: [PHP] Validating XML strings

2003-07-01 Thread Ray Hunter
As of now i dont think that DOMXML functions support the validation of dtds or schemas...I have been looking for the past couple of days and did not find anything... I have not verified the xml extension for it but i doubt that that option is there either... -- BigDog On Tue, 2003-07-01 at 14:

[PHP] Validating XML strings

2003-07-01 Thread Moore, Christie
I am parsing an xml string using the DOM package in php. Is there anyway to validate the xml string against a schema or a dtd with DOM. I know it is still experimental but I didn't know if something like that existed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http: