How do you validate things like this?

<taskdef name="xyz" classname="org.example.XyzTask"/>
<xyz someattribute="abc"/>

It really has to be a custom DTD for every build file, at least the ones 
that incorporate third-party task definitions.

So, in practice a DTD is not that possible, but if you use 
<antstructure> you can generate one and it might be good enough - 
although I admittedly have never done this.  IDEA gives me enough XML 
checking and auto-completion in build.xml files that I've not found a need.

        Erik


Guy McArthur wrote:
> Is there a DTD for the build file syntax?
> Just thinking it would be nifty to validate the build.xml within an 
> editor....
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to