PDA

Click to See Complete Forum and Search --> : Verifying xml against a schema


tZ
06-12-2007, 11:51 PM
Does anyone know of any free-ware ot trial based software that will alow me to this on a macbook?

thanks

"Technical" Terry
06-13-2007, 08:55 PM
TextEdit

tZ
06-16-2007, 04:24 AM
really…

how then exactly?

I'm not talking about creating it I'm talking about verifying it against a xml file.

"Technical" Terry
06-18-2007, 01:01 PM
I don't know of any free tools that we automatically validate your xml. Also the schema defines the xml file not the other way around. The only program that might is Excel 2003 or higher. It isn't free but in wide enough circulation that you should be able to find someone using it who could open your files for you. It won't really validate the xml file completly, but you can verify if it produces expected results.

"Technical" Terry
06-18-2007, 01:43 PM
P.S. Here is a pretty good introduction.... http://www.w3schools.com/schema/schema_intro.asp

tZ
06-19-2007, 09:54 PM
^ yeah I know that is what I have been reading to learn about all this. I can't get any of the free trials they recommend to work on my mac. It seems that most of them only work on a pc.

"Technical" Terry
06-20-2007, 01:40 PM
If you are just learning then you shouldn't need any software, nor should you want any. At this time it is best to learn all you can about the code and how it works. Just as if someone were going to start web design, I wouldn't suggest DreamWeaver. Instead, I would say get some HTML books and start learning the code. The software will come later. It will make mundane processes simple, but it won't develop the complete code for you.

tZ
06-20-2007, 08:58 PM
what are you talking about?

I want to compare a xml schema I created against an exitsing xml document I created. This was all done in textedit and now I want to verify the schema against the xml. software??

hewligan
06-20-2007, 09:25 PM
I think this will do it and has a 30 day trial version:

http://www.oxygenxml.com/

tZ
06-20-2007, 09:30 PM
^ yeah I tried that and when I submitted the registration with the serial for the trial version it said it had expired even though it was my first time opening it.

tZ
06-20-2007, 09:36 PM
will dreamweaver do it by chance?

I searched and I didn't come up with anything but, perhaps its "hidden" or something.

hewligan
06-20-2007, 10:44 PM
I don't think it will do it as-is, but have you checked around the Adobe Exchange to see if there are any DW extensions that will verify against a schema?

tZ
08-06-2007, 01:06 AM
I finally found the answer to this so I figured I put it here for reference.

You can do it with php using the DOMDocument object.

php

$doc = new DOMDocument();
$doc->load('catalog.xml');
if($doc->schemaValidate('validate.xsd'))
echo 'This is a valid document';
else
echo 'this document is not valid';