Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Some Basic Qs
Some Basic Qs [message #596193] Tue, 09 August 2005 15:26
Gary is currently offline GaryFriend
Messages: 8
Registered: July 2009
Junior Member
I'm a newbie to XSD and have some questions:

1.
I have an XML Schema document that I want to parse and extract data from,
e.g. What is the root element, List all the complex types, What time is
the simply type X, etc....

Is XSD the only way to go about this, or is it possible to achieve this by
using DOM alone or using some other method?


2.
Using XSD, you can retrieve the XSDSchema as follows:
XSDSchema xsdSchema = xsdResource.getSchema();

Is it possible to access the DOMTree as you would with a regular XML file
(e.g. using element.getChildNodes() etc..), or do you have to go down the
route of XSDParticles and XSDElementDeclarations.


3.
I've been reading about 'concrete' and 'abstract'. What exactly is the
difference and what impact does this have if I only want to access the
data from the schema and not actually modify it.


Ultimately, what I want to do is extract data from the Schema, so that I
can generate a basic XML doc. What is the relation between the DOM tree
that XSD builds to represent a schema and a DOM tree that models an XML
file instance that is valid according to the aforementioned schema.




I understand that these are basic questions, but I appreciate your
patience and helping me to start off.

Gary
Previous Topic:Validating XML doc against its Schema
Next Topic:Some Basic Qs
Goto Forum:
  


Current Time: Thu Apr 25 21:47:19 GMT 2024

Powered by FUDForum. Page generated in 0.02572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top