Hi,

Why don't you use an XML editor, (Eclipse can do the trick)? It will
show you where your xml doesn't comply to a schema.

If you're using linux, try xmllint.

Patrick

On 10-03-01 02:31 AM, amaresh mourya wrote:
> Hi Anders,
>
> Thanks for your reply. but i was asking for, is there any method which takes
> input my pom.xml file and this schema , so that i can directly use that
> method for validation.
>
> --Amaresh
>
>
> On Mon, Mar 1, 2010 at 12:24 PM, Anders Hammar <and...@hammar.net> wrote:
>
>   
>> Schema validation?
>> http://maven.apache.org/maven-v4_0_0.xsd
>>
>> /Anders
>>
>> On Mon, Mar 1, 2010 at 07:01, amaresh mourya <amaresh.mou...@gmail.com
>>     
>>> wrote:
>>>       
>>     
>>> Hi All,
>>>
>>> How should i check whether or not a particular POM (pom.xml) is
>>> syntactically correct. Is there any apache API for that?
>>>
>>> for example, if one of the tag is missing or say is wrong. Then which
>>> method
>>> I should use so that I got exception thrown, so that I can handle it.
>>>   <parent>
>>>    <groupId>org.apache.maven</groupId>
>>>    <artifactId>maven</artifactId>
>>>    <version>2.2.0</version>
>>>  * </pat>
>>> Note: here the last </parent> tag is wrong.
>>> *
>>>
>>>       
>>     
>   

-- 
Patrick Turcotte
Développeur/Architecte Java
------------------------------------
patrick.turco...@revolutionlinux.com
(819) 780-8955, poste 1129
Sans frais 1-800-996-8955, poste 1129


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to