Friday, July 13, 2012

How to read XML Schema File as Apache commons XmlSchema Object


First you need to get the file as InputStream and then get XmlSchemaCollection of that InputStream. Using this XmlSchemaCollection object you can read XmlSchema. You can find Sample code below, Which get sample.xml XSD file to XmlSchema Object.



Now you can use this XmlSchema object to iterate the XSD file. If you need to know how to do it then have a look my previous post "How to process Apache commons XmlSchema"

How to process Apache commons XmlSchema.


Hi all,

Today I'am going to show you how to iterate XmlSchema to print all complex and simple Types elements and identify whether it is an array or not and also the type of the element.



Thursday, July 5, 2012

Add eclipse jdt core dependency and third party repository

Artifact details
Group: org.eclipse.jdt
Artifact id: core
Version: 3.4.2.v_883_R34x
Version type: Unknown
Repository: JBoss Thirdparty Releases
Repository url: https://repository.jboss.org/nexus/content/repositories/thirdparty-releases


Maven dependency



Maven repository



add this maven repository to your pom file as

<project>
.........
  <repositories>
        <repository>
         ......
      </repository>
    </repositories>
</project>

Sample Text

Website counter

Categories