From: Phlip Date: 2007-01-22T01:45:08+09:00 Subject: Re: YAML::Syck fault tolerance Jan Svitok wrote: > Not tested idea: If the exception contains error position, try cutting > the string just before the error and retry... (althoug this won't be a > stable solution, it's more a hack) That's what I hacked-in shortly after posting. The actual bug was something truncated a database BLOB containing the YAML. The hack works for stereotypical YAML with one line per record... Architecturally, and only for curiosity, I have heard there's an XML system called SAX that calls a callback for each node it reads. If a YAML system could do that, I could collect the nodes up to the break point, then I wouldn't need to worry about the hack... -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!!