XML document must have a top level element. Error

Hi, I am trying to generate an XML. Below is a sample code from my function. The function generates a 0 byte file which when I try to open gives me 'xml document must have a top level element' error. Any ideas?
FUNCTION generateXml(    p_1      VARCHAR2,
                         p_2      VARCHAR2,
                         p_3      VARCHAR2
                         ) RETURN CLOB
IS
    ctx dbms_xmlgen.ctxHandle;
    xml CLOB;
    v_sql varchar2(2000);
BEGIN
lv_sql:=' select * from v_dc where rownum =1';
ctx := dbms_xmlgen.newContext(v_sql);
dbms_xmlgen.setRowSetTag(ctx, 'CONTENT');
xml := dbms_xmlgen.getXML(ctx);
return xml;
END;
END generateXml;

I just need to understand if we can generate XML from a sql that has sub-queries in it.Should be no problem:
SQL> create or replace function generatexml (p_1 varchar2, p_2 varchar2, p_3 varchar2)
  return clob
is
  ctx     dbms_xmlgen.ctxhandle;
  xml     clob;
  v_sql   varchar2 (2000);
begin
  v_sql := ' select * from dept left outer join (select * from emp) emp on (emp.deptno = dept.deptno) where rownum = 1';
  ctx := dbms_xmlgen.newcontext (v_sql);
  dbms_xmlgen.setrowsettag (ctx, 'CONTENT');
  xml := dbms_xmlgen.getxml (ctx);
  dbms_xmlgen.closecontext (ctx);
  return xml;
end generatexml;
Function created.
SQL> select generatexml (null, null, null) xml from dual
XML                                                                            
<?xml version="1.0"?>                                                          
<CONTENT>                                                                      
<ROW>                                                                         
  <DEPTNO>10</DEPTNO>                                                          
  <DNAME>ACCOUNTING</DNAME>                                                    
  <LOC>NEW YORK</LOC>                                                          
  <EMPNO>7782</EMPNO>                                                          
  <ENAME>CLARK</ENAME>                                                         
  <JOB>MANAGER</JOB>                                                           
  <MGR>7839</MGR>                                                              
  <HIREDATE>09.06.81</HIREDATE>                                                
  <SAL>2450</SAL>                                                              
  <DEPTNO>10</DEPTNO>                                                          
</ROW>                                                                        
</CONTENT>                                                                     
1 row selected.Maybe your query simply doesn't return any rows?

Similar Messages

  • XML document must have a top level element. Error processing resource

    Hi,
    I am trying to send a XML file to a web browser from a servlet. I read the contents of the XML file into a string and I am sending it to the brower. Before I do this I set the 'Content-type' header of the httpResponse to "application/xml" . Embedded in the XML file is an xml-stylesheet elemetn indicating which *.xsl stylesheet to use to parse the XML content.
    I get the following error:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Now, if I take the stylesheet element out of the XML string I sent, then the browser stores the content into and *.xml file. I manually run the "xml-to-xsl " stylesheet mentioned in the error output above, and there is no problem, the xml content gets successfully transformed in a viewable HTML .
    It is only when I embed the "stylesheet" element into the XML content that I get this error.
    So the browser is receiveing valid XML.
    I am not sure if the above error is complaining about the XML content I send or the stylesshet .
    Does anyone have an idea of what am I doing wrong?
    For your information here are my servlet code and the XML file:
    servlet:-
    package webapps.testReplyingXML;
    import java.io.BufferedReader;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.FileReader;
    import java.util.Enumeration;
    import java.util.StringTokenizer;
    import java.io.PrintWriter;
    public class ReplyXML extends HttpServlet {
              static int transactionCount = 0;
              public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException ,IOException {
                   String Q_PARAM = "query";
                   String requestString = req.getQueryString();
                   for ( Enumeration en = req.getParameterNames() ; en.hasMoreElements() ; )
         String k = (String)en.nextElement() ;
         String[] x = req.getParameterValues(k) ;
         String s = null;
         String DATA_PARAM= "";
         for(int i = 0 ; i < x.length ; i++ )
         s = x[i] ;
         //System.out.println("s = " + s);
         if (k.equals("query")){
              try {
                             //res.setHeader("Content-Type", "application/xml");
                             //res.setHeader("Transfer-Encoding", "chunked");
                             //res.setHeader("Cache-Control", "no-cache");
                             //res.setHeader("Server", "Jetty/5.1.10");
                             //res.setHeader("Pragma", "no-cache");
                             //res.setHeader("X-Joseki-Server", "Joseki-3.0-dev");
                             res.setStatus(res.SC_OK);
                             StringBuffer fileData = new StringBuffer(1000);
                        BufferedReader reader = new BufferedReader(new FileReader("sparql_results.xml"));
                        char[] buf = new char[1024];
                        int numRead=0;
                        while((numRead=reader.read(buf)) != -1){
                        String readData = String.valueOf(buf, 0, numRead);
                        fileData.append(readData);
                        buf = new char[1024];
                        reader.close();
                        String xmlMsg= fileData.toString();
                        System.out.println("XMLMSG= " + xmlMsg);
                             PrintWriter outresp = res.getWriter();
                             outresp.println(xmlMsg);
                             outresp.close();
              }catch (Exception e) {
                   e.printStackTrace();
              public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
                   doGet(req, res);
    XML FILE:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="xml-to-html.xsl"?>
    <sparql
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:xs="http://www.w3.org/2001/XMLSchema#"
    xmlns="http://www.w3.org/2005/sparql-results#" >
    <head>
    <variable name="book"/>
    <variable name="title"/>
    </head>
    <results ordered="false" distinct="false">
    <result>
    <binding name="book">
    <uri>http://example.org/book/book6</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Half-Blood Prince</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book5</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Order of the Phoenix</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book4</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Goblet of Fire</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book3</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Prisoner Of Azkaban</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book2</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Chamber of Secrets</literal>
    </binding>
    </result>
    <result>
    <binding name="book">
    <uri>http://example.org/book/book1</uri>
    </binding>
    <binding name="title">
    <literal>Harry Potter and the Philosopher's Stone</literal>
    </binding>
    </result>
    </results>
    </sparql>

    Error processing resource http://127.0.0.1:8080/testReplyingXML/xml-to-html.xs...
    Well, if one more character had been deleted from that message then you would have a problem. But as it is, the error message says there's an error processing a resouce whose name ends with "xml-to-html.xs" followed by something. That would be the stylesheet if I'm not mistaken. Most likely the browser can't find it at the URL mentioned in the error message.

  • XML document must have a top level element

    Hi all,
    I have deployed my web services in 904. When I try to see the generated wsdl, I am seeing:
    XML document must have a top level element.
    in IE. Does anyone know why?
    Thanks.

    If you take a look under the location where the application was deployed, you should find a file with the name of your interface (or class) and the extension .wsdl.
    If there is already a file of that name, we do not try to re-generate it. If this file is not a valid XML file, then it will explain the error message you are seing.
    Another reason for this error is when the code generation fail silently. It can occurs in some rare case, when you have started oc4j using a JRE instead of JDK (without javac).
    Hope this helps,
    Eric

  • Error using SOAPRunner:  XML document must have top level element

    Hi all,...................xMII 11.5.3 b66
    I am attempting to consume a BLS transaction as a web service from a J2EE app. 
    When I test it with http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants I am getting an error message from the browser.  The BLS transaction works fine when called from a Query template.  What am I missing?
    The XML page cannot be displayed
    Cannot view XML input using style sheet.
    Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing
    resource 'http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetL...
    WSDL from WSDLGen...
    <?xml version="1.0" encoding="UTF-8" ?>
    - <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:s="http://www.w3.org/2001/XMLSchema"
    xmlns:s0="http://www.sap.com/xMII"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.sap.com/xMII">
    - <!--  Types
      -->
    - <types>
    - <s:schema elementFormDefault="qualified" targetNamespace="http://www.sap.com/xMII">
    - <s:complexType name="InputParams">
    - <s:sequence id="InputSequence">
      <s:element maxOccurs="1" minOccurs="0" name="RequestXML" type="s:Xml" />
      <s:element maxOccurs="1" minOccurs="0" name="RowCount" type="s:long" />
      <s:element maxOccurs="1" minOccurs="0" name="RowSkips" type="s:long" />
      <s:element maxOccurs="1" minOccurs="0" name="Table" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteRequest">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="LoginName" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="LoginPassword" type="s:string" />
      <s:element maxOccurs="1" minOccurs="0" name="InputParams" type="s0:InputParams" />
      </s:sequence>
      </s:complexType>
      </s:element>
    - <s:complexType name="Rowset">
    - <s:sequence>
      <s:element maxOccurs="unbounded" minOccurs="0" name="Row" type="s0:Row" />
      </s:sequence>
      <s:attribute name="Message" type="s:string" />
      </s:complexType>
    - <s:complexType name="Row">
    - <s:sequence id="RowSequence">
      <s:element maxOccurs="1" minOccurs="1" name="ErrorMessage" type="s:string" />
      <s:element maxOccurs="1" minOccurs="1" name="OutputXML" type="s:string" />
      </s:sequence>
      </s:complexType>
    - <s:element name="XacuteResponse">
    - <s:complexType>
    - <s:sequence>
      <s:element maxOccurs="1" minOccurs="0" name="Rowset" type="s0:Rowset" />
      </s:sequence>
      </s:complexType>
      </s:element>
      </s:schema>
      </types>
    - <!--  Messages
      -->
    - <message name="XacuteSoapIn">
      <part element="s0:XacuteRequest" name="parameters" />
      </message>
    - <message name="XacuteSoapOut">
      <part element="s0:XacuteResponse" name="parameters" />
      </message>
    - <!--  Ports
      -->
    - <portType name="XacuteWSSoap">
    - <operation name="Xacute">
      <input message="s0:XacuteSoapIn" />
      <output message="s0:XacuteSoapOut" />
      </operation>
      </portType>
    - <!--  Bindings
      -->
    - <binding name="XacuteWSSoap" type="s0:XacuteWSSoap">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="Xacute">
      <soap:operation soapAction="http://www.sap.com/xMII" style="document" />
    - <input>
      <soap:body use="literal" />
      </input>
    - <output>
      <soap:body use="literal" />
      </output>
      </operation>
      </binding>
    - <!--  Service mapping
      -->
    - <service name="XacuteWS">
    - <port binding="s0:XacuteWSSoap" name="XacuteWSSoap">
      <soap:address location="http://naholldo31020/Lighthammer/SOAPRunner/Amy/GetListOfPlants" />
      </port>
      </service>
      </definitions>

    Hi Amy,
    here is an example how you can call a WS via http GET:
    http://<server>/Lighthammer/Runner?Transaction=<path_to_your_TRX>&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
    Please note you do not need to use credentials in case you calling localhost.
    I think in your case this should be the right url:
    http://naholldo31020/Lighthammer/Runner?Transaction=Amy/GetListOfPlants&XacuteLoginName=YourAccount&XacuteLoginPassword=yoursecret&outputparameter=*
    Please change parameters for
    - XacuteLoginName
    - XacuteLoginPassword
    - outputparameter (you can specify * or one of your transaction output parameter)

  • Only one top level element is allowed in an XML document. Line 2, Position 2

    I get this error when I try to run an xsql query with a where clause:
    Only one top level element is allowed in an XML document. Line 2, Position 2
    <font size='-1' face='monospace'>XSQL-005: XSQL page is not well-formed.</font><BR>
    -^
    Here is the xsql query I tried to use.
    <?xml version="1.0"?>
    <xsql:query connection="xmlbook" xmlns:xsql="urn:oracle-xsql">
    select * from companytable where companynumber < 1000;
    </xsql:query>
    null

    You need to escape certain characters in order to make XML documents well formed. The problem in this case is the less than sign between companynumber and 1000. You should replace it with <
    I recommend reading a good XML book - "Building Oracle XML Applications" by Steve Muench, for instance.
    Brian

  • Poweshell script to parse a XML document to get all Leaf level nodes with Node names in CSV

    Hi Experts,
    I want to write a Powershell script to parse a XML document to get all Leaf level nodes with Node names in CSV
    <?xml version="1.0" encoding="UTF-8"?>
    <CATALOG>
       <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
       </CD>
    </CATALOG>
    Need to display this as
    CD_Tiltle, CD_ARTIST, CD_COUNTRY, CD_COMPANY, CD_PRICE, CD_YEAR
    Empire Burlesque, Bob Dylan,USA,Columbia,10.90,1985
    and so on..
    I do not want to hard code the tag names in the script.
    current example is 2 level hierarchy XML can be many level till 10 max I assume
    in that case the csv file field name will be like P1_P2_P3_NodeName as so on..
    Thanks in advance
    Prajesh

    Thankfully, I have writtenscript for ths same $node_name="";
    $node_value="";
    $reader = [system.Xml.XmlReader]::Create($xmlfile)
    while ($reader.Read())
    while ($reader.Read())
    if ($reader.IsStartElement())
    $node_name += "," + $reader.Name.ToString();
    if ($reader.Read())
    $node_value += "," + $reader.Value.Trim();
    Thanks and Regards, Prajesh Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • Problem to validate XML document if the type of root element is abstract

    I have the following XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <ct013/>
    It corresponds to the following XSD Schema:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xs:element name="ct013" type="foo"/>
         <xs:complexType abstract="true" name="foo"/>
         <xs:complexType name="fixedType">
              <xs:complexContent>
                   <xs:restriction base="foo"/>
              </xs:complexContent>
         </xs:complexType>
    </xs:schema>
    Please take attention to the fact that the type of root element of that BDD is abstract.
    XML Schema provides a mechanism to force substitution for a particular element or type. When an element or type is declared to be "abstract", it cannot be used in an instance document. When an element is declared to be abstract, a member of that element's substitution group must appear in the instance document. When an element's corresponding type definition is declared as abstract, all instances of that element must use xsi:type to indicate a derived type that is not abstract.
    Declaring an element as abstract requires the use of a substitution group. Declaring a type as abstract simply requires the use of a type derived from it (and identified by the xsi:type attribute) in the instance document.
    For more information of using abstract types please see chapter 4.7 Abstract Elements and Types of XML Schema Part 0: Primer Second (http://www.w3.org/TR/xmlschema-0/#abstract).
    In this case there is Oracle bug when I try to validate this XML document using Oracle XDK:
    String validate(String xml, String schema)
    throws XSDException, XMLParseException, SAXException, IOException
    System.setPropert("oracle.xml.parser.debugmode", "true");
    XSDValidator xsdValidator = new XSDValidator();
    XMLError xmlError = new XMLError();
    xmlError.setErrorHandler(new DocErrorHandler());
    XMLDocument xmlDocument = parseXMLDocument(xml);
    XMLDocument schemaXMLDocument = parseXMLDocument(schema);
    XMLSchema xmlSchema = (XMLSchema) new XSDBuilder().build(schemaXMLDocument, null);
    xsdValidator.setError(xmlError);
    xsdValidator.setSchema(xmlSchema);
    xsdValidator.validate(xmlDocument);
    return getValidationError(xsdValidator);
    I get the following error:
    Can't find resource for bundle oracle.xml.mesg.XMLResourceBundle, key XSD-2046.
    I tried to validate this XML document using two other libraries - XSD Schema Validator (http://apps.gotdotnet.com/xmltools/xsdvalidator/Default.aspx) and xsdvalid-29 (http://www.w3.org/XML/Schema#XSDValid). Both libraries pointed me on the error that the type of root element is abstract and it cannot be used for doing validation.
    I think that Oracle should return me explaining message but not to throw exception.
    Am I right? Is there really Oracle bug or I miss something?
    Any help, hits, advices would be gratfully apriciated.

    Define Element1 as follows:
    <xs:element name="Element1">
    <xs:complexType>
    <xs:complexContent>
    <xs:restriction base="xs:string"/>
    </xs:complexContent>
    </xs:complexType>
    </xs:element>
    Does the XML document get validated if the element is specified as
    <Element1></Element1>

  • Parse XML document which have xlink/xpointer inside

    dear friends,
    There are lots of topic talking about parse xml, validating xml with schema and so on, but no one or any book talking about parsing xml document which can parse document with link inside.
    According to Mr Meggison at http://www.megginson.com/Background/
    we can do it, but he is not expert with this thing.
    For example I have 3 XML document. My main XML document, let named it A.XML have XPointer inside and this element pointing to B.XML and C.XML using xpointer. how to parse A.XML and in the same time my SAX recognized this XPointer and parse also element inside B.XML and C.XML.
    I am really grateull for any helpful information from you.
    best regards

    I think you need to look for a SAX or DOM parser that undestands XPointers and knows how to follow them to additional content.
    I have used XSLT and specified external documents to it. It knows how to read a document and in effect make a nodeset which can be searched with the XPath capabilities of XSLT.
    It sounds like you wnat an <include file="xxx"/> capability and have the parser stop reading the current file, and start reading the second file.
    That works in Schemas, but I'm unaware of any way to do it with SAX or DOM in one pass.
    It would not be too hard to process the first file, say with DOM.
    After the Document is built, go find the <include> elements, read get the attribute needed, build a new Document and merge it into the original Document in place of the <include> element.
    Is this more what you want to do?
    Dave Patterson

  • How to have some top level menu items not be hyperlinks

    I have a navigation band where 5 of the 6 top level items need to NOT be hyperlinks but simply "category titles" that you mouseover to display the submenu - which are the links to web pages.
    An example of this is on the Amazon.com home page - the items under "Shop All Departments" has categories that are not clickable, but when you mouseover display the clickable submenu.
    Is it possible to customize some but not all of the top menu items and how?
    What do I need to modify in the CSS so that the top "category title" looks/behave the submenu (same font color/bgcolor changes) but no active hyperlink?

    Here is a link to my pagewhere I am testing the navigation. Currently there is only this one page and I have <a href="#"> for the links.
    The only menu item that should be clickable in the top level is "Contact"
    Everything in the second and third level (Events > Research >...) needs to be clickable
    Everything is working as I want except that "Research" needs to be clickable
    - and I would like to have the clickable item text be underline when in the hover state but I want to get the base navigation working first
    The closest matching code I found in the CSS is:
    #MenuBar1 li .MenuBarItemSubmenu,
    #MenuBar1 li ul li .MenuBarItemSubmenu {
        cursor: default;
    If I remove this, all the top level items become clickable. Let me know if there is other information you need. I super appreciate your help with this!

  • Only one top level element is allowed in an XML document. Error message

    Hi all, Am receiving above message when trying to view XML data generation. Have found little to no documentation on this particular message and thus far unable to research/guess my way to resolition. Any and all help will greatly appreciated. Thanks in advance for the help, harold

    I had been using MC Internet Explorer until this . Have compared this one to functioning XML viewable with MS Internet explorer. Below is code I am using trying to resolve this problem.
    <?xml version="1.0"?>
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="ecrtas"/>
    <tt:template>
    <tt:loop ref="ecrtas">
    <ImportInstructions>
    <ProjectSponsorInstruction>
      <Instruction mode="Add">
       <SponsorName tt:value-ref="SPONME"/>
       <SponsorNumber>
         <IdValue name="Sponsor Number"><tt:value ref="SPONSOR"/></IdValue>
         </SponsorNumber>
        <SponsorType tt:value-ref="SPONTYP"/>
      </Instruction>
    </ProjectSponsorInstruction>
    </ImportInstructions>
    </tt:loop>
    </tt:template>
    </tt:transform>
    Thank you again

  • SmartView Error XML top level element

    Hi Guys,
    hopefully someone of you can help me with this issue. On some PCs(not all, but same OS and configuration) we get this error message when we are trying to connect to essbase with Smart View 9.1.3.5.
    The funny thing is we tried to document the https traffic with the fiddler tool, this tool asked us to install its own untrusted certificate. After this installation, the connection works, even if we deinstall the certificates and fiddler.
    Can anyone imagine what happend?
    Is there a "normal" way to do the same, without installing a hacker tool?
    Best Regards,
    Carsten

    No idea? I know that this issue was reported already within this forum. But no one wrote his solution.

  • I just entered the podcast world. I am having trouble with my rss code. This is the error i recieve from itunes when trying to submit the url. Error Parsing Feed: invalid XML:Error line 64:XML documents must start and end within the same entity

    <?xml version="1.0"?>
    <rss xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd"
    Verson="2.0">
    <channel>
    <title>KPNC Regional Toxcast</title>
    <link>http://kpssctoxicology.org/edu.htm</link>
    <description>KP Toxcast test podcast</description>
    <webMaster>[email protected]</webMaster>
    <managingEditor>[email protected]</managingEditor>
    <pubDate>Tue, 27 Sep 2011 14:21:32 PST</pubDate>
    <category>Science & Medicine</category>
      <image>
       <url>http://kpssctoxicology.org/images/kp tox logo.jpg</url>
       <width>100</width>
       <height>100</height>
       <title>KPNC Regional Toxcast</title>
      </image>
    <copyright>Copyright 2011 Kaiser Permanente. All Rights Reserved.</copyright>
    <language>en-us</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <!-- iTunes specific namespace channel elements -->
    <itunes:subtitle>The Kaiser Permanente Northern California (KPNC) Regional Toxicology Service                  Podcast</itunes:subtitle>
    <itunes:summary>This is the podcast (toxcast) of the KPNC Regional Toxicology Service. Providing                 Kaiser and non-Kaiser physicians with anything toxworthy</itunes:summary>
    <itunes:owner>
       <itunes:email>[email protected]</itunes:email>
       <itunes:name>G. Patrick Daubert, MD</itunes:name>
    </itunes:owner>
    <itunes:author>G. Patrick Daubert, MD</itunes:author>
    <itunes:category text="Science & Medicine"></itunes:category>
    <itunes:link rel="image" type="video/jpeg" href="http://kpssctoxicology.org/images/kp tox                   logo.jpg">KPNC Toxcast</itunes:link>
    <itunes:explicit>no</itunes:explicit>
    <item>
       <title>KPNC Regional Toxcast Sample File</title>
       <link>http://kpssctoxicology.org/edu.htm</link>
       <comments>http://kpssctoxicology.org#comments</comments>
       <description>This is the podcast (toxcast) of the KPNC Regional Toxicology Service. Providing                Kaiser and non-Kaiser physicians with anything toxworthy</description>
       <guid isPermalink="false">1808@http://kpssctoxicology.org/Podcast/</guid>
       <pubDate>Tue, 27 Sep 2011 14:21:32 PST</pubDate>
       <category>Science & Medicine</category>
       <author>[email protected]</author>
       <enclosure url="http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3" length="367000"                   type="audio/mpeg" />
       <!-- RDF 1.0 specific namespace item attribute -->
       <content:encoded><![CDATA[<p><strong>Show Notes</strong></p>
       <p><a href="KPNC" _mce_href="http://kpssctoxicology.org/">KPNC">http://kpssctoxicology.org/">KPNC Regional Toxicology Service</a> is comprised of               Steve Offerman, MD; Michael Young, MD; Patrick Whitely; and G. Patrick Daubert, MD.               Awesome team!
       <p>Download <a href="KPNC" _mce_href="http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3">KPNC"> http://kpssctoxicology.org/podcast/kptoxcast_test_092711.mp3">KPNC Sample               Toxcast</a></p>]]</content:encoded>
       <!-- iTunes specific namespace channel elements -->
       <itunes:author>G. Patrick Daubert, MD</itunes:author>
       <itunes:subtitle>The Kaiser Permanente Northern California (KPNC) Regional Toxicology Service                    Podcast</itunes:subtitle>
       <itunes:summary>This is the podcast (toxcast) of the KPNC Regional Toxicology Service.                   Providing Kaiser and non-Kaiser physicians with anything
                       toxworthy </itunes:summary>
       <itunes:category text="Medicine"></itunes:category>
       <itunes:duration>00:00:18</itunes:duration>
       <itunes:explicit>no</itunes:explicit>
       <itunes:keywords>daubert,toxicology,toxcast</itunes:keywords>
      </item>
    </channel>
    </rss>

    Please when you have a query post the URL of your feed, not its contents.  Is this your feed? -
    http://kpssctoxicology.org/Podcast/kptoxcast_test_rss_092711.xml
    You have a number of cases of a string of spaces in titles: you also have one in a URL which will render that link invalid.
    But what is rendering the whole feed unreadable is your category link:
    <category>Science & Medicine</category>
    The presence of an ampersand ('&') by itself indicates the start of a code sequence, and in the absence of one, and its closing character, invalidates everything which follows, and thus the entire feed. You must replace the ampersand with the code
    &amp;
    Additionally, your opening lines should read thus:
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
    (with the 'purl.org' line if you like).
    If you are going to submit a feed to iTunes you might want to reconsider have 'test' in the filename: apart from the Store having a tendency to reject obvious test podcasts which may not reflect the finished version, you will be stuck with this URL and though you can change the feed URL it's an additional hassle.

  • Moving a document library to the top level subsite

    Hi community 
    As part of period of extensive user engagement, I want to move the development documents library to the main community site I have set up for the project board ( rather than project office site where it is now).  Now I don't do this very often - last
    time was in MOSS 2007 but I find myself scratching my head as to why are can't in the brave new world of SharePoint 2013. I tried in SPD 2013 and that didn't work either.
    I have checked that all the relevant documents are check in.  I wonder if it is a publishing feature restriction a bit like site templates????

    One way to do this (via the UI), is to save the document library as a list template (and include the contents of the list with the template). Then create a new list from the template in the root site (and afterwards, delete the old list).
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • XML document error - ELEARNING TRAINING MATERIAL

    Hi,
    Using SOLAR_LEARNING_MAP i was trying to create Training Material for a particular process (creating sales order as example). I attached a SAP Tutor also for that. The document is displaying from the tcode without any issue, but if i click OPEN BROWSER the following error is coming:
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'http://hostname.domain:8002/sap/bc/solman/defaul...
    Anybody tried this feature ?
    Thanks,
    Murali.

    Since no answer for long time, i am closing it now

Maybe you are looking for

  • SRKIM: R12: Technical Changes in Payments from 11i to R12

    PURPOSE R12 에서의 payment 관련 view 및 table의 변경된 내용에 대해 알아 보도록 한다. ANSWER 1. R11i 에서 사용되던 AP_CHECK_STOCKS_ACTIVE_V 해당 view 는 R11i 에서 development 가 coding 의 편의를 위해 추가 해 놓았던 view 로 AP_PAY_SINGLE_INVOICE_PKG package 에서만 참조 하도록 design 되어 있었다. active bank acc

  • Submit by Email - asks "as a link or an attachment"

    Have designed a form in Acrobat that we want our customers to fill out and return to us via email by clicking on a button. We have created a button that has the submit by email function. We have enabled reader rights on the document. However, when we

  • MHKIM:OIE:MAXIMUM DAYS TO SHOW CREDIT CARD TRANSACTIONS PROFILE

    제품: FIN_AP 작성날짜 : 2006-11-28 OIE:MAXIMUM DAYS TO SHOW CREDIT CARD TRANSACTIONS PROFILE ========================================================== PURPOSE 카드 데이타가 화면에 보이는 일수를 지정할려고 Profile 옵션에서 정했습니다. OIE:Maximum Days to Show Credit Card Transactions

  • Create a layout printing in Crystal Reports

    Hello friends I am new to using crystal reports, I have worked and made ​​reports in Crystal Reports What I want is to know how to layout and reports. I have a print layout I've done what I wanted manual is to make it crystal and can call it from a m

  • Migrate 12c OMS to new host

    I need to migrate existing 12c OMS host only from smaller resource host to large resource host with the same repository database. From all the docs I have understood to follow below steps: 1.Shutdown OMS on existing host 2.Install OMS on new host wit