Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Why XML not well formed?

by Fletch (Bishop)
on Jun 30, 2005 at 13:23 UTC ( [id://471304]=note: print w/replies, xml ) Need Help??


in reply to Re: Why XML not well formed?
in thread Why XML not well formed?

And since you have the byte offset in the file you can explicitly print the offending portion of the input with some context thusly:

perl -le 'open(X,shift())or die "$!";seek(X, 12000, 0)or die "$!";read + X, $b, 40;print $b, "\n", " " x 19, "^\n"' foo.xml

Update: Oop, I see by the paths mentioned you're on Wintendo; you'll probably want to adjust the quotes on that or store it into a file and run that (or just get a real shell and/or OS . . . :)

--
We're looking for people in ATL

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://471304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found