|Some Basic Qs [message #596193]
||Tue, 09 August 2005 15:26
Registered: July 2009
I'm a newbie to XSD and have some questions:|
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?
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.
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.
Powered by FUDForum
. Page generated in 0.02414 seconds