Ok,

But since the validation detects when I do not use the right qualifications, the information must be present somewhere.
I am also using a grammarpool; can I access it through there?


Op 29-jun-2006, om 3:32 heeft Michael Glavassevich het volgende geschreven:

Dick Deneer <[EMAIL PROTECTED]> wrote on 06/28/2006
03:30:44 PM:

Hi,

I have a XSModel (either through the PSVI after validating a Dom or
direct through XSLoader).
Now I want to retrieve some values that are normally in the Document
element of the schema xml:  elementFormDefault, attributeFormDefault
and which prefix is bound to a certain namespace.
===
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://tempuri.org/po.xsd";
xmlns:po="http://tempuri.org/po.xsd"; elementFormDefault="qualified">
==

I do not want to parse the schema again, but would like to get these
values through the XSModel.

Is this possible?

No. XSModel is a model of the schema components [1] defined by the XML
schema spec. elementFormDefault and attributeFormDefault are only part of the XML representation of schema documents. If you want to access/ modify XML Schema document information you may want to take a look at the Eclipse
XSD API [2].

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[1] http://www.w3.org/TR/xmlschema-1/#components
[2] http://www.eclipse.org/xsd/

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to