You are here: Re: Can't parse  -- Is this a bug in the SAX xml parser? Or am I doing something wrong? « PHP Programming Language « IT news, forums, messages
Re: Can't parse  -- Is this a bug in the SAX xml parser? Or am I doing something wrong?

Posted by Joshua Beall on 11/11/07 18:54

John Dunlop wrote:
> > If not, then how should I encode the vertical tab character (character
> > code 0x0B) to put it in an XML document?
>
> XML1.1, although the spec discourages using that character.

So there's no way to do this in XML 1.0?

Let me give a more complete description of my circumstance, and if you
have any suggestions on what I should do, I'd be grateful.

I'm trying to parse an XML export of a FileMaker Pro 8 database. FMP
is putting raw vertical tabs in the output at various places.

Before passing the XML document to the PHP SAX parser, I'm checking
through the document for any characters with a character code below 32
and trying to encode them. I didn't realize this was the wrong way to
go about this.

Now I can't change the fact that for some reason FMP is sometimes
going to be spitting out these vertical tab characters; apparently it
internally uses vertical tabs for something.

So is there any way to parse this document? Or the only thing I can
do is strip out any illegal characters that can't be encoded before I
parse it?

-Josh

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация