Hi,
My platform is OS X(10.12.6) and I tried to compile the code for using the
xmlWriter code.
I find that it compiles fine and runs, however, there is not output(debug
area in Xcode is empty).
Just to simplify, I changed the logic only to write the file(commenting out
the other types).
Using Libxml 2.7.3 .
I am using the reader interface to parse a document
I have an xml file with the following line
icecream![CDATA[Ben'sJerry's Mango]]/icecream
which after parsing is extracted as
Ben'sJerry's Mango
i would want it as
Ben'samp;Jerry'sgt;gt;Mangolt;lt;
Any clues as to
void xmlInitGlobals(void)
{
xmlThrDefMutex = xmlNewMutex();
}
This function is called multiple times and new allocation occurs each time
.
is this fixed or going to be a part of the next release ?
I searced the bug database , but couldnt find anything specific to this.
Thanks
Using LIBXML 2.7.3 and the writer interface
I manage the canonicalization of my xml document by writing data in
canonicalized format and not using the API's
i find that after the call to xmlTextWriterEndDocument adds a the '\n'
character to the buffer that disrupts the canonicalization of my
I want to disable all warnings and maybe errors during runtime
I found this variable(xmlGetWarningsDefaultValue - in globals.c . ) that is
referred in error.c function
/**
* xmlGetWarningsDefaultValue:
*
* Global setting, indicate that the parser should provide warnings.
* Activated by
xmlReaderForIO (xmlInputReadCallback ioread,
xmlInputCloseCallback ioclose,
void *ioctx,
const char *URL,
const char *encoding,
int options);
I have been typically passing NULL for the const char * encoding parameter
for this API . Are there any limitations to doing this ?
How is this
Hello ,
I am trying to output c14n bytes of a specific node in my tree.
For this purpose I have written a general purpose function that will
generate C14n bytes by providing a xmlChar** ptr and the xmlNodePtr for
which I need the c14n outpput .
Issue : I would expect that after calling this
I have a requirement, where I would not want to have the entire xml data in
memory and preferably writing out canonicalized XML to IO . I had a few
questions to understand this better
I was planning on doing the following
- creating an OutputBuffer using the API -
I am at a point where I am investigating the usage for xmlReader as I have a
requirement of parsing large xml file that cannot be held in memory
which is why I had a few questions about this.
One of the other things that I have in my environment are that I need to use
IO based reading ( as
Is there a direct way ( API or otherwise)(other than iterating over child
nodes and incrementing a counter ) to obtain the number of element nodes
under a given xmlNodePtr variable ?
___
xml mailing list, project page http://xmlsoft.org/
Hi ,
I am trying to configure and build libxml2 on mac OS
these are my configure options
/configure --prefix=`pwd`/Output --disable-shared --enable-static
--with-minimum --with-tree --with-valid --with-xpath --with-writer
--with-output --with-c14n --with-push
--without-schemas
I am trying to build libxml2 as static library on a embedded platform.
For this purpose I have created my own makefile .
I am getting the following linker error in my application
*Undefined symbols:*
* _iconv_close, referenced from:
*
_xmlCharEncCloseFunc in libmy.a(encoding.o)
Hi ,
I am using libxml2 in an embedded environment .
I am trying to use the xmlwriter API's to write xml.
some of the blocks have a sizeable amount of data ( 1000 bytes ) .
I am using code similar to this to write each node
xmlNodePtr pDom ;
..
...
..
..
I am trying to write this declaration
?xml version=1.0?
but cannot get it to be outputted the file i am writing.
Am i missing something ?
xmlDocPtr doc = xmlNewDoc(BAD_CAST 1.0);
xmlTextWriterPtr writer = xmlNewTextWriterTree( doc, NULL, 0 );
xmlTextWriterStartDocument(writer ,
Using the API's
xmlXPathNodeSetCreate and xmlXPathNodeSetAdd
I am using this as i need to canonicalize a portion of the xml (sub-tree).
Basically i am iterating over each node and recursively adding the node and
its children and next nodes to the nodeset .
I am able to add element nodes
How do I ... ?
if I want xpath to start processing from a particular node in the DOM tree
instead of from the top.
xmlXPathNewContext
takes the pointer to xmlDocPtr .
What is the API to specify that the xpath processing should occur from a
particular subtree ?
I am building libxml2 (ver 2.-2.7.1) on Max OS X 10.5.4.
everything succeeds yet a file copy during make install fails and shows up
as an error in Xcode
*Making install in examples*
*make[3]: Nothing to be done for `install-exec-am'.*
*/bin/sh ../../mkinstalldirs
Looks like u need to include hash.c
On Mon, Sep 29, 2008 at 12:06 PM, Stanley Laufer [EMAIL PROTECTED]wrote:
Greetings,
I'm compiling 2.7.1 under Solaris 9 using GCC 3.4.6 and I'm running
into the error included below. This seems to possibly be related to
the issue described in the
the standard procedure for building using configure
make
make install
Is there a way i can specify to not build the test applications or anything
in the bin folder but only the .a in the lib folder
___
xml mailing list, project page http://xmlsoft.org/
I need to specify the sources that I need to build a static library with a
tiny footprint.
I need the following
xmlparser ( non file based , by creating parser context and then using
xmlparseChunk)
DOM
C14n
xmlwriter ( ability to only write data to a buffer )
I do not need
SAX
SAX2
File IO (
Has anyone have experience building libxml2 on an ARM processor platform.
Need some parameters to configure the BUILD and host
___
xml mailing list, project page http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml
I need to canonicalize a sub-node in my xmltree
I have written a function to do this as
void C14OutputBuffer(xmlNodePtr pNode , void **outputBuffer)
{
if(pNode == NULL || outputBuffer == NULL)
{
return ;
}
xmlNodeSetPtr nodeSet = xmlXPathNodeSetCreate(pNode);
//nodeSet
22 matches
Mail list logo