Namespace lost when transforming using Xalan

Hi Java experts,
I'm trying to output a DOM object to a file. I used Xerces to create the DOM object:
     DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
     factory.setNamespaceAware(true);
     DocumentBuilder docBuilder = factory.newDocumentBuilder();
     docBuilder.setErrorHandler(new MyErrorHandler());
     this.userPrefsDocument = docBuilder.newDocument();
     this.userPrefsRootNode = this.userPrefsDocument.getDocumentElement();
     if (this.userPrefsRootNode == null) {
          this.userPrefsRootNode = this.userPrefsDocument.createElementNS(
               ROOTNAMESPACE, "ROOT");
          this.userPrefsDocument.appendChild(this.userPrefsRootNode);
     System.out.println(this.userPrefsRootNode.getNamespaceURI());
When I do this, the namespace is printed out (the same as ROOTNAMESPACE). Now, when I transform this using the following, the namespace is all lost in the output XML file:
     TransformerFactory factory = TransformerFactory.newInstance();
     Transformer transformer = factory.newTransformer();
     DOMSource source = new DOMSource(this.userPrefsDocument);
     StreamResult result = new StreamResult(SETTINGSLOCATION);
     transformer.transform(source, result);
What I get is the following:
<?xml version="1.0" encoding="UTF-8"?>
<ROOT/>
What I want to get is the following:
<?xml version="1.0" encoding="UTF-8"?>
<ROOT xmlns="http://www.blahblah.com/"/>
I know I could easily resolve this with a:
     this.userPrefsRootNode.setAttribute("xmlns", ROOTNAMESPACE);
but, since I'm setting the namespace on the root element, and enabling namespace for the parser, I thought this would kind of "automagically" get included when performing a transform(). Or, is this what everyone does to enable namespacing in XML? Thanks in advance!

OK, this is what I tried:
          try {
               DocumentBuilderFactory factory = DocumentBuilderFactory
                         .newInstance();
               factory.setNamespaceAware(true);
               DocumentBuilder docBuilder = factory.newDocumentBuilder();
               Document doc = docBuilder.newDocument();
               Element root = doc.getDocumentElement();
               root = doc.createElementNS("http://www.abcdefg.com",
                         "myapp:ROOT");
               doc.appendChild(root);
               System.out.println(root.getNamespaceURI());
               TransformerFactory tFactory = TransformerFactory.newInstance();
               Transformer transformer = tFactory.newTransformer();
               DOMSource source = new DOMSource(doc);
               StreamResult result = new StreamResult(new File(System
                         .getProperty("user.home")
                         + "/.myapp.xml"));
               transformer.transform(source, result);
          } catch (Exception e) {
               e.printStackTrace();
The result I get is:
<?xml version="1.0" encoding="UTF-8"?>
<myapp:ROOT/>
Which is still not what I'm really looking for... I guess it's just easier to move to dom4j rather than wrestling around with DOM :P

Similar Messages

  • The quality of the footage is lost when I use certain settings in Premiere Pro CS6

    Hello ,
       I filmed footage on a Canon XA10. They are MTS files and the codecs are 1440x 1080, frame rate 29.97, H264- MPEG- 4AVC, input nitrate 9854, and stream nitrate is 8971
    I need to submit them as application samples for a job. The job requires certain settings to be used.
    for HD 1080i  the application sample should be 960 x 540 @ 29.97
    they have other settings, like NTSC should be 320 x 243 @ 29.97
    With one file I filmed rain and in the original file it's clear and the quality it really good. I export using the settings H.264 and Apple TV, iPad, iPhone 4 or newer - 960 x 540 29.97
    under basic video settings is
        width 960
        height 540
    frame rate 29.97
    After exporting it the .mp4 file came out pixelated and the image quality is much lower.
    I had another problem with a file shot with the same camera and the same codecs  (MTS files and the codecs are 1440x 1080, frame rate 29.97 ect.)
    It was footage that I had to speed up, after exporting it came out shaky. When I export with the 1440 x 1080 settings it's not shaky, but I need it to be 960 x 540. I can't turn in shaky footage.
    What am I doing wrong and how can I get footage that is acceptable for submission?

    Here is an example of how much quality is lost..
    shooternzforumnotifierThe quality of the footage is lost when I use certain settings in Premiere Pro CS6Premiere Pro

  • Problems during Transformation using Xalan

    Hi,
    i'm using Xalan 2.6.0 to transform xml and xsl into HTML.
    This works fine but i get errors during Transformation but the HTML File is build.
    The Error is:
    [Error] version.xsl:9:80: Element type "xsl:stylesheet" must be declared.
    [Error] version.xsl:11:33: Element type "xsl:include" must be declared.
    [Error] version.xsl:20:3: Element type "xsl:output" must be declared.
    [Error] version.xsl:21:25: Element type "xsl:template" must be declared.
    [Error] version.xsl:22:7: Element type "html" must be declared.
    [Error] version.xsl:23:34: Element type "xsl:call-template" must be declared.
    [Error] version.xsl:24:79: Element type "xsl:with-param" must be declared.
    [Error] version.xsl:26:7: Element type "body" must be declared.
    [Error] version.xsl:27:83: Element type "table" must be declared.
    [Error] version.xsl:28:7: Element type "tr" must be declared.
    [Error] version.xsl:29:34: Element type "th" must be declared.
    [Error] version.xsl:32:64: Element type "table" must be declared.
    [Error] version.xsl:33:7: Element type "tr" must be declared.
    . and so on
    The header of the XSL File looks like:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE xsl:stylesheet [
    <!ENTITY amp "&#038;">
    <!ENTITY nbsp "&#160;">
    <!ENTITY uuml "&#252;">
    <!ENTITY Auml "&#196;">
    ]>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:include href="global.xsl"/>
    <!-- Template f�r root Element-->
    <xsl:output
    method="html"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    encoding="ISO-8859-1"
    version="4.01"
    indent="yes"
    />
    <xsl:template match="/">
    Can somebody help me with this problem ?
    Thanks.
    Jens

    When I remove the DOCTYPE it works but is this a Xalan Problem or is the using of a doctype declaration in a XSL Document generally forbidden ?
    Because without Doctype i cant use characters such as "�", "�", and so on.

  • How can I restore the favicons to my bookmark menu? They were lost when I used a program called Cookie.

    I like the favicons in the Bookmarks menu. I tried a program called Cookie to block Cookies selectively in FF. But the program broke my favicons in the menu. I uninstalled the program, tried a new download of FF, and deleted a couple of Pref files in my Library. No luck. Tried restoring from backup Bookmarks. No luck. What to do? I know there is an older program called Bookmark Favicon Changer, but it no longer works with FF above 23.
    Thanks,
    Mark

    Found the answer. I had to visit every site again to restore the favicons. I won't be using Cookie. I will go back to Cookie Monster, which does not work reliably. But it is better than nothing.
    Mark

  • ClassCastException when using Xalan-j in a servlet

    Hi,
    New to XSLT and Xalan...
    When I run a standalone version of a basic XSL transformation using Xalan-j 2.6.0, it all works as desired. Take a look at the following code snippet :
    ByteArrayOutputStream out;
    Document document;
    DocumentBuilder builder;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    File stylesheet = new File(context.getRealPath("/xml/duties2Email.xsl"));
    File datafile = new File(context.getRealPath("/xml/hospitals.xml"));
    StreamResult result;
    StreamSource stylesource;
    StreamSource datasource;
    String date = (new SimpleDateFormat("dd/MM")).format(new Date());
    Transformer transformer;
    TransformerFactory tFactory;
    out = new ByteArrayOutputStream(500);
    builder = factory.newDocumentBuilder();
    tFactory = TransformerFactory.newInstance();
    stylesource = new StreamSource(stylesheet);
    transformer = tFactory.newTransformer(stylesource);
    datasource = new StreamSource(datafile);
    result = new StreamResult(out);
    transformer.setParameter("date", date);
    transformer.transform(datasource, result);Unfortunately, when I try to run a servlet with exactly the same code, it throws a ClassCastException, please view the following stack trace:
    java.lang.ClassCastException: org.apache.xml.dtm.ref.DTMManagerDefault
    at org.apache.xml.dtm.DTMManager.newInstance(DTMManager.java:135)
    at org.apache.xpath.XPathContext.<init>(XPathContext.java:87)
    at org.apache.xalan.transformer.TransformerImpl.<init>(TransformerImpl.java:370)
    at org.apache.xalan.templates.StylesheetRoot.newTransformer(StylesheetRoot.java:159)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:674)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.sendEmails(Unknown Source)
    at lu.etat.protex.duties.servlet.DutiesControllerServlet.doGet(Unknown Source)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
    Does anybody know where the mistake could come from ?
    Thanks in advance,
    R&eacute;gis Kuckaertz

    Turned out that I had a version of xsltc.jar in my WEB-INF/lib. When I removed it the problem went away.So I'm sure it had to do with a library mismatch. I am using JBoss 4.1.
    -Rich

  • Onchange events when transforming select lists for EXTJS integration

    Hi,
    We have the folloiwng code that transforms select lists to extjs combo boxes
      var selectfield = Ext.query('select[class!="shuttle"][class!="multiselect"]');
      for (var r = 0; r < selectfield.length; r++) {
        //If there is an onchange event then don't convert as onchange is lost
        //This is used for cascading LOVs so we need to find a way of getting this to work
        if((selectfield[r].onchange == '' || selectfield[r].onchange == null) && ((r>0 && selectfield[r-1].onchange == null) || r==0) && selectfield[r].id != 'apexir_NUM_ROWS') {
          var newselect = new Ext.form.ComboBox({
            //hiddenId: selectfield[r].id,
            //hiddenName: selectfield[r].id,
            id: selectfield[r].id,
            typeAhead: true,
            triggerAction: 'all',
            transform: selectfield[r].id,
            width: selectfield[r].clientWidth+5,
            emptyText:'Please select...',
            forceSelection: true,
            maxHeight: 200,
            disabled: selectfield[r].disabled
      }The code does not convert select boxes that have onchange events as the code above seems to suggest they get lost when transforming. Does anyone know if that is the case, and if not how I amend the code to include the onchange events from the original select lists.
    Regards
    Paul

    Hi Vee,
    Thanks for pointing it out -- here at work the only version of IE I have is 6 and I assumed (as usually is the case) it was because of a bug in that specific version. However, I have the all-powerful, (allegedly) standards-compliant IE 9 at home and it behaved exactly the same way!
    So you cannot say this is due to an old, non-supported browser. Surely it fits in the bug category then? After all events should not be triggered at random...
    Thanks also for the suggestion to fix it. I didn't try it because, in the end, I found out that if I use onchange instead of onblur (in the text field) the problem doesn't occur! onblur would be better, but onchange works fine for what I need.
    Thanks
    Luis

  • My phone is lost.  When I use "find my phone",  it says that my phone is "offline".  It has a charged battery and I hadn't turned it off.

    My phone is lost.  When I use "find my phone",  it says that my phone is "offline".  It has a charged battery and I hadn't turned it off.  When I call my number it immediately goes to the voice mail.  Does that mean someone has found it and turned it off? What should I be doing.  I have used icloud to lock and send a message to my phone but if it is offline does that do anything?  HELP!!

    Welcome to the Apple Community.
    It may be that someone has turned it off or it may be that it has been lost in an area where there is no reception. The best thing that you can do, is contact your provider and let them know that you have lost your phone, and change your iCloud password at My Apple ID

  • Language Monitors and Bi-directional Printing: What functionality is lost when disabling? What else uses them?

    Server OS: Windows 2008 R2 Standard
    Function: Primary Domain Controller and Print Server
    Clients: All are running Windows 7 Pro 64-Bit SP1
    We're considering disabling the HP Universal Print Driver Language Monitor and in-turn Bi-directional Printing due to potential server spooler instabilities, before we do this the IT Manager wants to be sure:
    1. What functionality is lost when disabling Language Monitors and Bi-directional Printing?
    2. What else uses Language Monitors and Bi-directional Printing them? In other words what may break?
    3. What specifically do Language Monitors and Bi-directional Printing provide?
    Thanks

    Alan (or anyone else):
    We're testing disabling the language monitor/bidirectional printing for one particular printer.
    Can I confirm this is the procedure for disabling a particular print queue's Language Monitor and Bidirectional Printing? -
    1. Locate the relevant Language Monitor registry key in: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
    Either delete or rename the registry key (so it cannot be found), in my case: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors\HPMLM121
    I renamed it to have the date at the end (HPMLM121_2015-01-29).
    2. Inside the above registry key is a DLL file mentioned under the DRIVER reference. In my case it's called: hpmlm121.dll.
    I searched the entire C drive on the server and this was only found in C:\Windows\System32. I moved this elsewhere out of C:\Windows and also renamed the DLL too.
    Therefore preventing Windows from being able to find/use it.
    3. I then unticked Bidirectional Printing Support in the Printer Properties Ports tab of the printer in question.
    4. Lastly either restart the server (or stop/restart the Spooler service).
    I've done all this and the HP Print Notifications for Replace Cartridge etc... are still active.
    Any idea why this is?
    Thanks

  • My computer has crushed so i have to download I tunes again,and maybe all my information will be lost.but i had I cloud and last time when i used to i tunes they have asked me to do I cloud so i did,so now when i will again setup my computer and I tunes

    my computer has crushed so i have to download I tunes again,and maybe all my information will be lost.but i had I cloud and last time when i used to i tunes they have asked me to do I cloud so i did,so now when i will again setup my computer and I tunes will i get all my Contacts and Inofrmations cause i had i have an account on I cloud

    If you used icloud for your contacts and calendar then you should have no problem. They will all come back on the phone once you put the icloud user name and password in. Itunes does not store the contact information except in a backup file and if you were backing up using icloud you can use that backup to restore with.

  • Can anyone help me with this: my daughter lost her unlimited data plan when I used her upgrade.

    My daughter lost her unlimited data plan when I used her upgrade to buy a new phone (upgrade transfer). She didn't upgrade her phone, I did. No one told us this was going to happen and the first I knew of it was when I got a letter in the mail telling me of the change. We went back to the store where we bought the new phone and they put in 2 requests for her unlimited plan to be reinstated, but both were denied. They then told us to call Customer Care, but Customer Care doesn't care. Does anyone else have any experience of this and know of any recourse we may have? Thanks for any help you can give me.

    tikibar1 wrote:
    She didn't upgrade her phone, but you did by using her upgrade.  It's her contract that then gets extended, not yours.  And, unfortunately, as of last June, whenever you sign a new two-year contract, you lose your unlimited data.  You can try to reverse the upgrade and get the unlimited data restored if within 30 14 days, but since Verizon has discontinued the unlimited data plans for everyone, I'm not sure how successful you'll be.
    For what it's worth, to keep unlimited data (at least for now; rumor has it that it may be completely gone next summer), you don't want to sign a new two-year contract, but pay full retail price, get the phone elsewhere (like ebay), or use an upgrade from a phone that's on a tiered data plan.
    It's 14 days, tiki.  Otherwise they are out of luck.

  • Network is lost when using GPS on 3GS

    Network is lost when using GPS on 3GS.
    ver. 5.1.1 (9В206)
    model MC637RR
    SN 86223J1DEDG
    05.16.05.

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • When i used windows 8 i lost touch function

    I have brought the woundrful Hp touch smar 600 pc with windows 7  as default os but when i used windows 8  the screen lost touch function and i have heared thatregaing this function could be done by reinstaling this from the hp official site using the id number of the pc but i coud not dothis properly ?

    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03488148&cc=us&dlc=en&lc=en
    Touch screen doesn't work after upgrading to Windows 8
    Follow the steps below if you upgraded to Windows 8 from a previous Windows operating system and your touch screen stopped working.
    Activate Windows 8 and install updates:
    Press the Windows  + W keys, type Activate Windows into the Search field, and then click the icon that appears in the upper left corner of the screen.
    In PC Settings, click on Activate Windows , wait for your computer to connect to Microsoft, and then follow the onscreen instructions.
    Restart the computer.
    Press the Windows  + X keys, and select Control Panel from the list.
    In the upper right corner of Control Panel, select Large icons from the View by drop-down.
    Click Windows Update .
    Install touch and/or graphics driver updates.
    Restart the computer. If the touch screen still does not work, go on to the next step.
    Check for driver updates at hp.com:
    Go to hp.com (http://www8.hp.com/us/en/support-drivers.html) and click Drivers & Software .
    In the search field, enter your product name or number, and then click Next .
    Select your operating systems from the drop-down, and then click Next .
    NOTE:For more information about your operating system and system type (32 or 64 bit), press the Windows  + X keys, and select System from the list.
    If there are any available graphics drivers, click the plus sign next to Driver - Graphics, and then click the driver name.
    In the Download options and information window, click Download .
    Follow the onscreen directions to download the driver.
    Restart the computer. If the touch screen still does not work, go to the next step.
    Install an older touchscreen driver from the Windows Update Catalog:
    Go to Windows Update catalog (in English).
    If prompted to install a 'Microsoft Update Catalog' add-on, install the add-on.
    Type NextWindow in the search field and press Enter .
    From the list of search results, find the driver named "NextWindow - Input - NextWindow Voltron Touch Screen", version 3.1.6.0, and made for Products Windows 7, Windows Consumer Preview (size 27.6 MB).
    Click the Add button next to the name of the driver.
    Click View Basket in the upper right.
    Click the Download button in the upper right.
    Browse to a path on your computer; such as Desktop.
    NOTE: If a User Account Control message opens, click Yes .
    When the download is complete, click Close .
    Browse to the path chosen earlier and open the folder named "NextWindow - Input - NextWindow Voltron Touch Screen".
    Double-click the .cab file inside this folder to view the contents of the cab file.
    Single-click the first file and then press the keys CTRL + A to select all the files.
    Right-click on any selected file and select Copy .
    Click the Back arrow in the upper left of the window to go back to the folder named "NextWindow - Input - NextWindow Voltron Touch Screen". The only file in this folder should be the one cab file that was downloaded earlier.
    Right-click inside the blank or white portion of this window and select Paste . All of the files from the .cab file are extracted into this folder.
    Double-click the file named NVWVoltronSetupLiteDesktop_3.1.6.0.f.exe .
    NOTE: If a User Account Control message opens, click Yes .
    The driver Setup Wizard opens. Click Next to start the installation. Read and respond to the Windows to install the driver.
    After the driver is installed, restart the computer. If the touch screen still does not work, go to the next step.
    Disable the graphics card:
    Press the Windows  + X keys, and select Device Manager from the list.
    In Device Manager, click the triangle  next to Display adapters to expand the list.
    Right-click on the graphics card, and then select Disable .
    On the Window that reads "Disabling this device will cause it to stop functioning. Do you really want to disable it?", click Yes .
    Restart the computer. If the touch screen still does not work, the computer should be serviced.
    ... an HP employee expressing his own opinion.
    Please post rather than send me a Message. It's good for the community and I might not be able to get back quickly. - Thank you.

  • How to insert namespace prefix when using xmltype

    Hi,
    I have registered the following XML schema into XMLDB.
    <s:schema xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xmlns:m="https://suora.tietopalvelut.com/ATJkysely/" targetNamespace="https://suora.tietopalvelut.com/ATJkysely/" elementFormDefault="qualified" xdb:schemaURL="http://www.fennia.fi/Hae121.xsd">
         <s:element name="Hae" type="m:Hae121" xdb:SQLType="Hae121"/>
         <s:complexType name="Hae121" xdb:SQLType="Hae121" xdb:maintainDOM="false">
              <s:sequence>
                   <s:element name="kayttajatunnus" type="m:Kayttajatunnus" minOccurs="0" xdb:SQLName="kayttajatunnus" xdb:SQLType="Kayttajatunnus121" xdb:SQLInline="true"/>
                   <s:element name="palvelutunnus" type="s:string" minOccurs="0" xdb:SQLName="palvelutunnus" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="kyselylaji" type="s:string" minOccurs="0" xdb:SQLName="kyselylaji" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="rekisteritunnus" type="s:string" minOccurs="0" xdb:SQLName="rekisteritunnus" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="laji" type="s:string" minOccurs="0" xdb:SQLName="laji" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="ajoneuvoluokka" type="s:string" minOccurs="0" xdb:SQLName="ajoneuvoluokka" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="valmistenumero" type="s:string" minOccurs="0" xdb:SQLName="valmistenumero" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="jarjestelmatunnus" type="s:string" minOccurs="0" xdb:SQLName="jarjestelmatunnus" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
              </s:sequence>
         </s:complexType>
         <s:complexType name="Kayttajatunnus" xdb:SQLType="Kayttajatunnus121" xdb:maintainDOM="false">
              <s:sequence>
                   <s:element name="username" type="s:string" minOccurs="0" xdb:SQLName="username" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="password" type="s:string" minOccurs="0" xdb:SQLName="password" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="statcode" type="s:string" minOccurs="0" xdb:SQLName="statcode" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="enduserid" type="s:string" minOccurs="0" xdb:SQLName="enduserid" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="timestamp" type="s:string" minOccurs="0" xdb:SQLName="timestamp" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="checksum" type="s:string" minOccurs="0" xdb:SQLName="checksum" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
                   <s:element name="ticket" type="s:string" minOccurs="0" xdb:SQLName="ticket" xdb:SQLType="VARCHAR2" xdb:SQLInline="true"/>
              </s:sequence>
         </s:complexType>
    </s:schema>
    In PL/SQL I populate the object types, which have been automatically generated.
    Then I create an XMLTYPE object using the following code:
    akeobject "Hae121";
    v_schema VARCHAR2 (1000) := 'http://www.fennia.fi/Hae121.xsd';
    v_schema_element VARCHAR2 (100) := 'Hae';
    --akeobject populated here
    v_xml_out := XMLTYPE (akeobject, v_schema, v_schema_element);
    DBMS_OUTPUT.put_line ('v_xml_out:' || v_xml_out.getstringval ()) shows the following:
    <Hae xmlns="https://suora.tietopalvelut.com/ATJkysely/">
    <kayttajatunnus>
    <username>kayttaja</username>
    <password>salasana</password>
    <statcode>tiltunn</statcode>
    <enduserid>loppukay</enduserid>
    <timestamp>20060822100700</timestamp>
    <checksum>E77B30394D23F83D422A63027F8F63A8</checksum>
    <ticket>nyckkeli</ticket>
    </kayttajatunnus>
    <palvelutunnus>PALVELUTUNNUS</palvelutunnus>
    <kyselylaji>41</kyselylaji>
    <rekisteritunnus>BRF-444</rekisteritunnus>
    <ajoneuvoluokka>1</ajoneuvoluokka>
    <valmistenumero>BBBB</valmistenumero>
    <jarjestelmatunnus>AAAA</jarjestelmatunnus>
    </Hae>
    There are no namespace prefixes.
    When I create a model XML file using XMLSpy, I get the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XMLSpy v2007 rel. 3 sp1 (http://www.altova.com)-->
    <m:Hae xmlns:m="https://suora.tietopalvelut.com/ATJkysely/">
         <m:kayttajatunnus>
              <m:username>String</m:username>
              <m:password>String</m:password>
              <m:statcode>String</m:statcode>
              <m:enduserid>String</m:enduserid>
              <m:timestamp>String</m:timestamp>
              <m:checksum>String</m:checksum>
              <m:ticket>String</m:ticket>
         </m:kayttajatunnus>
         <m:palvelutunnus>String</m:palvelutunnus>
         <m:kyselylaji>String</m:kyselylaji>
         <m:rekisteritunnus>String</m:rekisteritunnus>
         <m:laji>String</m:laji>
         <m:ajoneuvoluokka>String</m:ajoneuvoluokka>
         <m:valmistenumero>String</m:valmistenumero>
         <m:jarjestelmatunnus>String</m:jarjestelmatunnus>
    </m:Hae>
    What am I doing wrong because there are no namespace prefixes when using XMLTYPE in PL/SQL?
    My environment is 10g 10.2.0.2.
    Thanks,
    Veli-Matti

    Hi ,
    >>>i removed namespace from source and target Message Type of message mapping but still getting "ns3" prefix. My requirement is to just have this ns3 removed.
    Which process you've used for removing namespace...java/xslt mapping. In case of java mapping plese remove ns3 while creating the target element. Please go through the below blog it may help you.
    Quick Tips: Dealing with Namespaces in XI/PI
    Regards,
    Priyanka

  • PS crash when I use transform in animation mode!

    PS crash and close itself often when I use free transform tool(ctrl+t) on some selected area of an image. It happens in animation mode when Animation palette is shown (convert to frame animation I choose) and I working on certain frame.
    What it is and how to fix it? PS cs3 don't shown any logs. here's mu sys info:
    Adobe Photoshop Version: 10.0.1 (10.0.1x20071012 [20071012.r.1644 2007/10/12:09:30:00 cutoff; r branch])
    Operating System: Mac OS 10.6.2
    System architecture: Intel CPU Family:6, Model:23, Stepping:10 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 2
    Processor speed: 2000 MHz
    Built-in memory: 2048 MB
    Free memory: 1329 MB
    Memory available to Photoshop: 1963 MB
    Memory used by Photoshop: 90 %
    Image cache levels: 6
    Serial number: 13260110556961214741
    Application folder: Macintosh HD:Applications:Adobe Photoshop CS3:
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
      Macintosh HD, 148.9G, 67.3G free
    Primary Plug-ins folder: Macintosh HD:Applications:Adobe Photoshop CS3:Plug-Ins:
    Additional Plug-ins folder: not set
    Thanx.

    I'm having the same problem here, with my PS CS3.
    This isn't exactly a solution, but at least PS doesn't keep crashing: whenever you have to Free Transform something in Animation Mode, close the Animation Palette, then you can bring it back after transforming.
    I believe the problem is not in the Free Transform itself, but with the thumbnails in Animation Palette. Maybe it tries to update the thumbnail during Transform.
    It has another bug, by the way: if you change the size of the frames thumbnail, it goes back to medium size after you restart PS.
    Hope this help you guys spend less time re-drawing animations.

  • Error : when i use transform

    The problem is still coming after doing an update to Oracle9i 9.2.0.2.0
    When i use transform method, It logs me out. if i do same transform using xmlspy it works.
    html := srcXml.transform(xslFile);
    return html.getclobval();
    where
    srcXml : select extract(value(x), xPath) into srcXml from tbl_main_xml x;
    xslFile : select xsldoc into xslFile from tbl_xsl
    where filename = xslFileName;
    How to open a tar to submit my xml and xsl files.
    Regards
    Error which is coming :
    SQL> select gethtml from dual;
    ERROR:
    ORA-03113: end-of-file on communication channel
    no rows selected

    Hi Mark
    I have opened a tar and submitted my xml and xsl files.
    TAR 2903047.995
    Can you pls have a look.
    Regards

Maybe you are looking for

  • HT203167 Music no longer showing in 'purchased'

    Some songs on a previously purchased album are cutting off mid-song.  I want to download the album again but it no longer shows in 'Store>Purchased'.  I checked my purchase history and it shows there... odd? I checked the forums and troubleshooted wi

  • Files Created by external computer are read only on file server!

    Not an indesign question but have searched and searched but can't find an answer, hoping someone in here has had same problem and know if it can be fixed. Systems: MacPro running snow lepoard as the file server iMac reading and writing files to the M

  • Receiver File Adapter - Tab delimited Text file

    I am using receiver file adapter to convert message created by ABAP PROXY to convert tab delimited text file format. XML message is in following format. - <DT_R3_ROLES_OUTBOUND_REC>   <LIST_CATEGORY>SAP_HR</LIST_CATEGORY>   <USRID>MRUDULAP</USRID>  

  • The Quicktime Logo is Torn

    I can't seem to get the Quicktime to play with my Opera browser. I have problems and it just shows the Logo as "Torn." Not sure what this means but could someone help me with this?

  • Offline Approval Problem-format of email in lotus notes is not poplulationg

    Hi Gurus,   I am working on a support project now i have a problem in Offline approval . the email in the approver  inbox is not populating the correct values and i checked in the workflow side in SWI1 it is populating correct values but in the lotus