Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: Why XML not well formed?

by Fletch (Bishop)
on Jun 30, 2005 at 13:23 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2023-02-01 16:41 GMT
Find Nodes?
    Voting Booth?
    I prefer not to run the latest version of Perl because:

    Results (11 votes). Check out past polls.