Thanks Jan - seems OSX comes with libxml and xmllint. xmllint looks good for checking... lets see if they are also part of standard linux distros....
2009/6/15 Jan Schenkel <janschen...@yahoo.com> > > XML Schema validation is a different animal from DTD validation. > Whereas DTD validation is limited to the structure of the XML file (are > there no eloements that are not defined in the DTD, are all the elements > there, do they have the right attributes,etc) XML Schemas can also dictate > the cardinality of the elements and their content. > RevXML doesn't offer XML Schema validation. You can either use a shell() > call to a command-line tool, or write your own external to wrap an existing > C library. > > Jan Schenkel > ===== > Quartam Reports & PDF Library for Revolution > <http://www.quartam.com> > > ===== > "As we grow older, we grow both wiser and more foolish at the same time." > (La Rochefoucauld) > > > --- On Mon, 6/15/09, David Bovill <da...@architex.tv> wrote: > > > From: David Bovill <da...@architex.tv> > > Subject: XML Validation: > > To: "How to use Revolution" <use-revolution@lists.runrev.com> > > Date: Monday, June 15, 2009, 4:42 AM > > Has anyone done XML validation using > > Rev with and XML Schema? The docs say > > you can use a DTD, but mention nothing about using a > > schema... > > > > I'm looking to validate XML within Rev. Looking at the > > docs, we can use: > > > > > > > Use the revXMLValidateDTD function to validate an XML > > tree against a DTD. > > > > > > Parameters: > > > The treeID is the number returned by the > > revCreateXMLTree or > > > revCreateXMLTreeFromFile function when you created the > > XML tree. > > > > > > The DTDText is a Document Type Definition. > > > > > > I need to get the DTD from the url referenced in the XML > > file - however the > > XML file uses an XML-based alternative to DTD, ( XML Schema > > ): > > > > - http://www.w3schools.com/Xml/xml_dtd.asp > > > > The XML starts with something of the form: > > > > <?xml version="1.0"?> > > > <XX xmlns="http://www.example.com/test/ui/" xmlns:xsi=" > > > http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation=" > > > http://www.example.com/test/ui/ > > ..\ExampleXML\Test.xsd"> > > > > > > AFAIK, it is still not possible to use Rev to extract > > these XML attributes > > (they aall get put in "xmlns" - see bugzilla 231) Skipping > > over that issue, > > I could extract > > xsi:schemaLocation="http://www.example.com/test/ui/. > .\ExampleXML\Test.xsd" > > with a script but then the url is a bit strange I'm > > not sure how to get the text referenced. Any ideas? > > > > > > _______________________________________________ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution