xml won't parse....

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Captain Dondo

    #1

    xml won't parse....

    I'm pretty much an xml newbie....

    And I'm stumped.

    The following bit of XML barfs with Invalid document end at line 9:

    <?xml version="1.0" ?>
    <l0>
    <zncol>7</zncol>
    <speed>8</speed>
    <length>2400</length>
    <depth>0.5</depth>
    <currentField>1 03</currentField>
    <xcol>1</xcol>
    </l0>
    <l1>
    <brgf1>0.000</brgf1>
    <brgt1>0.000</brgt1>
    <axa1>0</axa1>
    <axb1>2</axb1>
    <axc1>4</axc1>
    <axd1>6</axd1>
    </l1>

    And I have no idea why....

    I've used two completely different parsers and both barf...

    This particular one I copied from http://us2.php.net/manual/en/ref.xml.php
    Example 1.... So it should be good....

    It barfs on my target - an ARM running a self-compiled php4 and my home
    box, i386-box running debian php5.... So it's not platform based.

    Any ideas?

    --
    o__
    ,>/'_ o__
    (_)\(_) ,>/'_ o__
    Yan Seiner, PE (_)\(_) ,>/'_ o__
    Certified Personal Trainer (_)\(_) ,>/'_ o__
    Licensed Professional Engineer (_)\(_) ,>/'_
    Who says engineers have to be pencil necked geeks? (_)\(_)

  • Captain Dondo

    #2
    Re: xml won't parse....

    On Sun, 16 Apr 2006 17:40:35 -0700, Captain Dondo wrote:[color=blue]
    > It barfs on my target - an ARM running a self-compiled php4 and my home
    > box, i386-box running debian php5.... So it's not platform based.
    >
    > Any ideas?[/color]

    Never mind... Got it figured out.. A bug in the XML generator... and a
    knucklehead in the chair... :-)

    --
    o__
    ,>/'_ o__
    (_)\(_) ,>/'_ o__
    Yan Seiner, PE (_)\(_) ,>/'_ o__
    Certified Personal Trainer (_)\(_) ,>/'_ o__
    Licensed Professional Engineer (_)\(_) ,>/'_
    Who says engineers have to be pencil necked geeks? (_)\(_)

    Comment

    • Toby Inkster

      #3
      Re: xml won't parse....

      Captain Dondo wrote:
      [color=blue]
      > The following bit of XML barfs with Invalid document end at line 9:
      >
      > <?xml version="1.0" ?>
      > <l0>[/color]
      [...][color=blue]
      > </l0>
      > <l1>[/color]
      [...][color=blue]
      > </l1>[/color]

      A well-formed XML document can only have a single root element. Here you
      have two.

      --
      Toby A Inkster BSc (Hons) ARCS
      Contact Me ~ http://tobyinkster.co.uk/contact

      Comment

      Working...