On Feb 4, 2010, at 10:02 AM, Daniel Veillard wrote:
On Thu, Feb 04, 2010 at 09:31:11AM -0800, John Clements wrote:
On Feb 4, 2010, at 7:09 AM, Daniel Veillard wrote:
On Thu, Feb 04, 2010 at 08:53:42AM -0500, Piotr Sipika wrote:
John,
Try parsing the document using:
xmlReadFile(URI,
John,
Try parsing the document using:
xmlReadFile(URI, encoding, options)
with options set to XML_PARSE_NOBLANKS (in addition to anything else you
want to use)
Here's what I mean:
#include stdio.h
#include stdlib.h
#include libxml/parser.h
#include libxml/tree.h
int
main(int argc, char
On Thu, Feb 04, 2010 at 08:53:42AM -0500, Piotr Sipika wrote:
John,
Try parsing the document using:
xmlReadFile(URI, encoding, options)
with options set to XML_PARSE_NOBLANKS (in addition to anything else
you want to use)
Honnestly, I think it's a bad advice in general. The blank nodes
On Thu, Feb 04, 2010 at 09:31:11AM -0800, John Clements wrote:
On Feb 4, 2010, at 7:09 AM, Daniel Veillard wrote:
On Thu, Feb 04, 2010 at 08:53:42AM -0500, Piotr Sipika wrote:
John,
Try parsing the document using:
xmlReadFile(URI, encoding, options)
with options set to
Please forgive me, this is *surely* a FAQ, but several hours of poring over
libxml2 documentation has left me high and dry.
My question is this: I have a document and a DTD spec. I want to parse the file
validate against the DTD in such a way that the whitespace ruled out by the
DTD is either
On Mon, Feb 25, 2008 at 09:45:13PM +0100, Petr Pajas wrote:
Hi Daniel, All,
the following inconsistency in DTD validation, reproducible with xmllint, was
reported to me by a user of XSH2, Jakub Neburka.
He takes two files: decl.dtd and decl.xml and does basically the following:
1)
On Tue, Feb 26, 2008 at 04:15:28AM -0500, Daniel Veillard wrote:
Not a bug. When you do things like Post validation, you give it a
preparsed DTD. in that case the DTD was parsed without the context
of the document, while the internal subset changes the behaviour.
[...]
Sorry
On Tue, Feb 26, 2008 at 01:40:08PM +0100, massimo morara wrote:
On Tue, Feb 26, 2008 at 04:15:28AM -0500, Daniel Veillard wrote:
Not a bug. When you do things like Post validation, you give it a
preparsed DTD. in that case the DTD was parsed without the context
of the document, while
On Tue, Feb 26, 2008 at 09:35:25AM -0500, Daniel Veillard wrote:
You forgot to mention the full set of errors
Sorry: an unverified cut-and-paste of a wrong cut-and-paste.
when you first parsed the document, it uses a namespace, which is
undeclared. So the document is not okay
Hi Daniel, All,
the following inconsistency in DTD validation, reproducible with xmllint, was
reported to me by a user of XSH2, Jakub Neburka.
He takes two files: decl.dtd and decl.xml and does basically the following:
1) xmllint --valid decl.xml
xmllint --postvalid decl.xml
both succeed.
mayur k wrote:
I have set the option like this:
xmlCtxtUseOptions(m_context, XML_PARSE_DTDLOAD);
But the parser does not seem to complain about junk tags wrong sequence of
tags at all and says that the document is valid.
loading a DTD != validating.
Check the parse options.
Stefan
PROTECTED]
Cc: xml@gnome.org
Sent: Friday, October 12, 2007 11:50:59 AM
Subject: Re: [xml] XML DTD validation for push parsers?
mayur k wrote:
I have set the option like this:
xmlCtxtUseOptions(m_context, XML_PARSE_DTDLOAD);
But the parser does not seem to complain about junk tags wrong
On Thu, Oct 11, 2007 at 10:13:50PM -0700, mayur k wrote:
Hi,
Thanks for the reply.
I have set the option like this:
xmlCtxtUseOptions(m_context, XML_PARSE_DTDLOAD);
Could you take the time to look at the options documentation ?
On Fri, Oct 12, 2007 at 12:55:49AM -0700, mayur k wrote:
Okay,so I added the right option to load and validate the DTD but still the
problem persists.
This is how I set it:
xmlCtxtUseOptions(m_context, XML_PARSE_DTDLOAD | XML_PARSE_DTDVALID);
--eminemence.
That works for xmllint. We
Hi All,
I would like to know if DTD validation for push parsers is disabled by default.
I have tried passing a complete xml buffer and then setting options to load dtd
and validate the document.
But the parser does not seem to validate the document and is parsing even a
document which has
On Thu, Oct 11, 2007 at 05:42:31AM -0700, mayur k wrote:
Hi All,
I would like to know if DTD validation for push parsers is disabled by
default.
validation is never enabled by default you have to request it.
I have tried passing a complete xml buffer and then setting options
Veillard [EMAIL PROTECTED]
To: mayur k [EMAIL PROTECTED]
Cc: xml@gnome.org
Sent: Thursday, October 11, 2007 8:16:06 PM
Subject: Re: [xml] XML DTD validation for push parsers?
On Thu, Oct 11, 2007 at 05:42:31AM -0700, mayur k wrote:
Hi All,
I would like to know if DTD validation for push
On Fri, Jul 28, 2006 at 05:49:34AM -0500, Bipin Mistry wrote:
hello all
I am using following code to read XML buffer to XML_DOC pointer
xml_doc = xmlReadMemory(xml_memory_reference,
strlen(xml_memory_reference),
noname.xml,
NULL,
Hi,
is it possible to convert
this sgml-dtd in a xml-dtd? If yes, how?
Thanks,
Anne
Von:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anne Müller
Gesendet: Freitag, 14. Juli 2006
11:22
An: xml@gnome.org
Betreff: [xml] DTD Validation
Hi,
can anybody
Hi,
can anybody tell me how to validate
a document against a dtd that is written in sgml?
I try to validate an html document. But
all the dtds from w3c for html are written in sgml.
Validation of an xhtml document works
fine with xmlValidateDtd, because the dtds
are xml.
Thanks,
I am using the SAX parser in libxml to read in relatively large XML
files. I am using SAX for two reasons:
- I store all data in non-XML related internal data structures, and
- I find the callback interface intuitive.
I have a requirement to validate the input XML files against a DTD
prior
On Thu, Jul 21, 2005 at 05:02:06AM -, SATISH KUMAR wrote:
Please let me know whether Regular Expression and Automata modules are
required for DTD Validation or these are Optional, because after disabling
these flags also Libxml is validating the XML documents(i tried few examples).
HI,
In Libxml is it possible to do DTD Validation by disabling the following flags
LIBXML_REGEXP_ENABLED
LIBXML_AUTOMATA_ENABLED
and enabling LIBXML_VALID_ENABLED flag.
Is is possible to parse and validate the XML Document with out the Regular _expression_ and Automata support.Will Libxml
23 matches
Mail list logo