Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Type object not imported during schema import

498879Nov 21 2006 — edited Nov 22 2006
HI ,

i made a schema level export from one database and imported in to another database, but i am not able to see any type object which was present in the source schema., please help if there is any method to import type object also.

Regards
Asif

Comments

416310
I think the API allows you to specify whether you want standalone="yes" or standalone="no", see [http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE|http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE] but I am not aware of a way to ensure that no standalone pseudo attribute is output.
EJP
Is there any way to remove standalone attribute?
Why do you need to do that?
843834
ejp wrote:
Is there any way to remove standalone attribute?
Why do you need to do that?
The XML document I'm editing is part of another application and the other XML documents doesn't have "standalone" attribute in XML declaration.
843834
Martin_Honnen wrote:
I think the API allows you to specify whether you want standalone="yes" or standalone="no", see [http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE|http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE] but I am not aware of a way to ensure that no standalone pseudo attribute is output.
Thanks a lot. I read the documentation already. The default output (when not specified in OutputKeys properties) is standalone="no".
DrClap
bogdotro wrote:
ejp wrote:
Is there any way to remove standalone attribute?
Why do you need to do that?
The XML document I'm editing is part of another application and the other XML documents doesn't have "standalone" attribute in XML declaration.
And why is this a problem?
843834
Well, from my point of view this should not be a problem but theese XMLs I am editing are generated by some Tibco application so I do not want to change its XML definition. Anyway ... does anyone knows how to do that? I tried with 1.6 and 1.5 but no positive results.
DrClap
So it's just an aesthetic problem then? You don't actually have to deal with non-compliant parsers which can't handle that output? I don't believe you will find that Tibco specifies that the standalone pseudo-attribute has to be absent... or does it?
jtahlborn
bogdotro wrote:
Martin_Honnen wrote:
I think the API allows you to specify whether you want standalone="yes" or standalone="no", see [http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE|http://java.sun.com/javase/6/docs/api/javax/xml/transform/OutputKeys.html#STANDALONE] but I am not aware of a way to ensure that no standalone pseudo attribute is output.
Thanks a lot. I read the documentation already. The default output (when not specified in OutputKeys properties) is standalone="no".
so, did you try specifying standalone="yes"?
DrClap
As far as I can see from the XML Recommendation, a document with standalone="no" is equivalent to a document which doesn't have a standalone attribute. So unless you're dealing with a broken parser which can't handle the standalone attribute, it's a waste of time to fuss about the existence of one.
843834
Hi guys, I solved the problem.
There is no need to set in transformer OutputKeys.standalone property. The solution was:
workDocument.setXmlStandalone(true);
before creating the DOMSource.
EJP
Surely you mean 'false'? You said you were trying to remove it.
843834
For sure "true". If you set it "false" you cannot control it to appear or not. So setXmlStandalone(true) on Document. In transformer if you want an output use OutputKeys with whatever "yes" or "no" you need. If you setXmlStandalone(false) on Document your output will be always standalone="no" no matter what you set (if you set) in Transformer.
1 - 12
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 20 2006
Added on Nov 21 2006
7 comments
12,574 views