[oXygen-user] Validating a Maven pom.xml file in Oxygen?
Oxygen XML Editor Support
support at oxygenxml.com
Thu Dec 5 04:46:53 CST 2013
Hi Aaron,
The Maven XML Schema has a target namespace so the reference to it from
the XML document should be like:
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Basically the value of the "xsi:schemaLocation" attribute is usually
list of (targetNamespace schemaLocation) pairs.
If you do not want to link directly to the schema from the XML you
should consider downloading the schema to a local folder and creating a
basic document type association in the Oxygen Preferences->"Document
Type Association" page:
http://www.oxygenxml.com/doc/ug-oxygen/index.html#topics/dg-basic-association.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 12/4/2013 9:02 PM, DaMommio, Aaron D (Aaron) wrote:
> I don't seem to be able to validate Maven pom files in Oxygen (v12.2 or v15) .
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" >
>
> I did some web research, got some indications that I needed to add more attributes to my root element...
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/xsd/maven-4.0.0.xsd">
>
> But both of the above formulations generate 'no schema or DTD associated' errors.
>
> Any clues here?
> Thanks,
> Aaron DaMommio
>
> ===================
> AARON DAMOMMIO
> ALCATEL-LUCENT
> STAFF TECHNICAL WRITER/TOOLS DEVELOPER
> CUSTOMER EXPERIENCE SOLUTIONS
> AUSTIN, TX
> USA
> T: (512) 531-2408
> M: (512) 762-4326
> aarond at motive.com
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
More information about the oXygen-user
mailing list