Re: [xml] Parsing XML in embedded environment

2011-06-10 Thread Liam R E Quin
On Sat, 2011-06-11 at 01:02 +0200, David Kubicek wrote: > The problem is that by default, libxml knows only the basic 5 XML > entities. Why is this a problem? XML documents must either stick to those entities or define the ones they want to use, so you should not predefine others. > I just can

Re: [xml] xmlReader and HTML

2011-06-10 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 08:57:47PM +0200, Joachim Zobel wrote: > On Fri, 2011-06-10 at 22:29 +0800, Daniel Veillard wrote: > > It doesn't, right now the reader is always operating on top of an > > XML parser, not an HTML one, hence your result. > > Why are there different parsers for DOM/SAX and

Re: [xml] XML Schema: Validating an instance document with multiple schemas

2011-06-10 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 10:52:45AM -0400, Paul B. Cameron wrote: > Thanks again for the assistance. > > It turns out that when I add the targetNamespace, global namespace, and > prefixed namespace declarations to the physical schema files, and remove the > code that added these entries at runtime,

[xml] Parsing XML in embedded environment

2011-06-10 Thread David Kubicek
Hello, I've been struggling with this for two whole days. I have read the whole of libxml docs and the library source, but I'm not any further. We're writing an app for a small resource-limited device. It parses XML files. We don't need validation or any extras. Just get at the contents. The

Re: [xml] xmlReader and HTML

2011-06-10 Thread Joachim Zobel
On Fri, 2011-06-10 at 22:29 +0800, Daniel Veillard wrote: > It doesn't, right now the reader is always operating on top of an > XML parser, not an HTML one, hence your result. Why are there different parsers for DOM/SAX and xmlReader? It should be possible to build xmlReader on top of SAX, or am

Re: [xml] xmlReader and HTML

2011-06-10 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 02:26:56PM +0200, Joachim Zobel wrote: > Hi. > > It looks like the xmlReader parser is able to parse HTML. At least it > accepts doctype at document start. It does however behave differently > than the SAX/DOM HTML parser. For example it wants closing tags for META > and LI

[xml] xmlReader and HTML

2011-06-10 Thread Joachim Zobel
Hi. It looks like the xmlReader parser is able to parse HTML. At least it accepts doctype at document start. It does however behave differently than the SAX/DOM HTML parser. For example it wants closing tags for META and LI. To what extend does xmlReader support HTML? I think a lot of things woul