Invalid xml declaration

Hi all,
Seem to be having a little difficulty. When I try and load my xml file into MSWord using the template builder I get this error:
Invalid xml declaration: Line 1, position 5, file pos 4, source: <?xml version="1.0"?> url that then points to my file.
I am at a total loss as to why this is? I have declared the following. My xml version is declared in line 1.
BEGIN
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0"?>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<PERDUMMY1>');
FOR v_employee IN csr_employee
LOOP
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_EMP_NAME>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Last_update_date>' || v_employee.effective_start_date      ||'</Last_update_date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<ID>'           || v_employee.ID                     ||'</ID>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<TITLE>'           || v_employee.TITLE                ||'</TITLE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Marital_status>'      || v_employee.Marital_status      ||'</Marital_status>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<full_name>'      || v_employee.full_name                ||'</full_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<last_name>'      || v_employee.last_name                ||'</last_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<first_name>'      || v_employee.first_name                ||'</first_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Age>'           || v_employee.Age                    ||'</Age>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<First_Registration>' || v_employee.First_Registration           ||'</First_Registration>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Date_Of_Birth>'      || v_employee.Date_Of_Birth                ||'</Date_Of_Birth>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Gender>'           || v_employee.Gender                ||'</Gender>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Race>'           || v_employee.Race                     ||'</Race>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Personal_Address>'     || replace(v_employee.Personal_Address,'&','and')      ||'</Personal_Address>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Suburb>' || v_employee.Suburb ||'</Suburb>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Province>'      || replace(v_employee.Province,'&','and')           ||'</Province>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Postal_Code>'      || v_employee.Postal_Code               ||'</Postal_Code>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<City_Name>'      || v_employee.City_Name                ||'</City_Name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Home_Phone_Number>' || v_employee.Home_Phone_Number          ||'</Home_Phone_Number>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Cell_Phone_Number>' || v_employee.Cell_Phone_Number          ||'</Cell_Phone_Number>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Batch_Number>'      || v_employee.Batch_Number                ||'</Batch_Number>');
FOR v_prev_emp IN cur_prev_emp (v_employee.person_id)
LOOP
/*For each child record create a group tag <G_PREV_EMP> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_PREV_EMP>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<employer_name>' || replace(v_prev_emp.employer_name,'&','and')           || '</employer_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<job_name>' || replace(v_prev_emp.job_name,'&','and')          || '</job_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<start_date>' || v_prev_emp.start_date || '</start_date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<end_date>' || v_prev_emp.end_date          || '</end_date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Grp>' || v_prev_emp.Grp      || '</Grp>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LEAV_REAS>' || replace(v_prev_emp.LEAV_REAS,'&','and')           || '</LEAV_REAS>');
/*Close the group tag </G_NO_CHILD> at the end of child record*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_PREV_EMP>');
END LOOP;
FOR v_prev_Qual IN cur_prev_Qual (v_employee.person_id)
LOOP
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_PREV_qual>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Qual_Type>' || replace(v_prev_qual.Qual_Type,'&','and') || '</Qual_Type>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Qual_date>' || replace(v_prev_qual.Qual_date     ,'&','and')     || '</Qual_date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<GRADE_ATTAINED>'|| replace(v_prev_qual.GRADE_ATTAINED ,'&','and') || '</GRADE_ATTAINED>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<school_name>' || replace(v_prev_qual.school_name,'&','and')     || '</school_name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_PREV_qual>');
END LOOP;
FOR v_train IN cur_train (v_employee.person_id)
LOOP
/*For each child record create a group tag <G_TRAIN> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_train>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Course_Name>' || replace(v_train.Course_Name,'&','and') || '</Course_Name>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Course_Desc>' || replace(v_train.Course_Desc,'&','and')          || '</Course_Desc>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Start_date>' || replace(v_train.Start_date,'&','and') || '</Start_date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<END_DATE>' || replace(v_train.END_DATE,'&','and')          || '</END_DATE >');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_train>');
END LOOP;
FOR v_MED IN cur_med (v_employee.person_id)
LOOP
/*For each child record create a group tag <G_MED> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_MED>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Test>'           || v_MED.Test               || '</Test>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<CONSULTATION_DATE>' || v_MED.CONSULTATION_DATE           || '</CONSULTATION_DATE>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Result>'           || v_MED.Result          || '</Result>');
/*Close the group tag </G_NO_CHILD> at the end of child record*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_MED>');
END LOOP;
FOR v_ind IN cur_ind (v_employee.person_id)
LOOP
/*For each child record create a group tag <G_IND> at the start*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_IND>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Induction_Date>'      || v_IND.Induction_Date               || '</Induction_Date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<Status>'      || v_IND.Status                     || '</Status>');
/*Close the group tag </G_NO_CHILD> at the end of child record*/
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_IND>');
END LOOP;
FOR v_first IN cur_first (v_employee.person_id)
LOOP
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<G_first>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<first_Date>'      || v_first.first_Date               || '</first_Date>');
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_first>');
END LOOP;
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</G_EMP_NAME>');
END LOOP;
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</PERDUMMY1>');
I would be most grateful if anyone out there has any ideas?

OPen your xml in IE, it will complain about the same thing.
The xml formed could be wrong.
can you paste the xml created here >?

Similar Messages

  • Invalid xml declaration. in genXML from

    I ran genXML.jsp on Tomcat 4.0.3 from the Sun Tutorial "Development with JSP and XML -- Part II: JSP with XML in mind". I got the following error on my IE browser -
    Invalid xml declaration. Line 3, Position 3
    <?xml version="1.0" encoding="UTF-8"?>
    --^
    Any Ideas what the problem is? The code was copied and pasted directly from the on-line article.
    THX,
    Kent

    If that is on line 3, then the problem would be with whatever precedes it on lines 1 and 2.

  • Invalid xml decl while creating template for a report created in BIP

    Hi
    I am in the process developing a report - extracting data from an xmltype column. I defined my query - as simple as (for now):
    select xmlcol.getclobval() from table1
    The way information is stored in each xmltype column is with the xml declaration - something like
    <?xml version="1.0" encoding="UTF-8"?>
    <rootelem>
    <a>adjaghd</a>
    <b>adjaghd</b>
    <c>adjaghd</c>
    </rootelem>
    So when I get the output, I have the declaration (...xml version...)for each row returned. I am assuming that being the reason when I try to create the template in work for this report, it given me Invalid XML Decl. How can I extract from xmltype column without getting the header information for each row?

    Anyone can answer this question please?

  • An invalid XML character (Unicode: 0x19) was found in the CDATA section.

    First my declaration in the xml file was:
    <?xml version="1.0" encoding="UTF-8"?>
    Then since the error(Exception:java.io.UTFDataFormatException: invalid byte 2 of 2-byte UTF-8 sequence (0x3f)) resulted for "�", I changed it to:
    "<?xml version="1.0" encoding="ISO-8859-1"?>"
    Now for some cases I have an error:
    Exception:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x19) was found in the CDATA section.
    What do I do NOW?
    What wrong have I been doing in the past?
    How could I make sure that no such encoding errors result?
    Thanking you in anticipation,
    Cheers

    Possibly got some invalid non-printing character in there somewhere... possibly as a result of conversion between platforms etc. Or you are parsing a file that was encoded using a totally different character set to the ones you're attempting to read it with. What originally created the XML file you are trying to parse?

  • RSS feed: Invalid XML

    Hello everyone.
    I want to submit my podcast to iTunes, but I have a problem with the XML file.
    Feed Validator said to me:
    Sorry
    This feed does not validate.
    line 1, column 0: XML parsing error: <unknown>:1:0: not well-formed (invalid token) [help]{\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\fswiss\fprq2\fcharset ...
    Source: http://*********/RSS.xml
    {\rtf1\ansi\ansicpg1252\deff0\deflang1036{\fonttbl{\f0\fswiss\fprq2\fcharset0 Verdana;}{\f1\fnil\fcharset0 Calibri;}}
    {\colortbl ;\red68\green68\blue68;}
    For more details, here is the XML file.
    I really hope you guys well be able to help me.

    You appear to have created your feed in a word processing program: it's full of formatting codes such as \par, and the opening couple of lines are full of garbage: the required xml declaration is missing.
    This page includes a sample basic feed so you can see what one should look like: your feed must be plain text.
    http://rfwilmut.net/pc

  • GetXMLSchema java method generates invalid XML Schema document

    Hi all,
    I managed to get the xdk FAQ demo to work eventually on oracle 9.2.0.1.0 for windows, I noticed however that when I generate an XML Schema definition against a query, the document contains an outdated namespace declaration (minor flaw) and "nullable" attributes instead of "nillable", resulting in an invalid XML Schema document when edited with certain tools like Altova's XmlSpy.
    How can I fix this?
    See below for the XML Schema source.
    Bye,
    Flavio
    <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
    <xsd:element name="ROWSET">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="ROW" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="CATEGORY" type="xsd:string" minOccurs="0"/>
    <xsd:element name="QUESTION" type="xsd:string" minOccurs="0"/>
    <xsd:element name="ANSWER" type="xsd:string" minOccurs="0"/>
    <xsd:element name="LANGUAGE" type="xsd:string" minOccurs="0"/>
    <xsd:element name="SENDBY" type="xsd:string" nullable="true" minOccurs="0"/>
    <xsd:element name="CREATETIME" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="num" type="xsd:integer"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

    With my (trial) copy of XMLSPY (version 2004 rel.3), I get following pop-up when opening that schema:
    "This schema is written in an old standard:
    http://www.w3.org/2000/10/XMLSchema
    Do you want XMLSPY to convert it to the new one:
    http://www.w3.org/2001/XMLSchema"
    When I click "Yes" and save, I get a perfectly valid schema (with nullable replaced by nillable).

  • Web Service Security with SAML - Invalid XML signature

    Hello together,
    we want to build a scenario where we want to use Web Service Security  with SAML.
    The scenario will be
    WS Client (Java Application) -> WS Adapter -> Integration Engine ->  WS Adapter-> CRM (Web AS ABAP 7.01 SP 3)
    SAP PI release is 7.11 (SP Level 4)
    We want to use the SAML Authentification from WS Client to PI and from PI to Web AS ABAP.
    The SAML authentifications between the WS Client and PI works when there is no SAML auth between PI and CRM.
    But we get following error at calling the CRM system when we want to communicate with SAML:
      <E_TEXT>CX_WS_SECURITY_FAULT:Invalid XML signature</E_TEXT>
    Has somebody an idea of the possible reason for the error.
    Thanks in advance
    Stefan

    Error Messages in the Trace/Log Viewer:
    CX_WS_SECURITY_FAULT : Invalid XML signature | program: CL_ST_CRYPTO==================CP include: CL_ST_CRYPTO==================CM00G line: 48
    A SOAP Runtime Core Exception occurred in method CL_ST_CRYPTO==================CM00G of class CL_ST_CRYPTO==================CP at position id 48  with internal error id 1001  and error text CX_WS_SECURITY_FAULT:Invalid XML signature (fault location is 1  ).
    Invalid XML signature

  • Is it possible to remove xml declaration from a target HTTP msg in PI 7.1?

    Hello,
    I am working on a SOAP to HTTP scenario in PI 7.1.
    I am using a java mapping to create a target string. This target string does not contain XML declaration(<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>) in it.
    To elaborate the issue, while testing the message mapping, this XML declaration is not being prefixed to the message content. But, in integration engine, the http target message is being prefixed by this XML declaration by default.
    Output when tested in Operation Mapping(Desired result):
    abc=123:def=456
    Output been sent to receiver:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> abc=123:def=456
    Is there any possibility to send a  HTTP message to the receiver without this XML declartion. In other words, I need only the message content to be sent to the receiver.
    Kindly suggest.
    Regards,
    Swetha

    Hi,
    You can use JAVA/or XSLT mapping
    See this for Code
    Remove Encoding UTF from xml declaration in PI

  • Org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x80) was found in the CDATA section

              Hi,
              I,'m using c.tld tag libraries from Yakarta in order to use c:if functions.
              When I use non-unicode characters in my JSP pages, it crashes:
              java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected
              the page: "org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x80)
              was found in the CDATA section., "
                   at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:124)
                   at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:258)
                   at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:353)
                   at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:211)
                   at weblogic.servlet.jsp.JspStub.checkForReload(JspStub.java:149)
                   at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:521)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:351)
                   at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
                   at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445)
                   at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780)
                   at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105)
                   at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              How can I force it to use ISO-8859-1? All my tries haven't work. What should I
              do? The c.tld libraries and jars are taken from JDK 1.4.1_02
              

    Hi Stefan,
       This is my source xml in moni..
    xmlns:prx="urn:sap.com:proxy:ECP:/1SAI/TAS5BFDF495190544E4B506:701:2008/06/06">
      <SiteId>0080</SiteId>
      <UCC>42027519 91029010015</UCC>
    My interface is SAP(Proxy) to Database(Synchronous).
       SAP (PROXY) --> PI --> DATABASE ( Synchronous Communication )
    Let me know if u need any information from my side...
    Thanks for ur help...
    Thanks,
    Siva..

  • SSMS 2012:FOR XML PATH Using XPath Node Tests-Columnn name 'test()' contains an invalid XML identifier as required by FOR XML?

    Hi all,
    I am learning XPATH and XQUERY from the Book "Pro T-SQL 2008 Programmer's Guide" written by Michael Coles, (published by apress). I copied the Code Listing 12-8 FOR XML PATH Using XPath Node Tests (listed below) and executed it in my
    SQL Server 2012 Management Studio:
    --Coles12_8.sql // saved in C:/Documemnts/SQL Server Management Studio
    -- Coles Listing 12-8 FOR XML PATH Using XPATH Node Tests
    -- Retrieving Name and E-mail Addresses with FOR XML PATH in AdvantureWorks
    -- 16 March 2015 0935 AM
    USE AdventureWorks;
    GO
    SELECT
    p.NameStyle AS "processing-instruction(nameStyle)",
    p.BusinessEntityID AS "Person/@ID",
    p.ModifiedDate AS "comment()",
    pp.PhoneNumber AS "test()",
    FirstName AS "Person/Name/First",
    MiddleName AS "Person/Name/Middle",
    LastName AS "Person/Name/Last",
    EmailAddress AS "Person/Email"
    FROM Person.Person p
    INNER JOIN Person.EmailAddress e
    ON p.BusinessEntityID = e.BusinessEntityID
    INNER JOIN Person.PersonPhone pp
    ON p.BusinessEntityID = pp.BusinessEntityID
    FOR XML PATH;
    I got the following error message:
    Msg 6850, Level 16, State 1, Line 2
    Column name 'test()' contains an invalid XML identifier as required by FOR XML; '('(0x0028) is the first character at fault.
    I have no ideas why I got this error message.  Please kindly help and advise me how to resolve this error.
    Thanks in advance,  Scott Chang

    Hi Michelle, Thanks for your nice response.
    I corrected the mistake and executed the revised code. It worked nicely.
    I just have one question to ask you about the appearance of the xml output of my Co;les12_8.sql:
    <row>
    <?nameStyle 0?>
    <Person ID="1" />
    <!--2003-02-08T00:00:00-->697-555-0142<Person><Name><First>Ken</First><Middle>J</Middle><Last>Sánchez</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="2" />
    <!--2002-02-24T00:00:00-->819-555-0175<Person><Name><First>Terri</First><Middle>Lee</Middle><Last>Duffy</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="3" />
    <!--2001-12-05T00:00:00-->212-555-0187<Person><Name><First>Roberto</First><Last>Tamburello</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="4" />
    <!--2001-12-29T00:00:00-->612-555-0100<Person><Name><First>Rob</First><Last>Walters</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="5" />
    <!--2002-01-30T00:00:00-->849-555-0139<Person><Name><First>Gail</First><Middle>A</Middle><Last>Erickson</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="6" />
    <!--2002-02-17T00:00:00-->122-555-0189<Person><Name><First>Jossef</First><Middle>H</Middle><Last>Goldberg</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="7" />
    <!--2003-03-05T00:00:00-->181-555-0156<Person><Name><First>Dylan</First><Middle>A</Middle><Last>Miller</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="8" />
    <!--2003-01-23T00:00:00-->815-555-0138<Person><Name><First>Diane</First><Middle>L</Middle><Last>Margheim</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="9" />
    <!--2003-02-10T00:00:00-->185-555-0186<Person><Name><First>Gigi</First><Middle>N</Middle><Last>Matthew</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="10" />
    <!--2003-05-28T00:00:00-->330-555-2568<Person><Name><First>Michael</First><Last>Raheem</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    <?nameStyle 0?>
    <Person ID="11" />
    <!--2004-12-29T00:00:00-->719-555-0181<Person><Name><First>Ovidiu</First><Middle>V</Middle><Last>Cracium</Last></Name><Email>[email protected]</Email></Person></row>
    <row>
    I feel this xml output is not like the regular xml output.  Do you know why it is diffrent from the regular xml xml output?  Please comment on this matter.
    Thanks,
    Scott Chang
    What do you mean by regular xml document? Are you referring to fact that its missing a root element? if yes it can be added as below
    USE AdventureWorks;
    GO
    SELECT
    p.NameStyle AS "processing-instruction(nameStyle)",
    p.BusinessEntityID AS "Person/@ID",
    p.ModifiedDate AS "comment()",
    pp.PhoneNumber AS "text()",
    FirstName AS "Person/Name/First",
    MiddleName AS "Person/Name/Middle",
    LastName AS "Person/Name/Last",
    EmailAddress AS "Person/Email"
    FROM Person.Person p
    INNER JOIN Person.EmailAddress e
    ON p.BusinessEntityID = e.BusinessEntityID
    INNER JOIN Person.PersonPhone pp
    ON p.BusinessEntityID = pp.BusinessEntityID
    FOR XML PATH('ElementName'),ROOT('RootName');
    replace ElementName and RootName with whatever name you need to set for element as well as the root element
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Oracle Service Bus 11g omit-xml-declaration="yes" not working in XSL-T

    I have the requirement of removing the XML header from xsl output.
    eg: <?xml version="1.0" encoding="UTF-8" ?> this part has to removed
    I tried using the following in XSLT:
    <xsl:output indent="yes" omit-xml-declaration="yes" />.
    It seems to work in all online xml compilers. It does not work in work in OSB.
    I posted the message in a JMS Queue and it contains the xml header.
    Is this a work around for this issue?

    I'm pretty sure XSLT has nothing to do with that PI.
    After all, XSLT in OSB doesn't format text, it generates an XmlObject. The formatting (including adding the <?xml?> PI) are done by other parts of the engine. Probably the XmlBeans serializator.
    The only option I see is to serialize the XML, then cut off everything until first ?>.
    Why would you need that, I wonder? May be there is a better way.
    Vlad @ genericparallel.com

  • How to specify XML declaration in an XML Variable

    I had posted this question in the Flex Builder discussion,
    but I am not sure if that was the right board, so posting it again
    here:
    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. How can I set the declaration?
    Any help or pointer is appreciated.

    I am not able to load the xml. Can anybody figure out the
    problem :
    I have used a LoadXML class :
    package {
    import flash.display.*;
    import flash.events.*;
    import flash.net.*;
    // Demonstrates the code required to load external XML
    public class LoadXML extends Sprite {
    // The property that will eventually contain the loaded XML
    private var novel:XML;
    // The object used to load the XML
    private var urlLoader:URLLoader;
    // Constructor
    public function LoadXML () {
    // Specify the location of the external XML
    var urlRequest:URLRequest = new URLRequest("novel.xml");
    // Create an object that can load external text data
    urlLoader = new URLLoader();
    // Register to be notified when the XML finishes loading
    urlLoader.addEventListener(Event.COMPLETE,
    completeListener);
    // Load the XML
    urlLoader.load(urlRequest);
    // Method invoked automatically when the XML finishes
    loading
    private function completeListener(e:Event):void {
    // The string containing the loaded XML is stored in the
    URLLoader
    // object's data property (urlLoader.data). To create a new
    XML
    // instance from that loaded string, we pass it to the XML
    constructor
    novel = new XML(urlLoader.data);
    trace(novel.toXMLString()); // Display the loaded XML, now
    converted
    // to an XML object
    And in main.mxml :
    myXml = new LoadXml ;
    trace ( myXml.novel ) ;
    The output is errenous

  • How to specify the XML Declaration for an XML variable

    I need to set the XML declaration for my XML variable as
    follows:
    var employees:XML =
    <?xml version="1.0" encoding="utf-8"?>
    <employees>
    <employee ssn="123-123-1234">
    <name first="John" last="Doe"/>
    <address>
    <street>11 Main St.</street>
    <city>San Francisco</city>
    <state>CA</state>
    <zip>98765</zip>
    </address>
    </employee>
    <employee ssn="789-789-7890">
    <name first="Mary" last="Roe"/>
    <address>
    <street>99 Broad St.</street>
    <city>Newton</city>
    <state>MA</state>
    <zip>01234</zip>
    </address>
    </employee>
    </employees>;
    However, if I specify <?xml version="1.0"
    encoding="utf-8"?>, I get a design time and compile error. If I
    remove it it works fine. But the server to which I send this XML is
    expecting the declaration. Can somebody help me with this?
    Thanks

    I work mostly with the Java versions of the parser so you'll have to make the translation to C++. As far as I know, you can't use the SAX API to access to the encoding.
    You need to use the DOM along with Oracle's extension to the basic DOM functionality. Oracle's package, oracle.xml.parser.v2 defines a class which implements the Document interface called XMLDocument. This class has a method, getEncoding(), which returns the encoding. You would use the method in getDocument() in the Parser base class inherited by DOMParser to retrive the XMLDocument.
    Jeff

  • Error in moni as invalid XML character (Unicode: 0x16) was found

    Hello Experts,
    I am facing an issue in Production interface is Proxy - -> JDBC data is passing in ECC successfully in PI moni it is showing error
    as                  Runtime Exception when executing application mapping program com/sap/xi/tf/_MaterialPlantFromSAP_to_MaterialPlantToDYNAMINE_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; An invalid XML character (Unicode: 0x16) was found in the element content of the document.
    when i try to open the payload it is showing data is too long when i click on open screen is getting hang showing as not responding.I have checked in the ECC it is also showing data is too long when i click on open after 1 min payload is opening when i try to copy the payload and paste in Message mapping test tab again screen is getting hanging when i try to test with 20 or 30 records in Mapping it going through.
    I have downloaded that XML file from ECC moni it is 8.83 MB .
    PI can process this huge file ? please suggest me how to pass data in chunks .And also i am not understanding error is due to Payload has not correct data or Payload is huge.
    Please throw some light on the issue any help is highly appreciated.
    Regards
    Praveen Reddy

    Hi Praveen,
                       you need a HEX editor. Please download one from this link
    http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
    Here in the editor search for the HEX value 0X16 and see the corrosponding charcater in payload.
    Try getting rid of the character before it reaches Integrtaion engine possibly with java mapping.
    Regards
    Anupam
    Edited by: anupamsap on Jan 4, 2012 6:43 PM

  • Change XML declaration from single quote to double quote

    Hi all,
    i have the following problem in my File Receiver Adapter. My XML File has the declaration <?xml version='1.0' encoding='utf-8'?> (With single quotes ') and want to change it to <?xml version="1.0" encoding="utf-8" ?> (With double quotes ")
    I use the XMLAnonymizerBean but this does not change the XML declaration.
    Any ideas how to change the declaration
    Thanks Max

    Hi Suraj,
    on the Modul Tab i have the following:
    1 | AF_Modules/XMLAnonymizerBean | Local Enterprise Bean | Anonymizer
    2 | CallSapAdapter                                | Local Enterprise Bean | 0
    Anonymizer | anonymizer.acceptNamespaces | http://Post.AG/PartnerInterface/Schemas/PVSdeAt/Aviso_V1.0 ns0 http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoHeader ns1 http://PostAG.PartnerInterface.Schemas.PVS_deAt.AvisoShipper ns2
    Anonymizer | anonymizer.quote                        | "
    That is all what i have on the module tab.
    I send the data as Text (not Binär). Thats all what i have in the adapter. Do you need any further information?
    Regards, Max

Maybe you are looking for

  • Report for Pegging for  forecast and sales order consumption(pegging)

    Hi , Plaese help to create a report for the below Requirement is there to have a showing Forecast (Number) and Sales order (Number) pegging Report Means like to which forecast number the sales order number is consumed Regards Kiran

  • Problem with GetCustomListTemplates

    Hi I have a  Problem with the follwoing part of code: SPListTemplateCollection listTemplates = siteCollection.GetCustomListTemplates(web);                 SPListTemplate myTemplate = listTemplates[curItemTemplate]; it is showing only in listTemplates

  • Problem Transforming

    Hi All, I am facing a problem transforming an XML document using XSLT. I have two XML documents.One is the source document. In the XSL i refer to another XML document which is in the same folder as the source document using document() function.(My XS

  • Pas d'accés à extension manager ?

    Bonjour depuis hier sur le cloud  j'ai cela je voulai céer une connexion entre DW  et un module complementaire easy rotator.exe je suis sous  Seven  avez vous une idée ? merci Patrice

  • NEW INSTALL OF LION

    Good morning to all, Well I could not delete one of my 16GIG USB sticks and only saved LION on my IMAC not on my stick as I have been told to. What I want to do is also load it onto my MBA and MBP, just wondering as I have installed this already on t