Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Getting the XSD type for an Element

Reply
Thread Tools

Getting the XSD type for an Element

 
 
Steven Green
Guest
Posts: n/a
 
      12-29-2007
I have been googling for a bit without success.
I have a schema with complex types.
I am using xerces-c.

I then declared an element of type complex type but gave it a more
meaningful name.

Is there a way to extract the original type from that node?

Thanks,

Steve
 
Reply With Quote
 
 
 
 
keshlam
Guest
Posts: n/a
 
      12-30-2007
On Dec 29, 6:42 am, Steven Green <steven.gree...@verizon.net> wrote:
> Is there a way to extract the original type from that node?


I don't know if Xerces-C supports the DOM Level 3 features which
provide some support for retrieving schema information from a
document. If not, you may be able to do this by using some operation
specific to Xerces-C. I'd suggest asking on Apache's own Xerces-C
mailing list, since that's where you'll find the greatest
concentration of expertise about this parser.

Alternatively, of course, you could retrieve the schema itself as an
XML document and write code to chase through it to find the
declaration for that element...
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSD restriction of nesting an element within another element with aspecific attribute value? PeteOlcott XML 1 02-05-2009 06:39 AM
XSD: own element type marco XML 0 07-21-2006 12:56 PM
validate element with attribute xsi:type="xsd:string" johnsocs@gmail.com XML 8 06-09-2005 11:16 AM
How to define an empty or type-safe element in XSD SW XML 1 10-11-2003 07:04 PM
XSD - element, element value and attribute ? Matthet XML 2 09-24-2003 04:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57