Why is the line number in xmlNode limited to an unsigned short ?
Doesn't libxml2 handle XML files with more than 65535 lines?
Also, the code which performs the truncation of the value in SAX2.c
(line 1601) is wrong.
if (ctxt-linenumbers) {
if (ctxt-input != NULL) {
if
On Thu, Nov 12, 2009 at 10:49 AM, Stefan Behnel stefan...@behnel.de wrote:
Hi,
Csaba Raduly, 12.11.2009 10:29:
Why is the line number in xmlNode limited to an unsigned short ?
Because it's a trade-off between space and usefulness. Note that the parser
reports line numbers without
On Sat, Jan 2, 2010 at 7:07 PM, Michael Andersson
anderssonmich...@hotmail.com wrote:
Hi!
I'm having trubble reading my xml file when they contain newline characters.
The problem is that when I call xmlTextReaderLocalName it returns #text
instead of the element name. This is what my xml file
On Fri, Jan 22, 2010 at 4:40 PM, Jonathan Squirawski wrote:
Hi,
The xmlreader documentation said the same thing for both
. Is it a documentation
error or the two functions do exactly the same thing ?
There definitely is a difference between what they do (inner returns
the text of all child
On Wed, Feb 17, 2010 at 8:12 AM, andrew james
and...@systemssingular.com wrote:
siddharth sehgal wrote:
Hi
I am new to libxml2 and intend to use it in my application which will run
on embedded windows/ linux. I was trying to get hold of some common xml
parsing routines and there is an
On Wed, Feb 17, 2010 at 8:44 AM, andrew james
and...@systemssingular.com wrote:
I have tried to xmlUnlinkNode, the result is that the loop through all nodes
is stopped at the unlinked node.
What is the reason for that stop?
How are you looping through the nodes? Are you sure you are not using
Trying to load the following schema causes an internal error in libxml2:
importer.xsd:
?xml version=1.0 encoding=UTF-8?
xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
targetNamespace=http://www.example.com/fu;
xs:import schemaLocation=imported.xsd/!-- moe=1 not allowed
inside
On Thu, May 6, 2010 at 11:47 AM, Andrew Hartley wrote:
Would someone please let me know how I can validate an XML file against its
XSD Schema file. If there are validation errors I would then like to
extract the human readable error description.
From the commandline:
xmllint --noout
On Tue, Jul 20, 2010 at 3:40 AM, Dan Sommers wrote:
Given this schema file, t.xsd:
xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;
xs:element name=t type=xs:double/
/xs:schema
And this xml document, t.xml:
te/t
I got this:
$ xmllint --schema t.xsd t.xml
?xml
On Wed, Jul 21, 2010 at 6:19 PM, Andrew W. Nosenko wrote:
On Wed, Jul 21, 2010 at 14:23, Csaba Raduly wrote:
On Tue, Jul 20, 2010 at 3:40 AM, Dan Sommers wrote:
...
I tracked it down to xmlschematypes.c, starting around line 2465, where
it starts scanning the input for something suitable
On Fri, Jul 30, 2010 at 8:39 PM, love nglory wrote:
Hi everyone,
I am getting this error while parsing an xml file
'XmlChar' was not declared in this scope.
Please can you tell me how to correct this.
#include libxml/xmlstring.h
--
Life is complex, with real and imaginary parts.
Ok, it
On Tue, Aug 3, 2010 at 1:49 AM, nkat nkat wrote:
Hi,
Thanks...
Hi,
Please don't top-post. It makes the discussion impossible to follow.
I also am getting these errors:
xmlparse not declared in this scope,
similarly for xmldocgetrootelement, xmlfreedoc, xmlstrcmp and so on..
Use grep to
Hi Patrick,
On Tue, Sep 7, 2010 at 10:35 PM, Patrick McClory wrote:
Hello,
I'm working on a project which requires validation of xml documents against
.xsd schemas. We both create xml documents from scratch, and create xml docs
from char * buffers read from a socket. I've run into
On Tue, Jul 6, 2010 at 12:32 AM, Dennis Heimbigner wrote:
Google searches imply that there is a stax-like
pull parsing interface in libxml2.
Perhaps you want the reader interface: (libxml/xmlreader.h)
http://www.xmlsoft.org/xmlreader.html
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ L w++$
On Wed, Oct 6, 2010 at 12:18 AM, Steven Falken wrote:
Hi,
I'm trying to parse bare.txt (attached, yes it is simply cnn.com). For
this purpose I'm using parse.c (also attached).
The output is output.txt (Attachment!).
If you look at bare.txt, you see a script block from line 826 to
line 886.
Hi,
On Wed, Oct 13, 2010 at 9:54 PM, Chi Yin Luk wrote:
I am using libxml2.2.7.3.dylib on my iPhone application.
The application is targeting iOS 3.2, but the xmlFreeDoc() fails when the
application is running on iPhone 4, but not on iOS 3.2 or before.
I also tried targeting iOS 4 and
On Thu, Oct 14, 2010 at 6:08 PM, Chi Yin Luk wrote:
It worked by doing xmlStrDup()! But I am just wondering why it would not
crash when running on iOS 3.2 or older.
Perhaps you have been unlucky (yes, unlucky. Silent misbehavior is the
worst thing a bug can cause.)
--
GCS a+ e++ d- C++ ULS$
On Wed, Oct 20, 2010 at 9:08 PM, samaram s wrote:
Hi,
I have a doubt :
wchar_t date[10];
wchar_t time[10];
(note: it's not a good idea to give your variable the same name as a
library function)
com1 = xmlNewDocComment(doc, BAD_CAST(Created on Date date and Time
time ));
I get my date
On Thu, Oct 21, 2010 at 6:01 PM, samaram s wrote:
Thank you so much.
int Val = 10;
If Val is int, you need to transform it into a string. Check the
documentation of itoa and sprintf.
But when i tried as you said, it says 2nd argument should be xmlchar* type
not char* . when i type casted
Hi Santosh,
On Sun, Nov 7, 2010 at 5:22 AM, Santosh Mahale wrote:
I downloaded libxml2 from ftp://xmlsoft.org/libxml2/ and installed using
./configure, make, sudo make install sequence. post that i am trying to
compile the textXPath.c file from the examples folder using the following
gcc
Hi Ian,
On Fri, Jan 21, 2011 at 6:31 AM, Ian B wrote:
I'm trying to parse bible verses from some XML using libxml
Sample XML is:
book id=GEN
hGenesis /h
p
c id=1/
v id=1/
In the beginning God created the heavens and the earth.
v id=2/
Now the earth was formless and empty.
Hi Jeffrey,
On Fri, Jan 28, 2011 at 4:22 PM, Jeffrey Schmidt wrote:
However, I am getting a bunch of linker errors when building my projects,
similar to the following examples:
error LNK2019: unresolved external symbol __imp__WSAGetLastError@0
referenced in function _socket_errno
Hi Evan,
On Fri, Jul 15, 2011 at 7:39 PM, Evan Klinger eklin...@gmail.com wrote:
Hello,
I would like to use the xmlTextReader interface for parsing my XML
file, but in the parsing routine handler that is called, I need to set
some of my own data depending upon the element's value, but I don't
On Sun, Aug 21, 2011 at 10:58 AM, Tomáš Pospíšil wrote:
Hello LibXML hackers,
I'm using xmlReader for recursive pre order traversal throught XML tree.
Everything works well, but during testing I faced problem with distinguish
between
doc
e1 /
e1 /e1
doc
both e1 elements are
On Thu, Sep 1, 2011 at 8:42 AM, Dheeraj Gautam wrote:
Is it valid to have multiple nodes, in a single XML file.
configuration abc:changed-seconds=0 abc:changed-localtime=1970-01-01
00:00:00 UTC
services
/services
/configuration
configuration junos:changed-seconds=0
On Fri, Sep 23, 2011 at 9:05 AM, Glen Hein wrote:
On Fri, 2011-09-23 at 08:44 +0200, Ralf Junker wrote:
On 23.09.2011 08:21, Alex Bligh wrote:
libxml parses XML not HTML.
Wrong. libxml parses XML _and_ HTML. Documented here:
http://www.xmlsoft.org/html/libxml-HTMLparser.html
Yes, but
Hi Rob,
On Thu, Oct 6, 2011 at 1:08 PM, Rob Eisink wrote:
Hi
Part of my xml file looks like:
Devicedevice_name/Device
the element has a value, how do i get the value (device_name) out of it?
That depends on how you process the XML.
If using SAX, you will get a callback
Forward to the list too
-- Forwarded message --
From: Csaba Raduly rcs...@gmail.com
Date: Thu, Oct 6, 2011 at 5:12 PM
Subject: Re: [xml] Value out of ellement?
To: Rob Eisink reis...@hotmail.com
On Thu, Oct 6, 2011 at 5:03 PM, Rob Eisink wrote:
Let me more clear..
The xml
Hi Rob,
Please keep it on the list so others might profit.
On Thu, Oct 6, 2011 at 4:51 PM, Rob Eisink wrote:
Hi Csaba,
thats indeed what I'm doing, I'm only interested in start element,
end_element and so on.
I skip the white sapce elements but I was wondering why thet did apear.
Thats
Hi spam,
On Thu, Feb 16, 2012 at 4:01 PM, wrote:
Hello,
On a first computer, when I compile a C program using the libxml2 library I
do :
$ gcc `xml2-config --cflags` `xml2-config --libs` main.c
or
$ gcc main.c `xml2-config --cflags` `xml2-config --libs`
And it works (but the first
On Mon, Mar 12, 2012 at 8:38 PM, Andy Davidson wrote:
Hi
I am able to use to xmllint to validate an xml file against a xsd file.
$ xmllint --noout zoo.xml --schema zoo.xsd
zoo.xml validates
Any idea how I can validate the actual xsd file? I have a large set of xsd
files. I want to
Hi
On Wed, May 23, 2012 at 2:16 PM, Bjoern Hoehrmann wrote:
* Daniel Veillard wrote:
C.f. the bug Fix windows unicode build
https://bugzilla.gnome.org/show_bug.cgi?id=638650
and the previous discussions here:
http://mail.gnome.org/archives/xml/2008-February/msg00094.html
now that the
On Wed, May 23, 2012 at 8:58 PM, Michael Ludwig wrote:
Csaba Raduly schrieb am 23.05.2012 um 14:34 (+0200):
xmlModuleOpen and its worker, xmlModulePlatformOpen take a const
char*, not const xmlChar*. This suggests that the parameter is not
UTF-8, in which case libxml2 should just use
On Fri, Sep 7, 2012 at 2:04 PM, Daniel Veillard wrote:
I have just tagged the git tree and pushed tarballs and rpms to
ftp://xmlsoft.org/libxml2/
(snip)
I still have one issue left which is the error that Daniel
is seeing and I didn't yet reproduce, but we're on our way for
a release
On Thu, Dec 6, 2012 at 7:33 PM, Joachim Zobel wrote:
Hi.
Subject says it all.
Unfortunately, subject doesn't say it all. What do you mean by
pattern? What do you mean by work?
First tests seem to indicate the answer is no. But
I may be doing something wrong.
Unfortunately, because we have
On Thu, Feb 7, 2013 at 4:47 PM, Thomas Gamper wrote:
Hi!
I ran into issues with libxml2 xml validation with schemas as soon as i
started using the xsi:nil attribute. Attached you find a reduced version of
the schema I am using (zenotrack-pilot.xsd + all the dependencies it needs)
and two
Hi,
On Fri, Mar 15, 2013 at 12:01 PM, Venkataragavan Vijayakumar
venkataragava...@gmail.com wrote:
and also is it possible that libxml2 will parse the XML message without
?xml version=1.0?..
The answer to that is most definitely YES.
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$
Hi Zoltán,
On Sun, Apr 7, 2013 at 8:30 AM, Zoltán Ördögh wrote:
I checked 2.8.0 out of curiosity - that works, too.
It seems a bug has been introduced into 2.9.0 - and it apparently impacts
only MSVC 2010 (well, so far it seems I am the only one).
I tried your example with Cygwin's xmllint
Hi Bogdan,
On Wed, Oct 23, 2013 at 12:12 PM, Bogdan Cristea wrote:
Hi
I am trying to follow lxml from Python that allows to get the text after the
end of an element, but before the next element begins (i.e. the next sibling
of the current element). I am able to do this with xmlTextReader, by
On Tue, Jun 30, 2015 at 5:52 AM, Daniel Veillard wrote:
(snip)
Recognizing that a document is HTML5, extending the list of tags name
(did HTML deprecate some of those in HTML4 ?) and associated attributes
would be a relatively simple first step.
Someone up to the task, or is there
On Thu, Jun 23, 2016 at 10:03 AM, Stéphane Michaut wrote:
> Hi,
>
>
>
> I am trying to parse a buffer that contains an XSD document using
> xmlParseMemory on MVS. I have the following error
>
>
>
> Entity: line 1: parser error : Start tag expected, '<' not found
>
>_%
Hi,
On Sun, Nov 13, 2016 at 7:05 PM, Cordylus Interneter wrote:
> libxml2 installs to {$prefix}/include/libxm2/libxml on MinGW, I expected it
> to be in {$prefix}/include/libxml since it is usually included as
> , is this a bug? Or should I add some configure switch?
> Once I move headers,
Hi,
On Sun, Oct 30, 2016 at 3:02 PM, johnny_hil wrote:
> Hi,
> I installed the package libxml on Cygwin on Windows but when I try to
> include a header from it, the terminal indicates the error that xmlversion.h
> is missing.
>
> Do you know how to solve that ?
Since you didn't show us your
On Tue, Mar 7, 2017 at 2:48 PM, Per Hedeland wrote:
> Hello,
>
> With libxml2-2.9.4, the regular expression [ab^cd] is equivalent to
> [^cd], i.e. it matches all characters except 'c' and 'd'. However from
> my reading of
> https://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#regexs, (1) the
>
Hi Neo,
On Mon, Jan 1, 2018 at 9:28 PM, Neo Anderson wrote:
> I’m trying to build the latest version 2.9.7 using msys2. I am getting 2
> problems.
>
>
>
> 1. I need to export LIBS="-lws2_32 -lgdi32 -lkernel32" before running
> ./configure. Otherwise I will get lots of linkage errors.
>
> 2.
Hi,
On Sat, Feb 8, 2020 at 12:45 AM Jefferson Carpenter wrote:
> I just built libxml2 and am compiling against it, but am getting this
> error:
>
> /Users/jcarpen/local/include/libxml2/libxml/tree.h:17:10: fatal
> error: 'libxml/xmlversion.h' file not found
>
>
Please tell us the full
On Wed, 9 Dec 2020 at 20:21, Pro Turm via xml wrote:
>
> If you could point reamde version and line, it would be nice. Thanks.
http://xmlsoft.org/sources/win32/64bit/readme.txt
Check out line number 3 and later.
Csaba
--
You can get very substantial performance improvements
by not doing the
47 matches
Mail list logo