Search the web
Sign In
New User? Sign Up
metal-dev · MetaL Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
XSD schema   Message List  
Reply | Forward Message #494 of 553 |
Re: [metal-dev] XSD schema

Of course you're welcome to distribute the file.

The point I was making about the XML parser is that it rejects the
schema declaration, which must be included in the xml file in order
for validation to function. For example, the root tag for the
component is:

<?xml version="1.0" encoding="UTF-8"?>
<component xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
www.w3.org/2001/XMLSchema ../../MetaL/metastorage/component.xsd ">

The xsd itself is not parsed, but these attributes on the root tag
*are* parsed (and rejected) by the metaL parser. It would be great if
the simplified XML parser would allow these tags on the root tag of
the document.

I'm using the eclipse wed development toolkit, which has a validating
XML editor that also allows you to view the XML in a structured view.
It's quite nice, and being able to use auto-complete and see any
mistakes can make editing and understanding the file a bit easier.

I don't think that the xsd there is complete, however. But it is a start.

On 12/12/06, Manuel Lemos <mlemos@...> wrote:
> Hello,
>
> on 12/02/2006 10:43 PM dobes_vandermeer said the following:
> > I've been working on an XSD schema for the configuration, so that my
> > xml editor can do auto-completion and friendly structured editing/
> > validation. I've had to modify my copy of xml_parser.php to ignore
> > attributes since it rejects the declaration saying "Simplified XML
> > can not have attributes in tags".
> >
> > Hopefully this idea of te XSD schema is something people will like
> > and you'll maintain it, or at least make it allowable to use the
> > schema in your xml.
>
> Sorry for the delay. I have been at PHP Conference Brasil 2006 and I am
> still catching up on pending e-mail.
>
> I need to make time to look at this closer, but you do not need to hack
> the XML parser class, it the simplified XML option is controlled by the
> MetaL compiler.
>
> I was not aware that when you specify the schema with a XML file for
> MetaL engine, the schema als gets parsed. I need to look closer at this
> to avoid thes problems.
>
> Anyway, I use Kate to edit my project files. I am not sure if it
> supports XML schema based validation or auto-completion . Which editor
> do you use that makes use of the XML schema?
>
> As for the schema file, it may be useful to distribute with Metastorage,
> if you would not mind. Of course you would be credited for your
> contribution.
>
> --
>
> Regards,
> Manuel Lemos
>
> Metastorage - Data object relational mapping layer generator
> http://www.metastorage.net/
>
> PHP Classes - Free ready to use OOP components written in PHP
> http://www.phpclasses.org/
>
>
>
> Yahoo! Groups Links
>
>
>
>



Tue Dec 12, 2006 7:50 pm

dobes_vander...
Offline Offline
Send Email Send Email

Forward
Message #494 of 553 |
Expand Messages Author Sort by Date

I've been working on an XSD schema for the configuration, so that my xml editor can do auto-completion and friendly structured editing/ validation. I've had...
dobes_vandermeer
dobes_vander...
Offline Send Email
Dec 3, 2006
7:15 pm

Hello, ... Sorry for the delay. I have been at PHP Conference Brasil 2006 and I am still catching up on pending e-mail. I need to make time to look at this...
Manuel Lemos
mallemos
Offline Send Email
Dec 12, 2006
7:11 pm

Of course you're welcome to distribute the file. The point I was making about the XML parser is that it rejects the schema declaration, which must be included...
Dobes Vandermeer
dobes_vander...
Offline Send Email
Dec 12, 2006
8:11 pm

Hello, ... Oh, I see. I will look into that soon so it stops complaining. ... Ok, I do not use Eclipse because it is too heavy, but I will take a look at that...
Manuel Lemos
mallemos
Offline Send Email
Dec 14, 2006
9:19 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help