cancel
Showing results for 
Search instead for 
Did you mean: 

Validating XML against XSD

miroslav
Star Contributor
Star Contributor

Hello,

is there a way in Alfresco Community 6 to validate embedded XML against their XSD definition?

Thank you.

1 ACCEPTED ANSWER

abhinavmishra14
World-Class Innovator
World-Class Innovator

Not sure about embeded xml (i assume you mean by a file node in repo) , but if you are looking for xml validation against an xsd then answer is No.

But you can use java api (javax.xml) and validate XMLs.

You can find examples here: https://www.tutorialspoint.com/xsd/xsd_validation.htm

https://www.journaldev.com/895/how-to-validate-xml-against-xsd-in-java

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View answer in original post

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

Not sure about embeded xml (i assume you mean by a file node in repo) , but if you are looking for xml validation against an xsd then answer is No.

But you can use java api (javax.xml) and validate XMLs.

You can find examples here: https://www.tutorialspoint.com/xsd/xsd_validation.htm

https://www.journaldev.com/895/how-to-validate-xml-against-xsd-in-java

~Abhinav
(ACSCE, AWS SAA, Azure Admin)