ADF page breaks on refresh. XML parsing error

Hi all,
One of my jspx page breaks when the browser 'refresh' button is clicked.
The error is the same but worded differently on different browsers.
A snippet
FF
XML Parsing Error: mismatched tag. Expected: </link>.
Location: https://xxxxx
Line Number 85, Column 21:Chrome
This page contains the following errors:
error on line 85 at column 26: Opening and ending tag mismatch: link line 0 and head
Below is a rendering of the page up to the first error.I'm passing parameters to this page with setPropertyListener, but I do the same for my other pages, all of which do not crash on refresh.
Click on some link on this page then use the browser 'Back' button will not cause this error. Only 'refresh' is not working.
Any ideas? Thanks in advance.

Hi,
Its close to impossible to guess without any information / code snippet.
1. What is your JDev version?
2. Which tag causes this issue? (What is there in Line Number 85, Column 21:?)
3. Have you tried to simulate the same behavior in a simple application with only one page?
-Arun

Similar Messages

  • XML parsing error registering a JSR168 portlet

    Hi, I'm trying to register a deployed application as a portlet provider, and I'm getting an XML parsing error (full details below). Basically, when I complete the Register Provider wizard, it falls over with "Illegal Namespace prefix: xml".
    I'm guessing this is coming from the service description: the response from WSRPServiceDescriptionService.getServiceDescription contains xml:lang="en" attributes on many of the elements.
    Anyone have any ideas how to fix this? Should these attributes not be present, or should the portal be able to parse them?
    I'm using the following versions:
    JDeveloper Studio Edition 10.1.3.2.0.4066
    Oracle Application Server 10.1.2.0.2
    Oracle Portal 10.1.4
    Oracle Java Portlet Container 10.1.4 (wsrp-install.jar from Portlet PDK)
    ADF Runtime 10.1.3.40.66
    Thanks,
    Full exception details:
    An error occurred when attempting to call the providers register function. (WWC-43134)
    An error occurred during the call to the WSRP Provider: java.rmi.RemoteException: Runtime exception; nested exception is:
    deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:1: com.sun.xml.rpc.sp/Illegal Namespace prefix: xml
    com.sun.xml.rpc.encoding.DeserializationException: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:1: com.sun.xml.rpc.sp/Illegal Namespace prefix: xml
    com.sun.xml.rpc.encoding.DeserializationException: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:1: com.sun.xml.rpc.sp/Illegal Namespace prefix: xml
    com.sun.xml.rpc.streaming.XMLReaderException: XML parsing error: com.sun.xml.rpc.sp.ParseException:1: com.sun.xml.rpc.sp/Illegal Namespace prefix: xml
    Java stack trace from root exception:
    com.sun.xml.rpc.sp.ParseException:1: com.sun.xml.rpc.sp/Illegal Namespace prefix: xml
    at com.sun.xml.rpc.sp.Parser2.fatal(Parser2.java:2015)
    at com.sun.xml.rpc.sp.Parser2.fatal(Parser2.java:2000)
    at com.sun.xml.rpc.sp.Parser2.processStartElement(Parser2.java:2794)
    at com.sun.xml.rpc.sp.Parser2.parseContent(Parser2.java:3036)
    at com.sun.xml.rpc.sp.Parser2.parse(Parser2.java:2360)
    at com.sun.xml.rpc.streaming.XMLReaderImpl.next(XMLReaderImpl.java:105)
    at com.sun.xml.rpc.streaming.XMLReaderBase.nextContent(XMLReaderBase.java:23)
    at com.sun.xml.rpc.streaming.XMLReaderBase.nextElementContent(XMLReaderBase.java:41)
    at oracle.webdb.wsrp.PortletDescription_LiteralSerializer.doDeserialize(PortletDescription_LiteralSerializer.java:94)
    at com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:174)
    at com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:84)
    at oracle.webdb.wsrp.ServiceDescription_LiteralSerializer.doDeserialize(ServiceDescription_LiteralSerializer.java:88)
    at com.sun.xml.rpc.encoding.literal. (WWC-43273)

    This might not be related at all, but...
    Did you specify J2EE 1.3 (Servlet 2.3/JSP 1.2) when you created the portlet and did you compile the project with JDK 1.4.x...?
    ...'cause whenever I've forgotten to do the above and try to deploy to Portal 10.1.4 on OAS 10.1.2.0.2 (which is J2EE 1.3-based) all heck breaks loose...

  • Since installing the latest update, Firefox will not load; it gives me the following error -- XML Parsing Error: not well formed.

    since installing the latest update, Firefox first operated with some errors but now will not load at all; it gives me the following error --
    XML Parsing Error: not well formed
    locations chrome://browser/content/browser.xml
    Line Number 1191, column 20:
    utton id="back-forward-dropmarker" type="menu" chromedir="&locale.dir;"-------------------
    please note that the words "utton ID" are exactly as the error message gives it; and at the end of the message there are exactly 19 hyphens.
    I don't know why this faulty code is referencing things to do with "chrome"... the Chrome browser is not installed on this PC or anywhere on our network.
    Also, this is not the first problem I had after clicking Firefox's prompt for the latest update. Before Firefox retreated into this error message, it was loading but running with some faults...
    1. the bookmark symbol was not appearing on the right hand side of the URL line, so I had always to click on "bookmark this page", after which the bookmark symbol did appear; however I don't know if the bookmarking function worked properly.
    2. the back and forward buttons were not highlighted, as if I had not come from a previous page; so once I clicked on a link to a new page I could not go back to where I came from because Fiefox thought I hadn't come from anywhere.
    3. there may have been other errors, but I did not find them.
    How do I reinstate my Firefox program to work properly please? do I have to download the latest version and reinstal? if so, do I have to remove the old version first? or is there a fix?
    Even to write this message I have been forced to use (yuk -- I don't like to say this!!!) Internet Explorer. So please -- I need help urgently.
    Thanks,
    NOEL

    Some how I solved my problem by opening a user account and downloading Firefox 4.0 beta and installing it, I did try it, worked fine, so I did close the user account and did go back to my own account(switched user), the main page that I had problem with Firefox which would not open, I dabble click on Firefox it start working again!! I hope that solves your problem too.
    firefox will not open, it gives me this cod and would not turn off, Error on switching in renew: NS_ERROR_UNEXPECTED, Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref] id: none

  • I am recieving an xml parsing error message on a website I use for work. It used to work on firefox but now it has stopped. It works with other browsers though.

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://evalue.internationaldelivers.com/service/SVCDOCS/Navistar/isisxsl.xsl
    Line Number 2, Column 1:<?xml version='1.0'?>
    ^
    That is the error I receive the page loads and half the content appears but the other half is blank and I receive that instead. I can attach a screenshot if needed.

    May be cookies issue try this
    Reload the webpage while bypassing the cache
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Clear the cache and the cookies from sites that cause problems.
    '''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    '''Remove Cookies''' from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them

  • XML parsing error: web-jsptaglibrary_1_1.dtd not found

    I'm getting the following Exception while Tomcat is parsing my welcome jsp page:
    exception
    org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/struts-template.tld: Internal Error: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
         at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:227)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
         at org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspParseEventListener.java:1170)
         at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:765)
         at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:125)
         at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:255)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    This is the reference to the dtd its not finding from the tld
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
    Do you think this is a bug with the parser itself or an incompatablilty between it and the tag library?
    Or am I missing something?
    Thanks for any help..... Andy

    Store the web-jsptaglibrary_1_1.dtd to a directory and specify the file url.
    <!DOCTYPE taglib  SYSTEM "file://C:/dtds/web-jsptaglibrary_1_1.dtd">

  • XML Parsing Error: no element found Location:Line Number 1, Column 1:

    Hi,
    i have a servlet code in which i am using bouncy castle encryption algorithm , if i tried to run that servlet on embeded weblogic server than my servlet works fine without error.
    but if i deploy same Servlet code on SOA domain console than i get following error.
    XML Parsing Error: no element found
    Location: http://localhost:7001/Encryption-PGPEncrypt-context-root/pgpservlet
    Line Number 1, Column 1:
    Please help me friends...

    Hi Chandra,
    Based on my research, the error message is only generated by FireFox when the render page is blank in Internet. For some reason, .NET generates a response type of "application/xml" when it creates an empty page. Firefox parses the file as XML and finding
    no root element, spits out the error message.
    Also, based on your description, the other sites are opened correctly, the issue only happened in Central Administration(CA). This means the SharePoint services are working fine.
    Since this issue only occurred in the CA, it might be due the application pool for the CA is corrupted. Please try to restart the application pool for the CA to resove the issue:
    1. Open Internet Information Service(IIS)
    2. List the application pools
    3. Select the application pool used for the CA
    4. Stop it, and then start it again.
    Note, if the application pool is running in Classic mode, please change it to be Integrated mode.
    Additionally, I found a similar thread, which may help you too:
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/824d7dda-db03-452b-99c4-531c5c576396
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • XML Parsing Error: no element found Line Number 1, Column 1:

    Hi All,
    I have deployed EAR on my standalone server using JDEV 11.1.1.6.0. I am able to get the WSRP portlet producer page on
    http://<server>:7001/contextRoot. But when i try to click on any of the WSDL URL it gives me "XML Parsing Error: no element found Line Number 1, Column 1:"
    and from IE it gives me: XML document must have a top level element. Error processing resource
    there can be a issue with the WSRPContainer.jar file. So i have remove it from my deployment profile, EAR and lib/classpath files.
    Can you please suggest a workaround.
    Regards,
    ND
    Edited by: ND on Dec 4, 2012 9:57 PM

    Hi All,
    this error normally comes when the WLS domain is not not properly created. if you get some exception for ./provesecurity.sh file while creating the domain, then the XML error comes.
    I did not went into the depth but figured out a workaround: restart the VM/hosted box and then create the domain, remember to use diff port name while creating it from the domain creation script.
    Regards,
    ND

  • Mobil.aftonbladet.se results in XML Parsing Error: undefined entity

    On Nokia N900.
    Was OK before, but now (since friday 27 aug 2010) gives:
    XML Parsing Error: undefined entity
    Location: http://mobil.aftonbladet.se/
    Line number 18, Column 366:
    ...

    Hi, thanks for the reply. That site is OK now.
    If you have time, check out mobil.dn.se, which gives similar error on my N900:
    XML Parsing Error: mismatched tag...
    Which sounds like their web-programmers need some basic training. But that site is displayed correctly by Firefox 3.5.6 on my PC. I suppose that version is more tolerant to errors in the web pages? Will the mobile version of Firefox be developed to be more like the PC version in that way?

  • 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;

  • Since update message "XML Parsing Error: undefined entity Location: chrome://browser/content/browser.xul Line Number 238, Column 5:" Tried everything - help!

    Since an automatic update ran I get the message <br />
    "XML Parsing Error: undefined entity <br />
    Location:chrome://browser/content/browser.xul <br />
    Line Number 238, Column 5: <br />
    <broadcaster id="devtoolsMenuBroadcaster_ChromeDebugger"----^"<br />
    when I try to open Firefox. I have had to go back to using Internet Explorer - Tried everything suggested including deleting then reinstalling Firefox, but still cannot get Firefox to open - help!

    Hello,
    Certain Firefox problems can be solved by performing a ''Clean reinstall''. This means you remove Firefox program files and then reinstall Firefox. Please follow these steps:
    '''Note:''' You might want to print these steps or view them in another browser.
    #Download the latest Desktop version of Firefox from http://www.mozilla.org and save the setup file to your computer.
    #After the download finishes, close all Firefox windows (click Exit from the Firefox or File menu).
    #Delete the Firefox installation folder, which is located in one of these locations, by default (your profile folder with bookmarks etc. WILL NOT BE DELETED):
    #*'''Windows:'''
    #**C:\Program Files\Mozilla Firefox
    #**C:\Program Files (x86)\Mozilla Firefox
    #*'''Mac:''' Delete Firefox from the Applications folder.
    #*'''Linux:''' If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see [[Installing Firefox on Linux]]. If you downloaded and installed the binary package from the [http://www.mozilla.org/firefox#desktop Firefox download page], simply remove the folder ''firefox'' in your home directory.
    #Now, go ahead and reinstall Firefox:
    ##Double-click the downloaded installation file and go through the steps of the installation wizard.
    ##Once the wizard is finished, choose to directly open Firefox after clicking the Finish button.
    Please report back to see if this helped you!
    Thank you.

  • Xml parsing error...on n900

    whenever i try to get into certain normal sites. i get this error page..
    xml parsing error: not well-formed
    pls help me

    I am getting this too - everything was working fine until a couple of days ago. Have installed NOTHING new or changed any settings on my phone...It happens alot with facebook mobile, maemo select and in particular the google mobline link that comes already on the phone.
    Whats going on?

  • XML Parser Error while creating Web service Client using JAX RPC

    hello evryone,
    Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
    wscompile -gen:client -d build -classpath build config-wsdl.xml
    here im getting Error:
    error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
    Please help me out.
    Many thanks in advance,
    Kacee

    Can i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.

  • XML Parsing Error: no element found In BI Publisher

    Hi Gurus,
    I tried to get XML output for a Data Model which was based on SQL queries.
    But I got the following error in Firefox
    XML Parsing Error: no element found
    Location: http://localhost:9704/xmlpserver/servlet/xdo
    Line Number 4, Column 1:
    In IE I got an other error:
    There is no end tag for DATA_SET
    Any ideas?
    Many thanks
    Laszlo

    Hi,
    I use 11g.
    I tried to create element link when I got this error.
    Now I am using groupink.
    Without using bind variable I got result (Cartesian product)
    However if i created and used bind variable I got the same error
    this is a dept data set:
    select     "DEPARTMENTS"."DEPARTMENT_ID" as DEPTNO,
         "DEPARTMENTS"."DEPARTMENT_NAME" as "DEPARTMENT_NAME",
         "DEPARTMENTS"."LOCATION_ID" as "LOCATION_ID",
         "DEPARTMENTS"."MANAGER_ID" as "MANAGER_ID"
    from     "HR"."DEPARTMENTS" "DEPARTMENTS"
    this is the emp data set:
    select     "EMPLOYEES"."COMMISSION_PCT" as "COMMISSION_PCT",
         "EMPLOYEES"."DEPARTMENT_ID" as "DEPARTMENT_ID",
         "EMPLOYEES"."EMAIL" as "EMAIL",
         "EMPLOYEES"."EMPLOYEE_ID" as "EMPLOYEE_ID",
         "EMPLOYEES"."FIRST_NAME" as "FIRST_NAME",
         "EMPLOYEES"."HIRE_DATE" as "HIRE_DATE",
         "EMPLOYEES"."JOB_ID" as "JOB_ID",
         "EMPLOYEES"."LAST_NAME" as "LAST_NAME",
         "EMPLOYEES"."MANAGER_ID" as "MANAGER_ID"
    from     "HR"."EMPLOYEES" "EMPLOYEES"
    WHERE "EMPLOYEES"."DEPARTMENT_ID" =:DEPTNO
    Thanks for any tip!
    Laszlo

  • Xml parsing error while selecting whole result set for sql query

    Hi All,
    I am having xml parsing error while selecting whole query result set. The data is coming fine for default result set of 50 rows.
    My exception is below.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "xsi" is not declared
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    *31011. 00000 - "XML parsing failed"*
    **Cause: XML parser returned an error while trying to parse the document.*
    **Action: Check if the document to be parsed is valid.*
    My sql query is below that is giving results for default result set of 50 rows.
    select extract(xmlType(clob_xml_colm_name), '//v2:node1//childnode/text()','xmlns:v2="namespace_url"').getStringVal()  from table_name
    My sql developer version is below.
    Java(TM) Platform     1.7.0_04
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    My database version is below.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Please could any one help me urgently as the sql query is supposed to be correct as it is returning query results, but the problem happening when i try to select whole result set.
    Thanks and regards,

    What does the XML look like? It appears that some of the supposed XML stored as a CLOB is not really valid XML. Find the row in the table that is causing your issue and review the "XML" in it.

Maybe you are looking for

  • My MacBook Pro wont start

    I know this has probably been asked a million times, Im not sure if this has anything to do with whats up with my mac but i just installed the latest update and once I shut it down and rebooted it after a few days nothing happened other than it kept

  • HT201272 The 1 app that I liked most is no longer available and I can not download it again, why?

    I lost my old phone so when receiving my new one I'd hope to re install all my old apps but 1 was not available, why? It was called cartoon HD

  • A web service design question

    Hello, I�d like to ask for your help in the following design issue: I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following: - based on the given parameters

  • PreparedStatements and MySQL Connector/J

    Hi All, I was wondering what is the exact SQL statement that is passed to MySQL server when we use PreparedStatements. I was trying using MySQL Connector/J, type4 driver. I tried with a simple servlet     public void doGet(HttpServletRequest request,

  • REALLY noisy fan on 24" iMac

    Hi. I got my iMac 24" September 2008. This year, or maybe late 2009, the fan started making small noises. Now, a week ago maybe, the fan is like a vacuum cleaner! I start my Mac, a minute or two later the fan is loud. I can hear that its going louder