Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » parsing XSD from WSDL; then saving as stand-alone
parsing XSD from WSDL; then saving as stand-alone [message #47860] Thu, 17 June 2004 12:43 Go to next message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

So I'm loading XSD schemas that are embedded inside WSDL documents with
the XSDWSDLResourceImpl class that was suggested here some while ago.
What I'd like to do next is save those schemas as self-contained
documents. How can I make sure that all namespace declarations are
included (even those that may have appeared outside the schema
definition in the original document; e.g. xmlns:wsdl next to
wsdl:definitions). Do I have to manipulate/update the DOM representation
myself (based on getQNamePrefixToNamespaceMap where all required entries
show up correctly), or is there a better way to accomplish the required
closure?

Thanks,
Christian
Re: parsing XSD from WSDL; then saving as stand-alone [message #47890 is a reply to message #47860] Thu, 17 June 2004 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christian,

I think that if you did

xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())

that any xmlns declaration not directly in the schema element will be copied
there.


Christian Hoertnagl wrote:

> So I'm loading XSD schemas that are embedded inside WSDL documents with
> the XSDWSDLResourceImpl class that was suggested here some while ago.
> What I'd like to do next is save those schemas as self-contained
> documents. How can I make sure that all namespace declarations are
> included (even those that may have appeared outside the schema
> definition in the original document; e.g. xmlns:wsdl next to
> wsdl:definitions). Do I have to manipulate/update the DOM representation
> myself (based on getQNamePrefixToNamespaceMap where all required entries
> show up correctly), or is there a better way to accomplish the required
> closure?
>
> Thanks,
> Christian

--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Christian,
<p>I think that if you did
<blockquote> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap()) </blockquote>
that any xmlns declaration not directly in the schema element will be copied
there.
<br>&nbsp;
<p>Christian Hoertnagl wrote:
<blockquote TYPE=CITE>So I'm loading XSD schemas that are embedded inside
WSDL documents with
<br>the XSDWSDLResourceImpl class that was suggested here some while ago.
<br>What I'd like to do next is save those schemas as self-contained
<br>documents. How can I make sure that all namespace declarations are
<br>included (even those that may have appeared outside the schema
<br>definition in the original document; e.g. xmlns:wsdl next to
<br>wsdl:definitions). Do I have to manipulate/update the DOM representation
<br>myself (based on getQNamePrefixToNamespaceMap where all required entries
<br>show up correctly), or is there a better way to accomplish the required
<br>closure?
<p>Thanks,
<br>Christian</blockquote>
</html>

--------------1B1739C622FEADC8B5FBDF26--
Re: parsing XSD from WSDL; then saving as stand-alone [message #47919 is a reply to message #47890] Thu, 17 June 2004 13:34 Go to previous message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

Thx, Ed. Nice side effect, this one ;-)

Ed Merks wrote:
> I think that if you did
>
> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())
>
> that any xmlns declaration not directly in the schema element will be
> copied there.
Re: parsing XSD from WSDL; then saving as stand-alone [message #589294 is a reply to message #47860] Thu, 17 June 2004 13:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31548
Registered: July 2009
Senior Member
--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Christian,

I think that if you did

xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())

that any xmlns declaration not directly in the schema element will be copied
there.


Christian Hoertnagl wrote:

> So I'm loading XSD schemas that are embedded inside WSDL documents with
> the XSDWSDLResourceImpl class that was suggested here some while ago.
> What I'd like to do next is save those schemas as self-contained
> documents. How can I make sure that all namespace declarations are
> included (even those that may have appeared outside the schema
> definition in the original document; e.g. xmlns:wsdl next to
> wsdl:definitions). Do I have to manipulate/update the DOM representation
> myself (based on getQNamePrefixToNamespaceMap where all required entries
> show up correctly), or is there a better way to accomplish the required
> closure?
>
> Thanks,
> Christian

--------------1B1739C622FEADC8B5FBDF26
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Christian,
<p>I think that if you did
<blockquote> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap()) </blockquote>
that any xmlns declaration not directly in the schema element will be copied
there.
<br>&nbsp;
<p>Christian Hoertnagl wrote:
<blockquote TYPE=CITE>So I'm loading XSD schemas that are embedded inside
WSDL documents with
<br>the XSDWSDLResourceImpl class that was suggested here some while ago.
<br>What I'd like to do next is save those schemas as self-contained
<br>documents. How can I make sure that all namespace declarations are
<br>included (even those that may have appeared outside the schema
<br>definition in the original document; e.g. xmlns:wsdl next to
<br>wsdl:definitions). Do I have to manipulate/update the DOM representation
<br>myself (based on getQNamePrefixToNamespaceMap where all required entries
<br>show up correctly), or is there a better way to accomplish the required
<br>closure?
<p>Thanks,
<br>Christian</blockquote>
</html>

--------------1B1739C622FEADC8B5FBDF26--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: parsing XSD from WSDL; then saving as stand-alone [message #589312 is a reply to message #47890] Thu, 17 June 2004 13:34 Go to previous message
Eclipse UserFriend
Originally posted by: hoe.zurich.ibm.com

Thx, Ed. Nice side effect, this one ;-)

Ed Merks wrote:
> I think that if you did
>
> xsdSchema.getQNamePrefixToNamespaceMap().putAll(xsdSchema.ge tQNamePrefixToNamespaceMap())
>
> that any xmlns declaration not directly in the schema element will be
> copied there.
Previous Topic:parsing XSD from WSDL; then saving as stand-alone
Next Topic:Element validation
Goto Forum:
  


Current Time: Mon Oct 26 08:41:18 GMT 2020

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

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

Back to the top