[
https://issues.apache.org/jira/browse/HADOOP-12031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14562285#comment-14562285
]
Sean Busbey commented on HADOOP-12031:
--------------------------------------
{quote}
I guess there's nothing we can leverage that ships with the JVM is there?
{quote}
interesting suggestion. there isn't any cli tool that comes out of the box
AFAICT.
However, we could write a simple utility to do this using
[DocumentBuilder|http://docs.oracle.com/javase/7/docs/api/javax/xml/parsers/DocumentBuilder.html]
for well-formedness and when a Schema is specified [the validation
package|http://docs.oracle.com/javase/7/docs/api/javax/xml/validation/package-summary.html]
for more specifics. Looking at the docs, I think we could make it work for
Java 5+.
> test-patch.sh should have an xml plugin
> ---------------------------------------
>
> Key: HADOOP-12031
> URL: https://issues.apache.org/jira/browse/HADOOP-12031
> Project: Hadoop Common
> Issue Type: Test
> Components: build
> Reporter: Allen Wittenauer
> Assignee: Kengo Seki
> Labels: newbie, test-patch
> Attachments: HADOOP-12031.001.patch, HADOOP-12031.002.patch,
> HADOOP-12031.003.patch
>
>
> HADOOP-11178 demonstrates why there is a need to verify xml files on a patch
> change.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)