8 Replies Latest reply: Apr 27, 2012 4:47 AM by 507926 RSS

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

    862711
      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>

      -------------------------------------------------------------------
        • 1. Re: Error: "LPX-00240: element-start tag is not well formed"
          AlexAnd
          <?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>
          • 2. Re: Error: "LPX-00240: element-start tag is not well formed"
            862711
            Sorry Alex but i did not understand your answer ??

            probably you think that its because "line 18:" but that was something that i wrote for help to find the 18'th line.



            thank you

            Edited by: 859708 on 21/Jul/2011 3:15
            • 3. Re: Error: "LPX-00240: element-start tag is not well formed"
              AlexAnd
              for me your xml is valid
              i tried http://validator.w3.org/ and query to xml
              select * from v$version
              
              BANNER                                                           
              ---------------------------------------------------------------- 
              Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod 
              PL/SQL Release 10.2.0.1.0 - Production                           
              CORE     10.2.0.1.0     Production                                         
              TNS for 32-bit Windows: Version 10.2.0.1.0 - Production          
              NLSRTL Version 10.2.0.1.0 - Production 
              Edited by: AlexAnd on Jul 21, 2011 4:46 AM
              • 4. Re: Error: "LPX-00240: element-start tag is not well formed"
                862711
                In this side:

                select * from v$version
                ;

                BANNER
                ----------------------------------------------------------------
                Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
                PL/SQL Release 10.2.0.1.0 - Production
                CORE     10.2.0.1.0     Production
                TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
                NLSRTL Version 10.2.0.1.0 - Production



                Could this be because of beeing an Express Edition ?????

                Edited by: 859708 on 21/Jul/2011 5:33
                • 5. Re: Error: "LPX-00240: element-start tag is not well formed"
                  AlexAnd
                  no ideas about Express

                  check the code again
                  http://psoug.org/oraerror/LPX-00240.htm

                  please show xml without your remarks as is
                  • 6. Re: Error: "LPX-00240: element-start tag is not well formed"
                    odie_63
                    please show xml without your remarks as is
                    And between
                     tags please.
                    
                    Where does the XML reside? External file, PL/SQL variable, database column (which datatype), ... ?                                                                                                                                                                                                                                                                                                                                                                            
                    • 7. Re: Error: "LPX-00240: element-start tag is not well formed"
                      862711
                      I've found out !!!!!!!!!!


                      i was to do with the charset used: "(...) núm (...)"

                      i replaced to: "(...) num (...)"

                      and this issue has disapeared.

                      Thank you for your help that make me think in this way.


                      Thank you
                      • 8. Re: Error: "LPX-00240: element-start tag is not well formed"
                        507926
                        I've just spent a day and a half debugging a similar issue with a LPX-00240 error. It was only cropping up when a specific branch on the stylesheet was invoked by the input file. I found that by putting a carriage return at the top of the input xml, before the root element, that the error disappeared. I could also eliminate it by wrapping the input file in an <xml> element, but that would require considerable changes in my stylesheet.

                        regards
                        Stuart