File not well formed: Process instruction name (may not be 'xml') expected
I am a WBI developer whose end result is to produce one XML file. This file will receive a number of events that will constantly append to XML file. Each appendage will contain same structure but diff data than one before. Also I have created a WBI business object to mirror the XML structure.
However, below is my XML in a Not well formed state. My error happens at first appendage ( see second tag of ><?xml version='1.0' encoding='utf-8'?>)
My question: Can I actually produce a correct XML file? if so how do I do this, is it a change needed in my Busines Object? And if I cannot then what are my other options.
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE BATCH_AUTO>
<BATCH_AUTO><POLICY><POL_TRANCODE>CHKS</POL_TRANCODE><POL_EXTRACTDTE>20050602</POL_EXTRACTDTE><POL_POLICYNO>PAA-123456789</POL_POLICYNO><POL_EFFDATE>20050101</POL_EFFDATE><POL_DUEDATE>20051201</POL_DUEDATE><POL_TOTALPREMIUM>1</POL_TOTALPREMIUM><POL_ACCTBALANCE>2.00</POL_ACCTBALANCE><POL_MAILNAME1>John Doe</POL_MAILNAME1><POL_MAILNAME2>Jane Doe2</POL_MAILNAME2><POL_MAILNAME3>Mark Doe3</POL_MAILNAME3><POL_MAILADDR1>1234567891 W1 MAIN St. A ST A WA APTAPTAPTAPT 12345678 APTAPTAPTAPT 12345678</POL_MAILADDR1><POL_CANCELDATE>20050901</POL_CANCELDATE><POL_CANCELREASON>REASON</POL_CANCELREASON><POL_SUBTOTAL>7.00</POL_SUBTOTAL><POL_TOTALFEE>1</POL_TOTALFEE><POL_TOTALADJS>4.00</POL_TOTALADJS><POL_CHECKDATE>020050525</POL_CHECKDATE><POL_CHECKNO>000001</POL_CHECKNO><POL_CHKEXPLANATION>Cancelled</POL_CHKEXPLANATION><POL_CHECKAMOUNT>5</POL_CHECKAMOUNT><POL_BANKACCTNO>8765015692</POL_BANKACCTNO><POL_BANKROUTNO>719232845</POL_BANKROUTNO><POL_TOTAMTPAID>1</POL_TOTAMTPAID></POLICY></BATCH_AUTO><?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE BATCH_AUTO>
<BATCH_AUTO><POLICY><POL_TRANCODE>CHKS</POL_TRANCODE><POL_EXTRACTDTE>20050602</POL_EXTRACTDTE><POL_POLICYNO>PAA-123456789</POL_POLICYNO><POL_EFFDATE>20050101</POL_EFFDATE><POL_DUEDATE>20051201</POL_DUEDATE><POL_TOTALPREMIUM>1</POL_TOTALPREMIUM><POL_ACCTBALANCE>2.00</POL_ACCTBALANCE><POL_MAILNAME1>John Doe</POL_MAILNAME1><POL_MAILNAME2>Jane Doe2</POL_MAILNAME2><POL_MAILNAME3>Mark Doe3</POL_MAILNAME3><POL_MAILADDR1>1234567891 W1 MAIN St. A ST A WA APTAPTAPTAPT 12345678 APTAPTAPTAPT 12345678</POL_MAILADDR1><POL_CANCELDATE>20050901</POL_CANCELDATE><POL_CANCELREASON>REASON</POL_CANCELREASON><POL_SUBTOTAL>7.00</POL_SUBTOTAL><POL_TOTALFEE>1</POL_TOTALFEE><POL_TOTALADJS>4.00</POL_TOTALADJS><POL_CHECKDATE>020050525</POL_CHECKDATE><POL_CHECKNO>000001</POL_CHECKNO><POL_CHKEXPLANATION>Cancelled</POL_CHKEXPLANATION><POL_CHECKAMOUNT>5</POL_CHECKAMOUNT><POL_BANKACCTNO>8765015692</POL_BANKACCTNO><POL_BANKROUTNO>719232845</POL_BANKROUTNO><POL_TOTAMTPAID>1</POL_TOTAMTPAID></POLICY></BATCH_AUTO>
Hi,
The <?xml version='1.0' encoding='utf-8'?>) xml declaration can occur only once and that too at the very top of the xml file before everything else. I think your best bet would be to strip the xml declaration and the doctype declaration before appending. You might want to check the API documentation of the API you are using to serialize the xml to see if it supports suppressing xml and doctype declarations.
With apache xerces, you can do
OutputFormat.setOmitXMLDeclaration(true);
where OutputFormat dictates what underlying serialized is used to serialize the document based on the specified method.
Hope this helps.
Cheers,
vidyut
Similar Messages
-
"Could not initiate the BPEL process because the input xml is not well form
hi all,
i am new to BPEL and tring to create a BPEL WebServices. now i got struck up with one issue like below
"Could not initiate the BPEL process because the input xml is not well formed, the reason is : Error parsing envelope Please correct the input xml."
But according to BPEL compiler there are no errors in the design and deployment as well. when i tries to initiate the deployed WS i am facing the above issue.
can anybody help me to fix this issue. Thanks in advance.
Regards,
Kalyanhi' Kalyan,
The issue seems to be due to XSD file which you are importing while making the new BPEL process,
the XSD file is very sensitive even a simple upper case will create error, XSD file are many times used when you want
to pass some entries to be updated in the database.
use this XSD file:"discountflow.xsd"
<schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://www.autoloan.com/ns/autoloan"
xmlns:tns="http://www.autoloan.com/ns/autoloan"
xmlns="http://www.w3.org/2001/XMLSchema">
<!--<element name="Demo" type="tns:DemoType"/>-->
<element name="Order" type="tns:OrderType"/>
<complexType name="OrderType">
<sequence>
<element name="orderid" type="int"/>
<element name="tenantid" type="int"/>
<element name="orderstatusid" type="int"/>
</sequence>
</complexType>
</schema>
<complexType name="Discount">
<sequence>
<element name="approval" type="boolean"/>
<element name="discount" type="int"/>
<element name="quantity" type="int"/>
</sequence>
</complexType>
</schema>
-Yatan -
0x8004005 / Error: Configuration file is not well-formed XML
Hello,
I am getting a complete headache from this! I uninstalled Visual Studio 2013 Ultimate and installed in on another hard drive. Since then nothing works! It seems to be an error with IIS...
The following happens:
When I want to create ASP.NET Empty Web Application:
When I ceate an ASP.NET MVC 4 Web Application
When I open an existing project:
similar to first screenshot, can only upload 2 images...
I already tried the following:
Reinstalling Visual Studio Ultimate 2013
Reinstalling IIS Express 8
Thanks!Hi,
In order to resolve your problem. You should give us some information:
First, is there any error occur when you install the VS or do you can successfully install the VS? You can use
http://aka.ms/vscollect to gather the latest installation logs. After using it, you will find vslogs.cab from %temp% folder. Please upload the file to
https://Onedrive.live.com/ and share the link here.
Second, the error may related to .NET FrameWork. You can use the tool in the link to check the .NET Framework Setup:
http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
If there are something wrong, you should repair the .NET framework.
At last, there is a blog related to the error, you can follow up to handle your issue:
http://blogs.msdn.com/b/acoat/archive/2013/04/23/iisexpress-configuration-file-is-not-well-formed-xml.aspx
Best Wishes!
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. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
R12 - Format Payment Instructions XML Parsing Error: not well-formed
We are going from 11.5.10 to R12,
We followed the Note : 562806.1 to generate the XML file but we are getting the following error?
XML Parsing Error: not well-formed
Location: http://XXXXXXXXXXXXXX.com:8030/OA_CGI/FNDWRR.exe?temp_id=3412576704
Line Number 1, Column 9:%PDF-1.4
--------^
Any help or suggestions would be great!
ThanksPlease see if the solution in (BI Publisher Reports End With Error When There Is An Ampersand Character ( & ) On The Xml Data File [ID 1081175.1]) is applicable.
Thanks,
Hussein -
Could not initiate the BPEL process :the input xml is not well formed err
Hi
I am calling a bpel process from the bpel console. It is a syncronous process and just fetches values from the database. I see that when ever i call this for some inputs i get the following error , in the response.
Could not initiate the BPEL process because the input xml is not well formed, the reason is :
Error parsing envelope: (1, 6168) Invalid char in text. Please correct the input xml.
When i see the log i have the following message
fault.collaxa.cube.ws> <AdapterFramework::Outbound> Returning outbound XMLRecord for OutputParameters
Exception: Error parsing envelope: (1, 6168) Invalid char in text.
e.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:103)
e.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
e.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:935)
ate__ws._jspService(_ngDoInitiate__ws.java:455)
erver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
.runtimev2.JspPageTable.service(JspPageTable.java:453)
.runtimev2.JspServlet.internalService(JspServlet.java:591)
.runtimev2.JspServlet.service(JspServlet.java:515)
let.http.HttpServlet.service(HttpServlet.java:856)
nd.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
urity.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
ity.AccessController.doPrivileged(Native Method)
rity.auth.Subject.doAsPrivileged(Subject.java:517)
I understand that the error is coming with parsing the output from the database values. Further i see the process is completed successfully when i see the flow and log and the out is present in the output response. Has any body faced this issue. What is that character that it is nto able to parse as the error says.
Thanks
-Pradiphi
I have tried it using both xml and the initiate tab. I get the same error every time i do it for a particular value. i further think that this is occuring for the out put response that is got from the data base as the log says. ( given in the initial post). I can surely paster the input xml for you
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/top/InputXXESIOEHEADERSIFACE">
<ns1:XxesiOeHeadersIfaceCollection>
<ns1:XxesiOeHeadersIface>
<ns1:orderSource></ns1:orderSource>
<ns1:originalsystemreference></ns1:originalsystemreference>
<ns1:customerNumber></ns1:customerNumber>
<ns1:Country></ns1:Country>
</ns1:XxesiOeHeadersIface>
</ns1:XxesiOeHeadersIfaceCollection>
</soap:Body>
</soap:Envelope> -
XML parsing error: not well formed Location:file///c:users/
I have been trying to download tax info from the I.R.S site. When I try to open the downloads I get this error message:
XML parsing error: not well formed
Location: file///c:/Users/John/Downloads/available Transcripts.xhtml
line number 1, Column 9Are you sure that this is an XML file and not some other file type like PDF that got saved with the wrong file extension?
You can try to rename the file and change the file extension to .pdf to see if that works. -
Could not initiate the BPEL process because the input xml is not well forme
Your test request generated the following exception/fault:
Could not initiate the BPEL process because the input xml is not well formed, the reason is :
Error parsing envelope: (2, 152) Invalid char in text. Please correct the input xml.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
<ns1:RO_Update2ProcessRequest>
<ns1:UserName>operations</ns1:UserName>
<ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
<ns1:API_VER>1.0</ns1:API_VER>
<ns1:P_commit>T</ns1:P_commit>
<ns1:init_msg>T</ns1:init_msg>
<ns1:Org_ID>207</ns1:Org_ID>
<ns1:R_Number>10782</ns1:R_Number>
<ns1:R_Status>1008</ns1:R_Status>
<ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
</ns1:RO_Update2ProcessRequest>
</soap:Body>
</soap:Envelope>Try
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns1:RO_Update2ProcessRequest xmlns:ns1="http://xmlns.oracle.com/RO_Update2">
<ns1:UserName>operations</ns1:UserName>
<ns1:Responsibility>Depot Repair Engineer</ns1:Responsibility>
<ns1:API_VER>1.0</ns1:API_VER>
<ns1:P_commit>T</ns1:P_commit>
<ns1:init_msg>T</ns1:init_msg>
<ns1:Org_ID>207</ns1:Org_ID>
<ns1:R_Number>10782</ns1:R_Number>
<ns1:R_Status>1008</ns1:R_Status>
<ns1:Obj_Ver_No>1</ns1:Obj_Ver_No>
</ns1:RO_Update2ProcessRequest>
</soap:Body>
</soap:Envelope> -
Hi Everyone,
I've been battling with this for a while and I'm getting nowhere. I'm attempting to install DPM 2012R2 onto a fresh VM with a local SQL installation. The setup is as follows:
Server OS: 2008R2 SP1
SQL: 2008 R2 standard with SP3(tried SP2 before this)
Collation: SQL_Latin1_General_CP1_CI_AS
Reporting services installed: Yes(ticked do not configure during the installation)
Enabled reporting servics on port 80 with the default URL
DPM Installation does not throw any errors during the preinstall stage(The server passes all the checks)
Basically, when Installing. I get this error(extract):
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployFileInServer(Boolean recreate, ReportDBInfo rptInfo)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployReports(String sourceFolderPath, Boolean recreate, Boolean calledFromSetup)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.InstallReports(Boolean calledFromSetup, String sourceFolderPath, String sqlServerName, String sqlInstanceName, String dbConnectionString)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
[10/12/2014 2:35:25 p.m.] * Exception : => Report configuration failed.Verify that SQL Server Reporting Services is installed properly and that it is running.Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.BackEndErrorException: exception
---> Microsoft.Internal.EnterpriseStorage.Dls.Setup.Exceptions.ReportDeploymentException: exception ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.ReportingException:
exception ---> System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: The report definition is not valid or supported by this version of Reporting Services. This could be the result of publishing a report definition of
a later version of Reporting Services, or that the report definition contains XML that is not well-formed or the XML is not valid based on the Report Definition schema. Details: Root element is missing.
at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)
at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Reporting.ReportingService2005.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.CreateReport(String pathOfReport, ReportDBInfo rptInfo)
--- End of inner exception stack trace ---
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.CreateReport(String pathOfReport, ReportDBInfo rptInfo)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployFileInServer(Boolean recreate, ReportDBInfo rptInfo)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.DeployReports(String sourceFolderPath, Boolean recreate, Boolean calledFromSetup)
at Microsoft.Internal.EnterpriseStorage.Dls.UI.Library.Reporting.Reporter.InstallReports(Boolean calledFromSetup, String sourceFolderPath, String sqlServerName, String sqlInstanceName, String dbConnectionString)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
--- End of inner exception stack trace ---
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ReportingConfiguration.DeployReports(Boolean isRemoteReporting, String sqlMachineName, String sqlInstanceName, String rsMachineName, String rsInstanceName, String installerPath)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.DeployReports(String reportserverConfigFilePath, Boolean isOemSetup, String sqlMachineName, String sqlInstanceName, Boolean isRemoteReporting, String reportingServerMachineName, String
reportingInstanceName)
--- End of inner exception stack trace ---
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.BackEnd.DeployReports(String reportserverConfigFilePath, Boolean isOemSetup, String sqlMachineName, String sqlInstanceName, Boolean isRemoteReporting, String reportingServerMachineName, String
reportingInstanceName)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.DpmInstaller.DeployReports(Boolean isRemoteReporting, Boolean isUpgrade)
at Microsoft.Internal.EnterpriseStorage.Dls.Setup.Wizard.ProgressPage.InstallerThreadEntry()
*** Mojito error was: ReportDeploymentFailed; 0; None
[10/12/2014 2:35:25 p.m.] *** Error : Report configuration failed.
Verify that SQL Server Reporting Services is installed properly and that it is running.
ID: 812
[10/12/2014 2:35:25 p.m.] Information : Data Protection Manager installation has failed. All the items that were copied during the installation process have been removed.
For details, click the Error tab.
Any ideas?
I've managed to get it to this stage. Originally I didn't have encryption keys or a listening port(which I fixed).Can you try following steps:
If there are SSL certificates on your computer, by default SQL 2008
installation configures HTTPS for reporting websites. When DPM tries to
deploy reports on these websites it may fail if the reporting websites
are not accessible (might be due to invalid/expired certificates). To
workaround this, provided you do not require HTTPS for reporting websites do
the following:
1. Edit C:\Program Files\Microsoft DPM\SQL\MSRS10.MSDPMV3BETA1EVAL\Reporting
Services\ReportServer\rsreportserver.config
2. Set the SecureConnectionLevel to 0 if the current value is 2 (A value to
2 means secure connection is required)
3. Connect to SQL reporting service configuration manager and connect to the
instance MSDPMV3BETA1EVAL
4. Click on Web Service URL, click advanced and remove SSL identities
5. Repeat the above for Report Manager URL
6. Make sure report manager URL and web service URL are accessible with out
any errors.
6. Restart report server
If that doesn't solve the problem, please try following steps:
1. Open Start-> All programs->SQL server 2008->Configuration Tools->Report
Server Configuration Manager
2. Connect to the instance which the DPM is using to install.
3. Browse Report Manager URL and web service url
4. If report manager URL or web service url throws any error say 500 or 404
fix the error. (Try also replacing machine name with localhost in url)
5. Otherwise delete DPMReports folder (if present) using below instructions
6. Restart reporting services
7. Try DPM setup again.
Deleting DPM reports:
1. Open report manager URL in IE
2. Click show details on right hand side
3. Put a tick against DPMReports folder
4. Click Delete button.
Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx -
XML from CF not well-formed?
I have been working through the Training from the Source book
on Flex2 (Trapper, Boles, Talbot, etc.). In Lesson 17, it deals
with accessing server-side objects.
One piece of code accesses a CF template, which brings in an
XML file:
<mx:HTTPService id="prodByCatRPC"
url="
http://localhost/flexGrocer/xml/categorizedProducts.cfm"
result="prodByCategoryHandler(event)"
resultFormat="e4x" />
The CF plate from the book's file has the following:
<cfheader name="Expires" value="#now()#" />
<cfxml variable="xProducts">
<cfinclude template="categorizedProducts.xml">
</cfxml>
<cfset xmlObject=ToString(xProducts)>
<cfcontent type="text/xml" />
<cfoutput>#variables.xmlObject#</cfoutput>
When run the Flex file, I get a run-time message which seems
to indicate that the XML is not well-formed. (Here is a bit of the
message; not sure I'm understanding it!):
[RPC Fault faultString="Error #1088: The markup in the
document following the root element must be well-formed."
faultCode="Client.CouldNotDecode" faultDetail="null"]
I am ASSUMING that the CF page is not returning the xml as
desired, because if I simply change the flex http service call to
the xml file that the CF page is including, the flex app runs as
expected and without errors:
url="
http://localhost/flexGrocer/xml/categorizedProducts.xml"
(something in the posting mech is making the above url
statement messed up, but you can probably tell what I mean)
I am a CF developer and although haven't used the book's
exact method to get the cf generated xml, I have done so
successfully for Spry and other things.
I tried some ot the things I had to do to get the CF
generated xml to work in Spry with this flex, but didn't help.
Tried adding a reset='true" with the cfcontent tag; tried making
the cfcontent wrap the output; added cfprocessing tags to
suppresswhitespace.
Appreciate any thoughts/help on how to solve this. Also,
whether others agree that the problem is with the generated xml
rather than something else.
Thanks
KeithI don't remember the exact context when I first posted this
question and answered it; but, if one doesn't want to change
overall settings for debugging in cf admin., I *think* you can
ajust for a specific area using cfsetting and/or
cfprocessingdirective. There's a number of attributes and
combinations there that I think can take care of the problem. I
forget for sure, but may want to try that, especially on a
development box where you might generally want debugging to be on.
Also, if using cfcs in any part of what you generate, they
can produce whitespace. To solve (or minimize), make sure that
output attribute in the component is false and that output in
function is false (unless directly outputting within the function.
Seems like CF and whitespace is an ongoing item to try to
manage.
Keith -
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> -
Hi guys,
I need to parse an XML file which is not well formed.
For example, the value of an element named 'topic' contains html tags which are not ended properly etc..
e.g. <topic>Some text <BR></topic>
Why do I need this? Because some idiots on their web site publish XML data (not well formed) which indeed is very valuable to me, and I want to use it. I tried contacting them on the "not-well-formed-XML" issue but haven't managed to get a reply yet. Hence I have been struggling with this using the SAX API and so on...
I think there should be a way to ignore some elements' content when parsing the XML data but I haven't been able to do it...I am not experienced on SAX or DOM API's...
For example if the problem is caused only by the BR tags then when I encounter it, either startTag or endTag, I should be able to ignore it. When I say "ignore", I mean "not change the state of the parser", or undo the last state change or whatever...Well at least I think I would write an XML parser like this if I were to do that...
Any help is appreciated...Sorry to be the bearer of bad news.
There is no such thing as an "XML file which is not
well formed." There are files that look like they
might be XML files but are not valid. I think that is
what you have. One of the key differences between XML
and HTML is that HTML has allowed sloppy habits to
become routine. XML prohibits them from getting past
the hurdle of validation.
Dave PattersonI'm not sure about the comments that you have made about the validity and well-formedness about XML documents. As I said I'm not experienced in XML but as far as I understand, a document is called "valid" when it conforms to all the constraints imposed by a DTD. However, there is no DTD in my case and the XML document I have is not "well-formed" as defined below:
A well-formed XML document is syntactically correct. It does not have any angle brackets that are not part of tags. (The entity references < and > are used to embed angle brackets in an XML document.) In addition, all tags have an ending tag or are themselves self-ending (<slide>..</slide> or <slide/>). In addition, in a well-formed document, all tags are fully nested. They never overlap, so this arrangement would produce an error: <slide><image>..</slide></image>. Knowing that a document is well formed makes it possible to process it. A well-formed document may not be valid however. To determine that, you need a validating parser and a DTD.
According to the above definition the XML document I have violates the constraints and not well formed. But you can argue that the XML document I got is not an XML document but it is just some document :) Then anyway, I am not sure about all this terminology...
The technique you suggested seems reasonable but as far as I know the SAX parser stops parsing when a fatal error is encountered. So I don't know how I will trap/ignore the error and continue...
As for the JTidy suggestion:
I have tried using HttpUnit which uses JTidy and couldn't get it right. I think when a DOM is created using JTidy the document must also be well formed (XHTML or whatever)...Am I wrong here?
Thanks a lot... -
Error: XSQL-005: XSQL page is not well-formed
I am tring to execute the following simple query:
<?xml version="1.0"?>
<xsql:query connection="rio" xmlns:xsql="urn:oracle-xsql">
select user from dual
</xsql:query>
using XSQL with Sun's JavaWebServer2.0 and am getting the following error:
Oracle XSQL Servlet Page Processor 1.0.4.1 (Production)
XSQL-005: XSQL page is not well-formed.
XML parse error at line 2, char 1
Expected 'EOF'.
Running the XML syntax check in JDeveloper shows no errors. Any ideas of where the configuration may have gone wrong?
Thanks,
Claire
nullSteve,
Actually any file name (even if the file does not exist) is returning the same error.
I tried using Web-to-Go and I am getting the following error:
"WTG-10109: Web-to-go could not locate requested URL
Web-to-go could not locate requested URL /xsql/index.html"
I have my test .xsql files in a c:/xsql/xtest folder and am calling them through http://localhost:8080/xsql/xtest/message.xsql for the JWS and trying http://localhost:7070/xsql/index.html (WTG)to see the index.html, but no joy..
Any other ideas?
Thanks,
Claire
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steve Muench ([email protected]):
Do you maybe have two versions of this file? One that JDev is checking and the other that the web server is reading?
Try renaming the file you think that the XSQL Servlet is serving, then re-request it through the browser with the OLD name. Do you now get an error like "unable to locate file?" or do you still see the parse error?<HR></BLOCKQUOTE>
null -
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; -
Sharepoint and Robohelp 11 - The Server tag is not well formed
Hello!
We have published our project in Sharepoint library with Publish - Sharepoint (Native) settings and System Master Page
When we try to open any .aspx file from this library, we get an error:
"An error occured during the processing of /sites/it/Robohelp/desktop/Izmenenia.aspx. The Server tag is not well formed ."
In Sharepoint logs we don't see any errors, only this request:
2014-09-30 12:51:00 ****IP GET /sites/it/Robohelp/desktop/Izmenenia.aspx - 80 ***user ***IP Mozilla/5.0+(Windows+NT+6.2;+WOW64;+rv:32.0)+Gecko/20100101+Firefox/32.0 - 200 0 0 93
Anyone else got this problem?Hi,
You are generating Responsive HTML5, right? Can you open one of the generated ASPX topics with notepad? In the first line, which of the following do you see:
<%@ Page Language="C#" masterpagefile="~masterurl/custom.master"
or:
<!DOCTYPE HTML>
I have tested this issue and on RoboHelp 11, the SharePoint native generation for Responsive HTML5 simply doesn't work. (It generates regular topics instead of ASPX files only with the extension ASPX.) This is a bug so please report it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
Kind regards,
Willam -
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 SinghalHi 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.
Maybe you are looking for
-
Testing the JDBC adapter communication channel
Hi I've created an interface which gets the sender payload using a JDBC adapter. Basis have installed the JDBC driver for the database where the data resides I've configured the communication channel to poll every 10 minutes So far nothing appears to
-
this is happening more and more frequently: google map isn't fully drawing a map for a given area. This is happening in both wi-fi and 3G contexts. Any ideas?
-
Aperture Vault or Time Machine
I just migrated from being a long time Windows user (and using Lightroom) to my first iMac and Aperture. Just beginning to import my images into Aperture and had read a few posts about "vault" which I assume is Aperture's way of backing up either it'
-
So, I got a l letter from BT today saying that they were going to upgrade my broadband (currently option 2) to infinity for free. Quote: "There will be no change to your existing contract term or charges - the amount you pay will remain the same." Gr
-
Checking Repair History on Used MacBook Pro
I'm thinking of buying a used MacBook Pro off of someone. I believe there is a link where you can check the units repair history via its serial number? Does anyone know where that link is on the Apple Website? Thanks JB