Why ?xml version="1.0"?   in XHTML file

I am new to jsf and I am struggling with an xml tag in the beginning of all my xhtml files. It appears before the doctype;
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
This is no problem with Firefox or Opera, but it messes up my site in IE. It goes into a so called quirks mode and uses old standards for CSS. Is it any way I can remove this tag? As I understand it doesn't have to be there to produce valid xhtml.
I am extreamely happy for answers on this one.
Jeanette

Try using the XMLRoot function.
http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#sthref1566

Similar Messages

  • The wsdll file less of ?xml version="1.0"?

    Today I created webservice with NWDS. I successfully created the webservice and I can see it through http://localhost:50000/wsnavigator.  But when I viewed the wsdl of the service, I found the wsdll file less of <?xml version="1.0"?>. You konw, as an xml file it must has this header to prove it is an xml file. I used NW7.1 and followed the "Creating the HelloWorld Web Service" help document. It is on http://help.sap.com/saphelp_nwce10/helpdata/en/46/917a26cf75581ce10000000a1553f7/frameset.htm
    My question is why the WSDL less of <?xml version="1.0"?>. Is it a bug of NW, or I did something wrong when I created the WS?
    Thanks & Regards

    Hi Glen,
    Interesting Find.
    There are two very interesting things to note:
    1. The WSDL URL : http://localhost:50000/HelloService/HelloBean?wsdl
    Plz. note the "?" in the url. This kind of approach is mostly used to pass parametres to servlets.
    2. The Following is the HTTP Log of the Service call.
    POST /HelloService/HelloBean HTTP/1.1          // Pst method call confirms finding no 1
    Host: localhost:50000
    Content-Type: text/xml; charset=utf-8
    Connection: close
    Content-Length: 368
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><yq1:sayHello xmlns:yq1='http://sap.com/tutorial/helloworld/'><name>Gaurav Modgil</name></yq1:sayHello></SOAP-ENV:Body></SOAP-ENV:Envelope>
    It seems that the server is using some Java App/servlet to read the Application Program and produse the result as XML, So maybe the strict adherence to XML was not required in this case.
    Note the Last Line where the version information is also passed along with other parametres.
    The Result output is a generated XML given below.
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <SOAP-ENV:Body>
        <ns2:sayHelloResponse xmlns:ns2="http://sap.com/tutorial/helloworld/">
          <return>Hello, Gaurav Modgil.</return>
        </ns2:sayHelloResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    So my Conclusion is "There is no bug in NW7.1 :)....."
    Hope you Agree
    Thanks and regards,
    Gaurav
    Edited by: Gaurav Modgil on May 15, 2008 4:52 PM

  • Jsf generates ?xml version="1.0"? in xhtml source

    Hi,
    I have a simple xhtml page that looks like this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Insert title here</title>
    </head>
    <body>
         Here is the content
    </body>
    </html>when I open it in a browser and look at the source code it has generated this:'
    <?xml version="1.0"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    <html xmlns="http://www.w3.org/1999/xhtml"><head><title>Insert title here</title></head><body><!-- MYFACES JAVASCRIPT -->
    </body></html>Why the <?xml version="1.0"?> tag on top? IE expects a doctype and gets confused on how to render the page.
    I think this has to do with jsf, because if I look at the page with this URL it's ok:
    http://localhost:8080/pages/test.xhtml
    But with this URL it has inserted the <?xml version="1.0"?> tag on top.
    http://localhost:8080/pages/test.faces
    Also if I remove xmlns="http://www.w3.org/1999/xhtml then the xml tag is not generated, but I need this code to render the the page correctly.
    Anybody have an idea?
    Ann

    Bogi
    Had exactly the same issue with an external supplier who would not change the interface to remove this line. We created a java proxy which was called instead of the BPEL, then stripped out the invalid line and then called the BPEL. Not pretty, but worked.
    Pete

  • Why can't I open my RAW files in my trial version of Photoshop Lightroom 4?

    Why can't I open my RAW files in my trial version of Photoshop Lightroom 4? I use a Canon 5d mark II, which is supposed to be supported, and I checked for updates, but none were found.

    You cannot open files directly with Lr.
    You have to import them.
    Watch this tutorial video: http://tv.adobe.com/watch/getting-started-with-adobe-photoshop-lightroom-4/lightroom-4-imp orting-and-organizing-your-images/

  • Remove ?xml version="1.0" encoding="UTF-8"? from xml file

    I have generated an XML file using sax paraser. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.

      try
                            FileWriter fr = new FileWriter(new File(path, fileName));
                            Document docNode = docNodeMap.get(name);
                            XMLOutputter outputter = new XMLOutputter();
                            outputter.output(docNode, fr);
                            fr.close();
                    catch (IOException e)
                            e.printStackTrace();
                    }this the code generating xml file.

  • Delete xml version in xml file

    Hello,
    I have a strange thing to do. I need to delete xml version tag (<?xml version="1.0" encoding="utf-8" ?>) from en xml file. I use a receiver file adapter and I want to know how it's possible to delete this tag.
    I need to do that as receiving application collects xml messages and adds xml version in collected xml file.
    Thanks in advance,
    Cédric

    hi Udo,
    >>>and clever...
    so it should be you who proposed it:)
    BTW
    I'm not sure if with XSLT you won't have to
    do it in the commnication channel (and not in the interface mapping) - (the xslt mapping)
    but I cannot test it right now
    Regards,
    michal

  • Insert Encoding tag into xml file. ?xml version="1.0"?

    I am using oracle 10g.
    I am using dbms_xmlgen.getxml function to generate xml data for oracle tables. I use utl_file to write data back into xml file.
    Oracle is generating the file in the following manner...
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
    <RSLT_ID>1</RSLT_ID>
    </ROW>
    </ROWSET>
    I want to change the following xml header to have encoding information in it as follows...
    <?xml version="1.0" encoding = "AL32UTF8"?>
    How do I achieve that?
    Any suggestions?

    I want to change the following xml header to have encoding informationIn 10g I think you could use a xmlroot hack:
    SQL> select xmlroot(xmlelement(e, dummy), version '1.0" encoding="AL32UTF8') xml from dual
    XML                                                    
    <?xml version="1.0" encoding="AL32UTF8"?>              
    <E>X</E>                                               
    1 row selected.

  • How to change XML version in outbound XML file generated in XI

    Hi, I am getting following two records in the beginnning of my out bound XML file.
    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    Is there any control in XI to modify these two lines, in outbound files.
    Also, for inbound files, is there any way to process messages successfully, even if XML files from other systesm comes in different formats (xml version tag and nso tag lines)

    <?xml version="1.0" encoding="utf-8" ?>
    <ns0:MT_WPUUMS01_Salesdata xmlns:ns0="http://ws-sapretail-pos.com/salesdata">
    these two lines will be added when you create the  Message type name
    MT_WPUUMS01_Salesdata  is the message type name
    http://ws-sapretail-pos.com/salesdata"> is the name of your namespace......
    so if you want to chage these two lines in each XML build your MT and namespace accordingly.......
    even when you are importing the XML from o ther systems, you dnt have to worry about these tages as you import them in external definitation and select them only in message interface........should not be a problem if you import the XML from other systems
    whole conecpt is when you add these two lines it will convert the XSD to XML so when you have the XML form other system you only need to crer ate the WSDL out of it...
    let me know if i am not clear or if i understood your question wrong....

  • Why ' ?xml version="1.0" encoding="UTF-8"? ' is not appearing in XML ( 9.2)

    Hi,
    I am using following SQL query to generate output from XML
    select
    XMLTYPE
    ('<?xml version="1.0" encoding="UTF-8"?>'||
    xmlelement("bank",
    XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
    'http://www.XXXX.xsd' AS "xsi:nonamespaceSchemaLocation" ),
    xmlelement("Transaction",
    xmlforest(
    intraday "MessageCode",
    actnum "ToAccountNo",
    v00090 "ToBranchCode",
    v00230 "CurrencyCode",
    amt "Amount",
    trandt "TransactionDate",
    valuedt "ValueDate"),
    xmlelement("CustomerRefNo",
    xmlforest(
    utr_number "ReferenceNo1",
    ref1 "ReferenceNo2",
    ref2 "Custtype",
    r1 "SequenceNo"
    x1
    from
    It is working fine but '<?xml version="1.0" encoding="UTF-8"?>' it is not coming as header of output My output is coming like
    <bank xmlns:xsi="http://www.w3.org/2001/XMLSchema" xsi:nonamespaceSchemaLocation="http://www.XXXX.xsd">
    <Transaction>
    <MessageCode>0100</MessageCode>
    <ToAccountNo>012340123456</ToAccountNo>
    <ToBranchCode>01234</ToBranchCode>
    <CurrencyCode>INR</CurrencyCode>
    <Amount>11.00</Amount>
    <TransactionDate>2007-01-15T17:54:31</TransactionDate>
    <ValueDate>2007-01-15</ValueDate>
    Kindly help.
    PJP

    Try using the XMLRoot function.
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#sthref1566

  • How to suppress ?xml version = '1.0'? in XML file generation thru PLSQL?

    Hi,
    I am using
    1. dbms_xmlgen.newContext to get the information from table.
    2. After that I am using dbms_lob.createtemporary
    3. Then I am using dbms_xmlgen.getXml
    4. Finally I am using dbms_xmlgen.closecontext
    I am using the above four steps to repatedly taking records from different tables.
    My requirement is : Each and every time I am getting the <?xml version = '1.0'?>.
    How to suppress <?xml version = '1.0'?> ?
    Regards
    Srini

    Hi,
    Use DBMS_XMLGEN.getXMLType to retrieve the XML data into an XMLType variable.
    Then, with getClobVal method, you can convert it to CLOB :
    SQL> DECLARE
      2    v_xml XMLType;
      3    v_lob CLOB;
      4  BEGIN
      5    v_xml := dbms_xmlgen.getXMLType('select * from scott.emp where rownum = 1');
      6    v_lob := v_xml.getClobVal();
      7 
      8    dbms_output.put_line(v_lob);
      9  END;
    10  /
    <ROWSET>
    <ROW>
      <EMPNO>7369</EMPNO>
      <ENAME>SMITH</ENAME>
      <JOB>CLERK</JOB>
      <MGR>7902</MGR>
      <HIREDATE>17/12/80</HIREDATE>
      <SAL>800</SAL>
      <DEPTNO>20</DEPTNO>
    </ROW>
    </ROWSET>
    PL/SQL procedure successfully completed

  • Delete xml messagetype tag and xml versioning tag in target xml file

    Hi experts.
    i want to delete the xml version, starting (<MT_ZMPSSERRMSGMST_SEND>*and ending </MT_ZMPSSERRMSGMST_SEND> tags in below message.
    here i am bold the tags which i want to delete. please help me how to delete this.
    <?xml version="1.0"; encoding="UTF-8"?>
    <MT_ZMPSSERRMSGMST_SEND>
       <MESSAGE>
          <TABLENAME/>
          <ACTION/>
          <RECORD>
             <ERRORID/>
             <ERRCLASSID/>
             <SHORTDESC/>
             <DESCRIPTION/>
             <RESOLVE/>
          </RECORD>
       </MESSAGE>
    </MT_ZMPSSERRMSGMST_SEND>

    Hi Srinivas,
    You can delete the required content of the XML by editing the XML.
    Develop a custom adapter module and use the below code to edit the xml and deleting the highlighted content
    // to read the input XML
    strData = xmlData.getText();
    // get the length of <?xml version="1.0"; encoding="UTF-8"?> <MT_ZMPSSERRMSGMST_SEND>
    int strheaderlength = (strData.substring(0,strData.indexOf("<Message>")).length());
    // read the data from <MESSAGE>  to </MESSAGE>
    String payload=strData.substring(strheaderlength,strData.startIndexOf("</MT_ZMPSSERRMSGMST_SEND>"))
    // set the new payload to xmlData
    xmlData.setText(payload);
    appreciate if useful

  • Why is there such a diffrency in file size in PS cs6 for mac and cs6 pc version?

    What am i missing in the mac version?

    There's no difference in features between the Mac and PC version. I believe the file difference is simply due to the foundation of the application, and additional support for different OS versions.

  • Firefox runs Java applet if in an html file, not if in xhtml file. Google Chrome, and previos version of Firefox OK. Firefox is 13.0.1, Java is 1.6.0_12

    Applet is signed, but signature not verified. Firefox should ask permission.
    If applet is in an html file, permission is requested and all works OK.
    If applet is in an xhtml file, it is not recognised. Changing the file extension from xhtml to html restores correct working (but I do need to run these files as xhtml, so that does not solve the problem!)

    Your Java is very out of date, so please update to Java 7 update 5, and test again.
    Then, try Resetting Firefox. [[Reset Firefox – easily fix most problems]]

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
    On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
    Currently the file gets one record which matches exactly to the XML payload below.
    I want it to create a file that looks like this :
               CONCATENATED DATA 1
               CONCATENATED DATA 2
                012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
    here is the payload going thru XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
      <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
      <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
      <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
      </n0:FTZ_Concatenated_Row>
    thanks
    jay

    thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
    My payload coming into XI is :
            <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
    <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
    </n0:FTZ_Concatenated_Row>
    Here is the layout of my data type - I am using the same for input & output
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
       <xsd:complexType name="FTZ_Concatenated_Row">
          <xsd:sequence>
             <xsd:element name="FTZ_Row" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:attribute name="concatenated_data" type="xsd:string" />
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
    I set up my content convesion with :
      recordset structure   FTZ_Row
    FTZ_Row.fieldSeparator     #
    FTZ_Row.endSeparator     'nl'
    I am not sure why the following row looks like this ??
        <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
    any help would be appreciated.
    I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
    thanks

  • Why can't I see my iPhoto files in iMovie?

    [DISCLAIMER: My question is short, but my details are not. This is going to be a LONG read, but I wanted to make sure I provided all you helpful people with as much information as I could so that I could receive the best possible solution. So your patience and assistance is greatly appreciated!]
    In iMovie [version 4.0.1], when I click on the Photo button to import pictures into my project from iPhoto, the following error message appears: "No photos were found. To use this feature, you must first create a photo library using iPhoto version 2.0 or later."
    However... I AM using iPhoto [version 4.0.3]... with a HUGE Library containing 2000+ images and several created albums. These features work just fine within the confines of that program. They just aren't integrating with iMovie correctly. So... why can't I see my iPhoto files in iMovie?!!?!
    FIRST ATTEMPT:
    When I checked iMovie help, all it said was "You must open iPhoto at least one time on your computer to be able to access your iPhoto library from iMovie." I've obviously done this, having used the program plenty. Didn't work.
    SECOND ATTEMPT:
    When I checked this forum, the closest thread I could find that was similar to my problem suggested deleting the iMovie preferences file [com.apple.imovie3.plist]. It was later added that deleting the iPhoto preferences file [com.apple.iphoto.plist] as well had solved the problem immediately for that user. Tried it. Didn't work.
    THIRD ATTEMPT:
    When I checked the Apple Info site, their main solution was to try recreating the AlbumData.xml file which is used to populate the photo listing. Now this file can usually be found in the iPhoto library folder and I know how to recreate it. But THIS is where I think my main problem lies.
    Unlike most users, my iPhoto Library is actually located on an external hard drive under "my hard drive name"/Pictures/iPhoto Library. When I checked this folder for the AlbumData.xml file , it simply did not exist. So as a test, I created a new iPhoto Library also on my external hard drive but the AlbumData.xml file was not created with it. I opened up iMovie just to see if it was able to browse the iPhoto library properly. But it still didn't work.
    However, when I created a test iPhoto Library directly onto my Mac's hard drive, the AlbumData.xml file was indeed created with it. And when I opened up iMovie again... lo and behold, the iPhoto library finally appeared. It worked. But unfortunately, this solution still doesn't help me at all!
    Thing is, I don't have enough space on my Mac's direct hard drive to move my entire iPhoto Library there (where it works). That's why I am using an external hard drive to store (more space). So is there ANY way I can keep my iPhoto Library located on my external hard drive and have the library, albums and files recognized in the other iLife applications like iMovie???
    I feel I've tried everything, folks Could someone please please help me?!!?!
    [my specs are listed below if that helps any]
    Thanks in advance,
    a very disgruntled wizkid :\
    PowerBook G4 12" [1GHz, 256MB, 40GB]   Mac OS X (10.3.9)   GeForce FX Go5200 32MB, Matshita DVD-R UJ-816, Maxtor External Hard Drive [250GB, Firewire & USB 2.0]

    My main concern at this point is that the AlbumData.xml file is unable to create itself onto the External HD. When I view the file [that I created from my test iPhoto Library on my Mac's HD] in finder, it appears to be a Final Cut Pro type of extension. Is something wrong with my External Hard Drive in that regard? Is it just incapable of storing those file types??? Hmmm...
    As for the alias solution... instead of alias-ing the "Pictures" folder like you have, I've already tried creating an alias of the "iPhoto Library" folder on my External HD and placing it within the "Pictures" folder on my Mac. But when I tried to "Find Library" upon launching iPhoto, the prompt box would not allow me to choose the "iPhoto Library" alias I had created. So I couldn't open it.
    To be honest, I'm not exactly sure how to create an alias correctly... or perhaps I should try alias-ing the actual "Pictures" folder (like you have) rather than just the "iPhoto Library" folder, but I don't know how to do that correctly either.
    FYI... I am mounting my External HD before I launch iPhoto.
    Also, I have also tried dragging the AlbumData.xml file that I created from the test iPhoto Library into my active iPhoto Library folder residing on my External HD. It would appear to be in the folder, but as soon as I clicked somewhere else in finder and than back into the folder, it would disappear. Not sure how to "point to it" either.
    Karl, think maybe you could provide some hints on how to properly alias something or "point" to the AlbumData.xml file? I'd try it myself, but I don't wanna screw anything up by accident.
    PS. As stated in the post above, there's a possibility my External HD is no longer Mac OS formatted... at which point I throw my hands up into the air and scream!
    thanks for the tips thus far... everyone's so nice and helpful... I love it!
    -the kid
    PowerBook G4 12" [1GHz, 256MB, 40GB]   Mac OS X (10.3.9)   GeForce FX Go5200 32MB, Matshita DVD-R UJ-816, Maxtor External Hard Drive [250GB, Firewire & USB 2.0]

Maybe you are looking for

  • Help needed in seeing the material master.

    Hi all, How can i see the sales area info in a system. i.e. what material is assigned to what sales area, the mapping between the sales org., distr. channel, division and plants? I ask this because when I see some tabs/views in mm03, it asks me the s

  • Iphoto library folders

    Why is it when you mess around with the folder names & change them they dissapear from iphoto? I'd like to organize my iphoto library folders better then having to search multiple numbered folders but when I start renaming then it's no longer in ipho

  • Creative ZEN firmware V1.21.01e - loss of track from playlist upon p

    I find that on the 8GB ZEN here, occasionally playing a playlist causes one of the track entries within the playlist to disappear. E.g. there were three entries, but after play, there are only two . The loss can occur at any position. The track itsel

  • Looking for phone with the right PIM functionality

    Hello, newbie here. I'm looking for a phone that can synchronise with Outlook 2003. Specifically I want to keep the notes I add to a meeting in Outlook. These often include an agenda which I need to run the meeting, or a number for a conferencing fac

  • System Status & User Status

    PS Experts In Projects we do have System status and User status. I am using a report “RBSVCDOC” to grab the SYSTUM status changes ie.. I know when the status was set from CRE to REL etc..  But is there any report or a WAY where I can get the USER STA