>Somone suggested to see if there are any problem markers, this would
work,
>but might not be ideal, but how do i get a list of markers for the
editor.

You would request the list of markers for an IFile or IResource, not for
an editor. Take a look at [1].

>Also, is there a way to ask the validator directly if the active doc is
>valid, and/or can a listener be added to do something when it becomes
valid.
>If so, can you point me in the right direction.

No on the listener. Yes on the validator with the caveat that you need to
then run validation yourself and inspect the report.

NOTE: THE FOLLOWING IS NOT API AND IS LIKELY TO BREAK IN THE FUTURE.

[2] contains a link to the Eclipse XML validator (the XML validator with
any Eclipse extension such as URI resolution and error customization) in
WTP 1.5. You can use this validator to validate an XML file and get a
report containing any errors or warnings.