• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrieve all the elements name from a xml schema

 
emil makovac
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a problem with getting a name of a schema elements in java. I am creating a small xml editor which can load a xml schema and validate a xml file against xml schema. I want to parse a schema, get every elements name and then put it in my content assistant, so the user can see all the available elements.

I already read XSOM User's guide, but I didn't understand much...

Can someone help me to implement my addElementsFromSchema(File xsdfile) function, because I lost myself trying.

public static void addElementsFromSchema(File xsdfile){

}
 
K. Tsang
Bartender
Posts: 3507
16
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked into those API for XML?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic