Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:")
Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:") [message #23456] Fri, 13 June 2003 14:59 Go to next message
Eclipse UserFriend
Originally posted by: rsb.ppi.de

Hi there,

i am gettin errors while setting a prefix.

---[my Code]--
XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();

xsdSchema.setElementFormDefault(XSDForm.QUALIFIED_LITERAL);

xsdSchema.setAttributeFormDefault(XSDForm.QUALIFIED_LITERAL) ;


xsdSchema.setSchemaForSchemaQNamePrefix("xsd");

-- [end my code]--

and now to the errors (some part in german ???)

org.w3c.dom.DOMException: NAMESPACE_ERR: Es wurde versucht, ein Objekt auf
eine Weise zu erstellen oder zu
Re: Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:") [message #23503 is a reply to message #23456] Fri, 13 June 2003 15:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------70A5B6EC0B2EEAB2F817F999
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Rene,

Have a look at:

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html#initializePurchaseOrderSchema()

You are missing this part:

xsdSchema.getQNamePrefixToNamespaceMap().put
(xsdSchema.getSchemaForSchemaQNamePrefix(),
XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);

Rene Schrader-Boelsche wrote:

> Hi there,
>
> i am gettin errors while setting a prefix.
>
> ---[my Code]--
> XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();
>
> xsdSchema.setElementFormDefault(XSDForm.QUALIFIED_LITERAL);
>
> xsdSchema.setAttributeFormDefault(XSDForm.QUALIFIED_LITERAL) ;
>
> xsdSchema.setSchemaForSchemaQNamePrefix("xsd");
>
> -- [end my code]--
>
> and now to the errors (some part in german ???)
>
> org.w3c.dom.DOMException: NAMESPACE_ERR: Es wurde versucht, ein Objekt auf
> eine Weise zu erstellen oder zu
Re: Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:") [message #23588 is a reply to message #23503] Mon, 16 June 2003 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: rsb.ppi.de

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
news:3EE9EC66.A28B0188@ca.ibm.com...
> xsdSchema.getQNamePrefixToNamespaceMap().put
> (xsdSchema.getSchemaForSchemaQNamePrefix(),
> XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
>
Fine, thank you again :)

Rene
Re: Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:") [message #572906 is a reply to message #23456] Fri, 13 June 2003 15:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31362
Registered: July 2009
Senior Member
--------------70A5B6EC0B2EEAB2F817F999
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Rene,

Have a look at:

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/xsd- home/docs/javadoc/org/eclipse/xsd/util/XSDPrototypicalSchema .html#initializePurchaseOrderSchema()

You are missing this part:

xsdSchema.getQNamePrefixToNamespaceMap().put
(xsdSchema.getSchemaForSchemaQNamePrefix(),
XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);

Rene Schrader-Boelsche wrote:

> Hi there,
>
> i am gettin errors while setting a prefix.
>
> ---[my Code]--
> XSDSchema xsdSchema = XSDFactory.eINSTANCE.createXSDSchema();
>
> xsdSchema.setElementFormDefault(XSDForm.QUALIFIED_LITERAL);
>
> xsdSchema.setAttributeFormDefault(XSDForm.QUALIFIED_LITERAL) ;
>
> xsdSchema.setSchemaForSchemaQNamePrefix("xsd");
>
> -- [end my code]--
>
> and now to the errors (some part in german ???)
>
> org.w3c.dom.DOMException: NAMESPACE_ERR: Es wurde versucht, ein Objekt auf
> eine Weise zu erstellen oder zu


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problems with: xsdSchema.setSchemaForSchemaQNamePrefix("xsd:") [message #572969 is a reply to message #23503] Mon, 16 June 2003 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: rsb.ppi.de

"Ed Merks" <merks@ca.ibm.com> schrieb im Newsbeitrag
news:3EE9EC66.A28B0188@ca.ibm.com...
> xsdSchema.getQNamePrefixToNamespaceMap().put
> (xsdSchema.getSchemaForSchemaQNamePrefix(),
> XSDConstants.SCHEMA_FOR_SCHEMA_URI_2001);
>
Fine, thank you again :)

Rene
Previous Topic:Local Cache of Schemas
Next Topic:Local Cache of Schemas
Goto Forum:
  


Current Time: Sun Aug 09 22:35:17 GMT 2020

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

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

Back to the top