[Servingxml-help] Content is notallowed in prolog?
Brought to you by:
danielaparker
From: Akhil S. S. <ak...@ma...> - 2006-02-02 13:20:31
|
While converting from xmltocsv I get this error=0D=0A=0D=0A=20=0D=0A=0D=0A[= Fatal Error] :1:1: Content is not allowed in prolog.=0D=0A=0D=0Acom.serving= xml.util.ServingXmlException: Content is not allowed in=0D=0Aprolog.=0D=0A=0D= =0A at=0D=0Acom.servingxml.components.xmlpipeline.Pipeline.execute(P= ipeline.java:94)=0D=0A=0D=0A at=0D=0Acom.servingxml.components.inver= serecordmapping.XmlRecordReader.readRecor=0D=0Ads(XmlRecordReader.java:93)=0D= =0A=0D=0A at=0D=0Acom.servingxml.components.recordio.RecordPipeline.= execute(RecordPipeline=0D=0A.java:69)=0D=0A=0D=0A at=0D=0Acom.servin= gxml.components.recordio.ProcessRecordsAppender.execute(Proces=0D=0AsRecord= sAppender.java:81)=0D=0A=0D=0A at=0D=0Acom.servingxml.components.ser= vice.ServiceImpl.execute(ServiceImpl.java:6=0D=0A6)=0D=0A=0D=0A at=0D= =0Acom.mastek.servicemix.ServingXmlTransformer.toResult(ServingXmlTransform=0D= =0Aer.java:130)=0D=0A=0D=0A at=0D=0Acom.mastek.servicemix.TextSource= Marshaler.asString(TextSourceMarshaler.j=0D=0Aava:28)=0D=0A=0D=0A=20=0D=0A=0D= =0Athe xml block sent is=20=0D=0A=0D=0A=20=0D=0A=0D=0A<=3Fxml version=3D"1.= 0"=0D=0Aencoding=3D"utf-8"=3F><orders><order><ordertype>B</ordertype><compa= nyticker>=0D=0AAMZN</companyticker><companyname>Amazon=0D=0AInc</companynam= e><quantity>10.0</quantity></order></orders>=0D=0A=0D=0A=20=0D=0A=0D=0AIn m= y resource file, I have configured as shown below=20=0D=0A=0D=0A=20=0D=0A=0D= =0A <sx:service id=3D"orderstocsv" name=3D"orderstocsv">=0D=0A=0D=0A <s= x:writeRecords>=0D=0A=0D=0A <sx:flatFileWriter>=0D=0A=0D=0A <sx= :flatFile ref=3D"ordersFlatFile"/>=0D=0A=0D=0A </sx:flatFileWriter>=0D= =0A=0D=0A <sx:xmlRecordReader>=0D=0A=0D=0A <sx:inverseRecordMap= ping ref=3D"ordersToCSVMapping"/>=0D=0A=0D=0A <sx:transform>=0D=0A=0D= =0A <sx:document/>=0D=0A=0D=0A </sx:transform>=0D=0A=0D= =0A </sx:xmlRecordReader>=0D=0A=0D=0A </sx:writeRecords> =20=0D=0A=0D= =0A </sx:service>=0D=0A=0D=0A=20=0D=0A=0D=0A =20=0D=0A=0D= =0A <sx:inverseRecordMapping id=3D"ordersToCSVMapping">=0D=0A=0D=0A <sx= :documentFragmentMap path=3D"/ord:orders/ord:order">=0D=0A=0D=0A <sx:f= ragmentRecordMap recordType=3D"order">=0D=0A=0D=0A <sx:fragmentField= Map select=3D"ord:ordertype"=0D=0Afield=3D"ordertype-field"/>=0D=0A=0D=0A = <sx:fragmentFieldMap select=3D"ord:companyticker"=0D=0Afield=3D"compa= nyticker-field"/>=0D=0A=0D=0A <sx:fragmentFieldMap select=3D"ord:com= panyname"=0D=0Afield=3D"companyname-field"/>=0D=0A=0D=0A <sx:fragmen= tFieldMap select=3D"ord:quantity"=0D=0Afield=3D"quantity-field"/>=0D=0A=0D=0A= </sx:fragmentRecordMap>=0D=0A=0D=0A </sx:documentFragmentMap>=0D=0A=0D= =0A </sx:inverseRecordMapping>=0D=0A=0D=0A=20=0D=0A=0D=0A <sx:flatFile id= =3D"ordersFlatFile">=0D=0A=0D=0A <sx:commentSymbol value=3D"#"/>=0D=0A=0D= =0A <sx:flatFileBody>=0D=0A=0D=0A <sx:flatRecordType id=3D"order"= >=0D=0A=0D=0A <sx:fieldDelimiter value=3D","/>=0D=0A=0D=0A = <sx:delimitedField name=3D"ordertype-field" label=3D"OrderType"/>=0D=0A=0D=0A= <sx:delimitedField name=3D"companyticker-field"=0D=0Alabel=3D"Company= Ticker"/>=0D=0A=0D=0A <sx:delimitedField name=3D"companyname-field= "=0D=0Alabel=3D"CompanyName"/>=0D=0A=0D=0A <sx:delimitedField name= =3D"quantity-field" label=3D"Quantity"/>=0D=0A=0D=0A </sx:flatRecord= Type>=0D=0A=0D=0A </sx:flatFileBody>=0D=0A=0D=0A </sx:flatFile> =0D= =0A=0D=0A=20=0D=0A=0D=0AAny help would be appreciated=3F=0D=0A=0D=0A=20=0D=0A=0D= =0AThank You=0D=0A=0D=0A=20=0D=0A=0D=0AAkhil Srinivasan=0D=0A=0D=0AMASTEK =0D= =0A"Making a valuable difference"=0D=0AMastek in NASSCOM's 'India Top 20' S= oftware Service Exporters List.=0D=0AIn the US, we're called MAJESCOMASTEK=0D= =0A=0D=0A~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=0D=0AOpinions expressed in thi= s e-mail are those of the individual and not that of Mastek Limited, unless= specifically indicated to that effect. Mastek Limited does not accept any = responsibility or liability for it. This e-mail and attachments (if any) tr= ansmitted with it are confidential and/or privileged and solely for the use= of the intended person or entity to which it is addressed. Any review, re-= transmission, dissemination or other use of or taking of any action in reli= ance upon this information by persons or entities other than the intended r= ecipient is prohibited. This e-mail and its attachments have been scanned f= or the presence of computer viruses. It is the responsibility of the recipi= ent to run the virus check on e-mails and attachments before opening them. = If you have received this e-mail in error, kindly delete this e-mail from a= ll computers.=0D=0A~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=0D=0A |