"XML not well-formed" error while testing Interface mapping.

Hello Experts,
  I have a simple Interface mapping test, where a single input field of type string is mapped to a target Interface.
The content of a string actually will be a XML. I am using a XSLT mapping to convert string XML to XML. The XSLT mapping used by me is as :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output omit-xml-declaration="yes" />
<xsl:template match="@*|node()">
<xsl:copy>
  <xsl:apply-templates select="@*|node()" />
  </xsl:copy>
  </xsl:template>
<xsl:template match="/">
  <xsl:value-of select="//string" disable-output-escaping="yes" />
  </xsl:template>
  </xsl:stylesheet>
Test data to be used is :
<?xml version="1.0" encoding="ISO-8859-1"?>
<string>
<catalog>
     <cd>
          <title>Empire Burlesque</title>
          <artist>Bob Dylan</artist>
          <country>USA</country>
          <company>Columbia</company>
          <price>10.90</price>
          <year>1985</year>
     </cd>
     <cd>
          <title>Unchain my heart</title>
          <artist>Joe Cocker</artist>
          <country>USA</country>
          <company>EMI</company>
          <price>8.20</price>
          <year>1987</year>
     </cd>
</catalog>
</string>
My Target structure is like:
catalog
  CD
    title
    artist
    country
    company
    price
    year
No matter what I input as a test data , I get the error as "XML not well-formed" while testing Interface mapping.  
Please suggest what could be the reason for this error?
Regards,
Abhi.

Hi check your XSLT mapping in XMLY spy with test data,the out of the XSLT Mapping should be valid XML , then only you can see output in interface mapping.
Regards,
Raj

Similar Messages

  • Not well-formed error while implementin ajax in firefox---can anyone help

    hi techies,
    I'm trying to implement ajax in firefox and i'm getting not well-formed error in error console
    heres part of code
    var xmlHttp;
    function create(){
    if(window.ActiveXObject){
    xmlHttp=window.ActiveXObject("Microsoft.XMLHTTP");
    else if(window.XMLHttpRequest){
    xmlHttp=window.XMLHttpRequest();
    else{
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    function getEmployeeDetails(){
    frm = document.forms[0];
    empid = frm.elements["empid"].value;
    url="empdetails.jsp?empid=" + empid;
    xmlHttp.open("GET" ,url, true);
    xmlHttp.onreadystatechange=doUpdate;
    xmlHttp.send(null);
    function doUpdate(){
    if(xmlHttp.readyState==4 && xmlHttp.status == 200){
    var root = xmlHttp.responseXML.documentElement;
    ----so on
    jsp Page is
    <%@ page import="java.sql.*" contentType="text/xml" %>
    <%
    String empid=request.getParameter("empid");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:vmouli","hr","hr");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select first_name,salary from employees where employee_id=" + empid);
    if(rs.next()){
    out.println("<employee><name>");out.println(rs.getString(1));
    out.println("</name><salary>");out.println(rs.getString(2));
    out.println("</salary></employee>");
    else{
    out.println("<error>Employee ID not found</error>");
    rs.close();
    st.close();
    con.close();
    %>
    Firefox error console is saying not well-formed and is pointing to starting of my jsp page
    can anyone help plzzz

    mouli007 wrote:
    Thanx for that Cotton
    My XML document is wellformed no doubt about thatNo doubt about that?!?
    I would say there is a great deal of doubt about that, especially since the subject of this thread, which you stated was the error message from FireFox is that the document is not well formed at all. I have some more wild guesses about what you've screwed up. Would you like to hear them? My best guess at this point would be that you are outputting some whitespace at the start of the output.
    Anyway, this seems pretty pointless. Your code is crap. And I really don't see the point in telling us you have an error, posting code, then having several people identify several major problems in your code and then for you tell us that your code is perfect. Your code is not perfect. It's terrible. Fix it. You've been given several ideas in this and your cross-post as to how to fix it.

  • XML Not well formed, Mapping error

    Hi All,
    I'm trying a simple file to file scenario..
    Following is the structure of source and target file..
    Source structure
    ===============
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
      <Src1>1</Src1>
      <Src2>2</Src2>
    </ns:SourceMT>
    Target Structure
    ===============
    <?xml version="1.0" encoding="UTF-8"?>
    <ns:TargetMT xmlns:ns="urn:tmp:workshop:file2file">
      <Tgt1>1</Tgt1>
      <Tgt2>2</Tgt2>
    </ns:TargetMT>
    I did a one to one mapping for the two fields and tested the same using the test tool in IR and it works fine..
    However when I put the same source xml structure in the Input file it gives me the below error..
    Also when I copy the payload from the sxmb_moni and paste the same in the test tool in IR it throws an error saying
    "XML not well-formed"
    Error
    =====
    <SAP:Stack>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Payload
    =======
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:SourceMT xmlns:ns="urn:tmp:workshop:file2file">
      <Src1>1</Src1>
      <Src2>2</Src2>
      </ns:SourceMT>
    Any inputs are greatly appreciated..
    Thanks and Regards,
    Nazim

    Hi ,
    <i>During the application mapping com/sap/xi/tf/_FileMM_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</i>
    It is clearly saying that exception in mapping....Check your mapping correcly with one to one mapping.Dont do any mapping to the root node and check it...
    And also check this...
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    Sekhar

  • XML not well formed - Java Mapping, Webservice to RFC Scenario

    Hello All Experts,
    I have facing a strange type of error. I have written a Java Mapping which implements a DOM parser to take a request from a Webservice and validate it on the basis of some prerequisites. i.e. If data in the incoming request is valid, it creates a message of the same structure type as the input. If the incoming data is incorrect or incomplete; It generates an Error response structure.
    When I run and test the same mapping program using Editplus Java editor for the error scenario; it executes perfectly and creates the correct error XML structure. (I checked it by importing the structure in the XI Message mapping test tab). But when I create jar of my java mapping program and test it in my interface mapping, it gives me "XML not well formed error" (Problem while building the tree).
    Any idea as to why is it behaving in such a way? There are 2 reasons which come to my mind as of now:
    1. The initilization of my input and output streams in the public static void main:
                InputStream in = new FileInputStream(new File("Input.xml"));
               OutputStream out = new FileOutputStream(new File("Output.xml"));
               validateXML myMapping = new ValidateXML();
                myMapping.execute(in, out);
    The Output.xml has the xml structure for the correct case, do I have to initialize my outputstream for the error file? say error.xml
    2. My Webservice interface is a sychronous interface (Request / Response) and output of the Java mapping program are two asynchronous interface. (I'll use a synch-asynch bridge when this works) - Is that causing a problem?
    Please help.
    Best regards,
    Varun

    Hello Varun,
    it gives me "XML not well formed error" (Problem while building the tree).
    I have come across the same error message while testing in interface mapping. My problem was when an exception occured in java mapping, the execution terminates with the messages XML not well formed error". In order to solve this issue what i did was catch the exception type TransformerException and in that catch block throw StreamTransformationException exception in main methos of mapping program i.e execute().
    eg:-                                                                               
    catch (TransformerException e) {
                   throw new StreamTransformationException("Can not write XML.", e);
    By doing this you will see the exception raised , because some times when you execute your mapping with mail() method, though it create the file, when you try to open it will give error if any exceptions occured in mapping. By using the above notation you can handle those in java mapping.
    Hope you have gone through this blog.
    [Handling and Tracing Exceptions in java mapping|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1055371050DB01666765031379427182End?blog=/pub/wlg/15061]
    Regards,
    Prasanna

  • Error using XML Loader: XML not well-formed

    Hi all,
    I am facing a problem using the XML loader in xMII 12.0 when trying to load the following XML file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Users>
      <User>
        <UserID>IMXOO</UserID>
        <CWID>IMXOO</CWID>
        <Prename>Michael</Prename>
        <Surname>Otto</Surname>
        <CreatedOn>2001-12-31T12:00:00</CreatedOn>
        <CreatedBy>IMXOO</CreatedBy>
      </User>
    </Users>
    I also tried a most basic XML file which shows the same error:
    <?xml version="1.0"?>
    <ausgabe>
      <anzeige>Testausgabe</ausgabe>
    </ausgabe>
    To my understanding both files are well-formed, however xMII shows the error:
    "The markup in the document following the root element must be well-formed."
    Do I break any rules concerning the markup? IE loads the files without showing any errors.
    Best Regards
    Michael

    Jeremy,
    again you gave the key to the solution. When the error occured, I have set up the following path within the xMII workbench:
    "Catalog-Tab"
    <server>
      > Sandbox
            > XML
                myFile.xml
    When I tried to load the mxFile.xml with the XML Loader, I got the error described above (XML not well-formed). I also cannot drag the file into a transaction in the workbench. I have manually configured the XML Loader with "http://<server:port>/XMII/CM/Sandbox/XML/mxFile".
    Now using your hint I have changed to the "Web-Tab":
    "Web-Tab"
    <server>
        > Sandbox
            > WEB
                > XML
                    myFile.xml
    Then all works fine, when I now drag the file into the transaction. As you described, an XML Loader action is created with configuration "db://Sandbox/WEB/XML/myFile.xml" and the XML is loaded correctly.
    Thanks for your help!
    Best regards
    Michael

  • XML not well formed in - XSLT mapping

    Hi,
    I am doing a simple xslt mapping wherein my Source data structure is
    MT
    |__ details
            |__ Records
                      |_emp_no
                      |_ emp_name
                      |_emp_dno
    In XSL file i hv specified <xsl:template match="MT">
    and I am using <for-each select="details/Records">
    when I m testing it in Interface mapping, it is giving me error "XML not well formed"
    can anybody please suggest whats the problem in the code??
    Thank you,
    Anu Singhal

    Hi Anu,
        I think in the select query in xslt mapping u have to mention the expression "//"  so that for each iteration it can go according the path.
      < for-each select = " //details/records">
      I have some sample code of same type...just check it..
    <xsl:template match="/">
    <MT_EMP_TARGET>
         <xsl:for-each select="//EMP_DATA">
              <EMP_DATA>
                            <xsl:variable name="fname" select="//EMP_DATA/First_Name"/>
                            <xsl:variable name="lname" select="//EMP_DATA/Last_Name"/>     
                   <Emp_Code><xsl:value-of select="//EMP_DATA/Emp_Code"/></Emp_Code>
                   <Name><xsl:value-of select="concat($fname,' ',$lname)"/></Name>
                   <Join_Dt><xsl:value-of select="//EMP_DATA/Join_Dt"/></Join_Dt>
                   <Designation><xsl:value-of select="//EMP_DATA/Level"/></Designation>
                   <Dept><xsl:value-of select="//EMP_DATA/Dept"/></Dept>
              </EMP_DATA>
         </xsl:for-each>
    </MT_EMP_TARGET>
    </xsl:template>
    For more info:
    http://www.w3schools.com/xsl/el_for-each.asp
    Cheers,
    Prasanthi.
    Reward marks  if helpful.

  • Not well-formed error in firefox in implementing ajax--pls help

    hi techies,
    I'm trying to implement ajax in firefox and i'm getting not well-formed error in error console
    heres part of code
    var xmlHttp;
    function create(){
    if(window.ActiveXObject){
    xmlHttp=window.ActiveXObject("Microsoft.XMLHTTP");
    else if(window.XMLHttpRequest){
    xmlHttp=window.XMLHttpRequest();
    else{
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    function getEmployeeDetails(){
    frm = document.forms[0];
    empid = frm.elements["empid"].value;
    url="empdetails.jsp?empid=" + empid;
    xmlHttp.open("GET" ,url, true);
    xmlHttp.onreadystatechange=doUpdate;
    xmlHttp.send(null);
    function doUpdate(){
    if(xmlHttp.readyState==4 && xmlHttp.status == 200){
    var root = xmlHttp.responseXML.documentElement;
    ----so on
    jsp Page is
    <%@ page import="java.sql.*" contentType="text/xml" %>
    <%
    String empid=request.getParameter("empid");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection con=DriverManager.getConnection("jdbc:odbc:vmouli","hr","hr");
    Statement st=con.createStatement();
    ResultSet rs=st.executeQuery("select first_name,salary from employees where employee_id=" + empid);
    if(rs.next()){
    out.println("<employee><name>");out.println(rs.getString(1));
    out.println("</name><salary>");out.println(rs.getString(2));
    out.println("</salary></employee>");
    else{
    out.println("<error>Employee ID not found</error>");
    rs.close();
    st.close();
    con.close();
    %>
    Firefox error console is saying not well-formed and is pointing to starting of my jsp page
    can anyone help plzzz

    As BalusC said - run the JSP producing the xml.
    Save that xml to a file - INCLUDING any white space - because thats what you actually get.
    Open that xml file in your browser - it should tell you at that point if your xml is well formed.
    AS BalusC said this is better done in a servlet - especially since you're just doing out.println.
    JSPs add extra whitespace and carriage returns. While that won't necessarily break XML, it can cause problems with the first few characters.

  • Re: XML NOT WELL FORMED??

    Hi all I have the 8520 curve. All was well till today And now I'm also getting XML NOT WELL FORMED Its not on all sites as yet But its so annoying. I've also done all that's been Sujested here and still have the Problem. The only thing I have done Today is update the blackberry Messenger as I was fed up with the Update message. oh how I wished I hadn't. But maybe this would Have happened anyway by seeing how Many are having the same problem. Anyone got any other ideas or know Of a number in the uk I could call For advice. Or should I call o2 Can anyone help us all. Bless you all for trying. Thanks. Ps please go easy on tec stuff as I'm New to blackberry and feel like A right dummy, which I feel like Spitting out every time the xml message appears lol
    Solved!
    Go to Solution.

    Hello,
    In this case we can try to reload the software on the BlackBerry smartphone to make sure it is running the latest version and there are no issues with the OS.
    To do this we would need to back up the BlackBerry smartphone. Please open the BlackBerry Desktop Manager and connect your BlackBerry smartphone. Click on the Backup and Restore button and select Back Up. Please note the location where the backup is being saved as we will need to access it later to restore the BlackBerry smartphone.
    Once you have backed up your BlackBerry smartphone please follow the link below to complete a clean reload of the BlackBerry smartphone software.
    Link: http://www.blackberry.com/btsc/KB11320
    Please test the BlackBerry smartphone prior to restoring your data.
    Thank you
    -DrP
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • XML Not well formed

    I have an XSLT mapping as described below:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
    <ns0:header>
    <ns0:delivery>
    <ns0:message>
    <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
    </ns0:message>
    </ns0:delivery>
    </ns0:header>
    <ns0:body>
    <ns0:FinancialTransaction.CreateFromData>
    <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
    </ns0:FinancialTransaction.CreateFromData>
    </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    however when I execute this mapping I keep getting the error saying that the XML is not well formed...
    I have looked at it but really cant see where I am going wrong.. Could someone take a look at the above xslt and let me know where this error could be coming from....

    ok this is the xslt again
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/biztalk_1">
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
      <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID><xsl:value-of select="header/delivery/message/messageID"/></ns0:messageID>
             </ns0:message> 
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode><xsl:value-of select="body/FinancialTransaction.CreateFromData/CompanyCode"/></ns0:CompanyCode>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    </xsl:template>
    </xsl:stylesheet>
    and the source will look something like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:biztalk_1 xmlns:ns0="urn:biztalk-org:biztalk:biztalk_1">
       <ns0:header>
          <ns0:delivery>
             <ns0:message>
                <ns0:messageID/>
                <ns0:sent/>
             </ns0:message>
          </ns0:delivery>
       </ns0:header>
       <ns0:body>
          <ns0:FinancialTransaction.CreateFromData>
             <ns0:CompanyCode/>
          </ns0:FinancialTransaction.CreateFromData>
       </ns0:body>
    </ns0:biztalk_1>
    There are actually more fields but this is a toned down version...

  • How is DW-generated XML not well-formed?

    <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("", Container) %>"
    DataSource='<%# DataSetScheduleByDate.DefaultView %>'
    runat="server">
    This was generated by DW. When I run the page, its telling me
    that line 116 is not well formed. Since this was generated, I'm
    curious what's wrong? This is part of a datagrid and perhaps I'm
    just not assigning things correctly?

    What does the xml page around line 116 look like?
    Dave
    "dl0haus" <[email protected]> wrote in
    message
    news:fqkebl$mf9$[email protected]..
    > <ASP:Repeater DataMember="<%#
    DataSetScheduleByDate.FieldValue("",
    Container)
    > %>" DataSource='<%#
    DataSetScheduleByDate.DefaultView %>' runat="server">
    >
    > This was generated by DW. When I run the page, its
    telling me that line
    116
    > is not well formed. Since this was generated, I'm
    curious what's wrong?
    This
    > is part of a datagrid and perhaps I'm just not assigning
    things correctly?
    >

  • XML - writing file #1088 (xml not well formed)

    Hi,
    What could cause the IO Error #1088 within the code below? All I can think of is white space issue. It prints to the screen AND saves to the xml file correctly, just keeps throwing up the code.
    Also, writing it this way wont' allow me to add <?xml version='1.0' encoding='utf-8'?> is it required?
    Thanks for any help.
    var authors:XML;
    authors =<authors>
                    <author>
                    <firstname>Rich</firstname>
                    <lastname>Shupe</lastname>
                    </author>
                    <author>
                    <firstname>Zevan</firstname>
                    <lastname>Rosser</lastname>
                    </author>
                    </authors>;
    var xml =authors;
    var book:XML = new XML(xml);
    var xmlResponse:XML;
    var xmlURLReq:URLRequest = new URLRequest("saveXML.php");
    xmlURLReq.data = book;
    xmlURLReq.contentType = "text/xml";
    xmlURLReq.method = URLRequestMethod.POST;
    var xmlSendLoad:URLLoader = new URLLoader();
    xmlSendLoad.addEventListener(Event.COMPLETE, onComplete, false, 0, true);
    xmlSendLoad.addEventListener(IOErrorEvent.IO_ERROR, onIOError, false, 0, true);
    xmlSendLoad.load(xmlURLReq);
    function onComplete(evt:Event):void {
        try {
            xmlResponse = new XML(evt.target.data);
            respTxt.text = xmlResponse;
            removeEventListener(Event.COMPLETE, onComplete);
            removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
        } catch (err:TypeError) {
            respTxt.text = "An error occured when communicating with server:\n" + err.message+" "+xml;
    function onIOError(evt:IOErrorEvent):void {
        respTxt.text = "An error occurred when attempting to load the XML.\n" + evt.text;

    Answered it myself....
    The PHP script was adding additional<tags></tags> so the file I was outputing read:
    <root>
    <teams>
    <team1></team1>
    <team2></team2>
    </teams>
    </root>
    <phpaddedInfo></phpaddedInfo>
    so just a good idea to look in both places when you get an IO error #1088

  • Error: "LPX-00240: element-start tag is not well formed"

    Hello all,
    i'm getting this error parsing a XML file:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00240: element-start tag is not well formed*
    Error at line 18
    What could be the issue in this case ???
    i'm running out of tryings and options for this solution....
    thank you all
    ---------------------- XML FILE -----------------------------
    <?xml version="1.0" encoding="iso-8859-1"?>
    <FormList>
         <Form name="SERVIDOES_REGLA_BASE" table="IVBAM.ANA_SERV_PEDIDOSPARECER" idfield="ID">
              <FormField name="ID" label="ID" datatype="LONG" type="TEXTFIELD" readonly="true" visible="false" mandatory="false" saveable="true" lovemtpy="false" multiselect="false"/>
         </Form>
         <Form name="PEDIDO_PARECER_UPDATE" table="IVBAM.ANA_SERV_PEDIDOPARECER" idfield="ID" help="sdfsf sdf sdf 4 43 43 3 4534 54 " usesession="true" geometryfield="GEOMETRY">
              <FormAction name="FORM_ACTION_01" function="2" help="true"><param name="CONFIRM" value="YES_NO" title="confirmar ??????"/>
                   <param name="LALLALA" value="dddd" title="ddddd"/>
              </FormAction>
    line 18:     <FormField name="NUM_ENTRADA" label="Número de entrada" datatype="STRING" type="TEXTFIELD" visible="false" mandatory="false" saveable="false" lov="Sim,Não" lovemtpy="false" maxlength="50" multiselect="false" />
         </Form>
    </FormList>
    -------------------------------------------------------------------

    <?xml version="1.0" encoding="iso-8859-1"?>
    <FormList>
    <Form name="SERVIDOES_REGLA_BASE" table="IVBAM.ANA_SERV_PEDIDOSPARECER" idfield="ID">
    <FormField name="ID" label="ID" datatype="LONG" type="TEXTFIELD" readonly="true" visible="false" mandatory="false" saveable="true" lovemtpy="false" multiselect="false"/>
    </Form>
    <Form name="PEDIDO_PARECER_UPDATE" table="IVBAM.ANA_SERV_PEDIDOPARECER" idfield="ID" help="sdfsf sdf sdf 4 43 43 3 4534 54 " usesession="true" geometryfield="GEOMETRY">
    <FormAction name="FORM_ACTION_01" function="2" help="true"><param name="CONFIRM" value="YES_NO" title="confirmar ??????"/>
    <param name="LALLALA" value="dddd" title="ddddd"/>
    </FormAction>
    line 18: <FormField name="NUM_ENTRADA" label="Número de entrada" datatype="STRING" type="TEXTFIELD" visible="false" mandatory="false" saveable="false" lov="Sim,Não" lovemtpy="false" maxlength="50" multiselect="false" />
    </Form>
    </FormList>

  • Firefox will not open, error says XML parsing error:not well formed... It's also been crashing for a while.

    I've made no changed to any settings, I was browsing, closed it, realized I forgot to do something, reopened it and it opens a small box that says;
    XML parsing error: not well-formed
    Location: chrome://browser/content/browser.xul
    Line number 808, column 66:
    And then in red it says;
    oncommand="InLineSpellCheckerUI.toggleEnabled() ;&/>
    --------------------------------^

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    Profile Backup and Restore
    *http://kb.mozillazine.org/Profile_backup
    *https://support.mozilla.org/en-US/kb/back-and-restore-information-firefox-profiles
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • XML Parsing error: not well-formed (invalid token) (error code 4) --- Urgent Help Needed!

    Hi all, what im doing now is im trying to create a database connection my my MS SQL 2005 database. I created a data source and went to my Adobe Lifecycle Designer 7.1, i created a new data connection, selected OLEDB and created the connection string using the build function.
    Ok, now the problem is, after creating the new data connection and i click on the preview tab, i will receive the error stated above.
    'XML Parsing error: not well-formed (invalid token) (error code 4), line 444, column 1 of file'
    Does anyone know why am i receiving this error and how do i go about solving this?
    I need this database connection to pre-fill my form when the user downloads the form =(

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • XML Parsing Error: not well-formed (C# Visual Studio 2013)

    I am working on a project in visual studio that imports a csv, and exports an xml file. I'd like to be able to get the code to work as xml and html, and view it in a browser. I am getting this error when I load the xml file into a browser:
    Firefox
    XML Parsing Error: not well-formed Location: file:///C:/Users/fenwky/XmlDoc.xml Line Number 2, Column 6:?> -----^
    Chrome
    This page contains the following errors: error on line 2 at column 16: colon are forbidden from PI names 'xsl:transform'
    This is what my c# code looks like in visual studio 2013:
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);

    Hi
    Kylee Fenwick,
    Could you show us your CSV file? And the code how do you imports a csv and exports an xml file?
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Kristen,
    Thank you in advance for your healp. Here is my CSV file:
    Item Code;Item Description;Current Count;On Order
    A0001;"Wheels, Horse on";5;No
    A0002;"Wheels, Elephant on";2;No
    A0003;"Wheels, Dog on";0;Yes
    A0004;"Wheels, Seal on";3;No
    A0005;"Wheels, Bear on";7;No
    A0006;"Bear, Teddy";2;Yes
    A0007;"Clown,";5;No
    A0008;"Puppy(crouch),";3;No
    A0009;"Puppy(stand),";2;No
    A0010;"Puppy(jump),";2;Yes
    A0011;"Pupp(lying),";1;Yes
    A0012;"(50), Cart with Blocks";0;Yes
    A0013;"(100), Cart with Blocks";5;No
    A0014;"(200), Cart with Blocks";4;No
    A0015;"Carriage, Train with 0";12;No
    A0016;"Carriage, Train with 1";10;No
    A0017;"Carriage, Train with 2";5;Yes
    A0018;"Carriage, Train with 3";4;Yes
    A0019;"Carriage, Train with 4";5;No
    A0020;"Carriage, Train with 5";2;No
    A0021;"(20), Building Blocks";15;No
    A0022;"(30), Building Blocks";13;No
    A0023;"(40), Building Blocks";16;No
    A0024;"(50), Building Blocks";5;Yes
    A0025;"(100), Building Blocks";2;Yes
    A0026;"(200), Building Blocks";8;No
    A0027;"Windmill,";5;No
    A0028;"Farmhouse,";6;Yes
    A0029;"Fencing,";22;Yes
    A0030;"Barn,";12;Yes
    A0031;"Tractor,";6;Yes
    A0032;"Animals,";3;Yes
    A0033;"House,";9;No
    A0034;"Car,";12;No
    A0035;"(small), Building";4;No
    A0036;"(medium), Building";3;No
    A0037;"(tall), Building";4;No
    A0038;"Shop,";7;No
    A0039;"Lights, Traffic";5;Yes
    A0040;"Station, Petrol";4;Yes
    And here is my code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data.OleDb;
    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    namespace CSVImporter
    public partial class CSVImporter : Form
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xml file
    const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml";
    // New code
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xsl file
    const string stylesheetsimple = @"C:\Users\fenwky\style1.xsl";
    //const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    DataSet ds = null;
    public CSVImporter()
    InitializeComponent();
    // Create a Open File Dialog Object.
    openFileDialog1.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*";
    openFileDialog1.ShowDialog();
    string fileName = openFileDialog1.FileName;
    //doc.InsertBefore(xDeclare, root);
    // Create a CSV Reader object.
    CSVReader reader = new CSVReader();
    ds = reader.ReadCSVFile(fileName, true);
    dataGridView1.DataSource = ds.Tables["Table1"];
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Test code //
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Test code //
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    // String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    String PItext = "<xsl:stylesheet xmlns:xls=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    // newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    newPI = doc.CreateProcessingInstruction("xls:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    private void btExportComplexXML_Click(object sender, EventArgs e)
    WriteXMLComplex();
    public void WriteXMLComplex()
    // Creates stringwriter
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Uses XML transformation.
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("xsl:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Saves document.
    doc.Save(xmlfilecomplex);
    //Creates a CSVReader Class
    public class CSVReader
    public DataSet ReadCSVFile(string fullPath, bool headerRow)
    string path = fullPath.Substring(0, fullPath.LastIndexOf("\\") + 1);
    string filename = fullPath.Substring(fullPath.LastIndexOf("\\") + 1);
    DataSet ds = new DataSet();
    try
    if (File.Exists(fullPath))
    string ConStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}" + ";Extended Properties=\"Text;HDR={1};FMT=Delimited\\\"", path, headerRow ? "Yes" : "No");
    string SQL = string.Format("SELECT * FROM {0}", filename);
    OleDbDataAdapter adapter = new OleDbDataAdapter(SQL, ConStr);
    adapter.Fill(ds, "TextFile");
    ds.Tables[0].TableName = "Table1";
    foreach (DataColumn col in ds.Tables["Table1"].Columns)
    col.ColumnName = col.ColumnName.Replace(" ", "_");
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    return ds;

Maybe you are looking for

  • EREC: HRRCF_A_UNREG_JOB_SEARCH Search

    Hi, The search function from this service is not working, no results are displayed almost like its not indexed. But, when i login as candidate and click ont he employment oppurtunities tab...search is working. Standard table entries missing?, we didn

  • Error copying company code in ECC 6.0

    Hi all, I encounterred the error "Enter numeric value only" aftern copying company code. This problem is exactly the same with Copying of Company Code However, I couldn't find the note Note 547875 that he mentioned in the thread. I also tried to crea

  • Premiere pro cc keeps crashing please help

    Hello and I got premiere pro cc about a month ago and it was working fine, until two days ago everytime I try to drag and drop or import a clip it just crashes. I really like this program and I would love to continue to use it can anyone please help

  • Standard movement to transfer blocked batches to a different plant/center

    I am trying to transfer blocked batches to a different plant/center where it is (from 2000 to 3000). Is there any standard movement which allows to move blocked batches to another plant/center without unblocking them? Thank you in advance. Edited by:

  • Cracked installation CD for printer, how can I get a new one?

    Hello, I have what looks like a crack in my installation disk for my Deskjet F4280. I've searched and searched the website, but can't find any information to get another one. I went through a lot of problems installing this, and I'm really nervous be