[xsd-users] How to get element type from xsd
Boris Kolpackov
boris at codesynthesis.com
Fri Mar 31 12:47:18 EST 2006
Hi Abhishek,
Agarwal, Abhishek <Abhishek.Agarwal at nortelgov.com> writes:
> Thank you for a quick response. Actually i am trying to create a access the
> member functions at run time with no knowledge of the member names. In my
> application I want to define a structure which contains members from the
> schema file. This structure has to be defined at run time.
Are you going to have values of members in your structure or just member
names and their type information?
> I want to know the data types of member variable as defined in schema.
The only way that I can think of is by using DOM PSVI (stands for Post
Schema Validation Infoset). It would contain XML Schema type for each
element/attribute in DOM document. Look at getTypeInfo function in
DOMElement and DOMAttribute types.
hth,
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20060331/91b12bf8/attachment.pgp
More information about the xsd-users
mailing list