473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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>103</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? (_)\(_)

Apr 17 '06 #1
2 1211
On Sun, 16 Apr 2006 17:40:35 -0700, Captain Dondo wrote:
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?


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? (_)\(_)

Apr 17 '06 #2
Captain Dondo wrote:
The following bit of XML barfs with Invalid document end at line 9:

<?xml version="1.0" ?>
<l0> [...] </l0>
<l1> [...] </l1>


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

Apr 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Christopher | last post by:
I am getting a parse error from g++ pointing at my catch line and can't figure out whats wrong with this code: #include "BigPosInt.h" #include <iostream> #include <new> #include <assert.h> ...
3
by: Andy Fish | last post by:
Hi, I am trying to parse a file using Xerces' DOMParser.parse(String systemId) I have come across a problem where it refuses to open a file with curly braces "{" or "}" in the file name. I...
1
by: Display Name | last post by:
Used one of these canned scripts to set up a JS quiz but not before having used another canned PHP script for "Tell your friend about this Web page!" sort of thing. Now i've gotta integrate them;...
3
by: Teddybearsrcute8 | last post by:
Hello, This is my first time using the CSS validator.(http://jigsaw.w3.org) I created an external style sheet and validated the html document, but I'm not sure why I'm getting these errors....
58
by: Jeff_Relf | last post by:
Hi Tom, You showed: << private const string PHONE_LIST = "495.1000__424.1111___(206)564-5555_1.800.325.3333"; static void Main( string args ) { foreach (string phoneNumber in Regex.Split...
1
by: davo | last post by:
I've been puzzled by this one for ages. I've tried everything I can think of, and now it is time to ask for help. THE APPLICATION A J2EE application which reads an XML file from the /WEB-INF/xml...
11
by: steve smith | last post by:
Hi I'm still having some problems getting my head round this language. A couple of things don't seem to work for me. First I am trying to obtan a count of the number of words in a sting, so am...
3
by: billr | last post by:
Excuse me if you consider this a cross post, however, it was originally destined for this group not the vc.atl group, but somehow it went there instead of here! (obviously it was something I did, but...
16
by: alexia.bee | last post by:
Hi all, In some weird reason, excel instance won;t die if i remove the comment from 4 lines of setting values into struct. here is a snipcode public...
5
by: markbfernandez | last post by:
I have an "Update Customer" form that doesn't work as .xhtml. Here's where it stops working: <input type="text" name="ud_first" id="ud_first" value="<? echo "$first"?>" /> -------^ When the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.