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 (c
On Thu, Nov 12, 2009 at 10:49 AM, Stefan Behnel 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 nu
On Sat, Jan 2, 2010 at 7:07 PM, Michael Andersson
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 looks like:
>
>
> -126
>
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
Hi,
I'm using the xmlreader interface to parse a document defined by a
schema. When there is a node defined by a union
processing is supposed to try all alternatives (try to decode it as a
string, then as a boolean, etc) until one is successful. However, this
would require the reader to b
On Wed, Feb 17, 2010 at 8:12 AM, andrew james
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 interesting observa
On Wed, Feb 17, 2010 at 8:44 AM, andrew james
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
the unlinked node to d
Trying to load the following schema causes an internal error in libxml2:
importer.xsd:
http://www.w3.org/2001/XMLSchema";
targetNamespace="http://www.example.com/fu";>
imported.xsd:
http://www.w3.org/2001/XMLSchema";
targe
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 --s
On Tue, Jul 20, 2010 at 3:40 AM, Dan Sommers wrote:
> Given this schema file, t.xsd:
>
> http://www.w3.org/2001/XMLSchema";>
>
>
>
> And this xml document, t.xml:
>
> e
>
> I got this:
>
> $ xmllint --schema t.xsd t.xml
>
> e
> t.xml validates
>
> Note that . and .e al
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 scann
On Wed, Jul 28, 2010 at 11:44 AM, Daniel Veillard wrote:
> On Thu, Jul 22, 2010 at 02:38:16PM +0200, Csaba Raduly wrote:
>> Anyway, here's a revised version:
>> --- xmlschemastypes2.c 2010-07-21 13:17:12.229467800 +0200
>> +++ xmlschemastypes.c 2010-07-22 14:0
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
--
Life is complex, with real and imaginary parts.
"Ok, it boots. Wh
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
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 tr
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 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 and 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 Josef,
2010/12/22 Josef Kokeš :
> Hi!
>
> I am having problem with XmlTextReader, if my XML file has elements in the
> form of or even just : I
> just can't detect the end of such an element.
It doesn't have one; rather, there is no corresponding
XML_READER_TYPE_END_ELEMENT.
> I am reading t
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:
>
>
> Genesis
>
>
>
> In the beginning God created the heavens and the earth.
>
> Now the earth was formless and empty. Darkness was on the surf
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 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
> see any way
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
>
>
>
>
>
>
> both e1 elements are on same l
On Thu, Sep 1, 2011 at 8:42 AM, Dheeraj Gautam wrote:
> Is it valid to have multiple nodes, in a single XML file.
>
>
>
>
>
>
>
>
>
>
No, it's not allowed.
"Each XML document has exactly one single root element." says
http://en.wikipedia.org/wiki/Root_element
Csaba
--
GCS a+ e++ d- C++
On Thu, Sep 22, 2011 at 2:20 AM, Gelle, Sreenivasulu wrote:
> HI
> I want to know fixes(source code) in for the problems reported in . Please
> send me the fixes and if not where I can find them.
>
>
> CVE-2009-2416
>
> An XML document with specially-crafted Notation or Enumeration attribute
> typ
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
>
Hi Rob,
On Thu, Oct 6, 2011 at 1:08 PM, Rob Eisink wrote:
> Hi
>
> Part of my xml file looks like:
> device_name
>
> 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 (xmlSAX2Characters).
If us
Hi Rob
On Thu, Oct 6, 2011 at 1:12 PM, Rob Eisink wrote:
> IHi,
>
> use the xmlNewTextReaderFilename to process a xml file.
>
> I walk through the nodes with xmlTextReaderRead, during this I get
> elememts with the name #text, the attribute is
> XML_READER_TYPE_SIGNIFICANT_WHITESPACE.
>
> What
Forward to the list too
-- Forwarded message --
From: Csaba Raduly
Date: Thu, Oct 6, 2011 at 5:12 PM
Subject: Re: [xml] Value out of ellement?
To: Rob Eisink
On Thu, Oct 6, 2011 at 5:03 PM, Rob Eisink wrote:
> Let me more clear..
>
> The xml looks like JohnDoe
>
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.
> That
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 fir
Hi,
On Fri, Feb 17, 2012 at 11:26 AM, wrote:
> Thank you for the answer but I use GNU Automake to build my Makefile
> automatically.
> So, I can't set the good argument order easily.
>
> My Makefile.am :
> bin_PROGRAMS = xmlparsefile
> xmlparsefile_SOURCES = main.c
> xmlparsefile_LDFLAGS = `xml
On Mon, Feb 20, 2012 at 9:06 AM, wrote:
> Hum... I prefer a solution which works if we type :
> $ ./configure
> $ make
> $ make install
>
> If I request my users to do :
> $ ./configure
> $ make LIBS=`xml2-config --libs`
> $ make install
> I think they will not be happy.
>
> The best thing is to
On Mon, Feb 20, 2012 at 1:48 PM, wrote:
> Easy to get the -L options and -l options separatly with a good old 'cut' :
> $ xml2-config --libs | cut -d " " -f 1
> -L/home/spierre/software/libxml2-2.7.8/lib
> $ xml2-config --libs | cut -d " " -f 2-
> -lxml2 -lz -lm
Note that this is only guaranteed
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 wan
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
>>
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
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 rele
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 w
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 t
Hi,
On Fri, Mar 15, 2013 at 12:01 PM, Venkataragavan Vijayakumar
wrote:
> and also is it possible that libxml2 will parse the XML message without "
> "..
The answer to that is most definitely YES.
Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The nu
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 Simon,
On Mon, Aug 19, 2013 at 11:54 PM, Simon Kågedal Reimer wrote:
> Hi!
>
> I'm having difficulties using xmlTextReaderReadAttributeValue. It
> doesn't seem to work like the equivalent function in ECMA/.NET, at
> least as implemented by Mono. Consider the following simple C#
> example:
>
>
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
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 so
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, 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 code
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, ev
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
> car
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 compil
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 ri
56 matches
Mail list logo