Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » namespace prefix to URL resolution
namespace prefix to URL resolution [message #575113] Thu, 31 July 2003 16:50
Eclipse User
Originally posted by: carman.itc.it

Dear All,

I'm trying to obtain the (simple) type definitions of "elements" within
soap encoded arrays. Here's an example of one such array declaration:

<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="typens:CustomerReview[]"/>

Here the attribute, "arrayType" is a string, but the SOAP engine
understands that the string really contains objects of type
"typens:CustomerReview" as a single dimensional array. (Ugly way of
encoding your data, I know, but people seem to use this construction!)

My problem is, that when inspecting such an attribute, I want to resolve
the "typens:CustomerReview" (simple) type definition and view its
properties. Before calling the resolveSimpleTypeDefinition() method, I
need to find the URL which the namespace prefix "typens" represents. I had
a look in both the XSD and DOM apis and couldn't find a method to do this.
Does anybody know how to map prefixes to the URLs they represent? I'm sure
it must be really simple.

Thanks a lot,

Mark
Previous Topic:Generating Java Classes from XSD
Next Topic:Generating Java Classes from XSD
Goto Forum:
  


Current Time: Tue Oct 21 05:40:49 GMT 2014

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

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