[xml] No output when using xmlNewTextWriterFilename in example

2018-05-01 Thread Prashant R
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).

[xml] CDATA parsing issue

2009-07-27 Thread Prashant R
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

[xml] leak in globals.c

2009-07-08 Thread Prashant R
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

[xml] new line character after calling xmlTextWriterEndDocument

2009-06-11 Thread Prashant R
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

[xml] disabling all warnings and errors at runtime

2009-03-11 Thread Prashant R
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

[xml] encoding parameter usage for xmlReaderForXXX

2009-01-15 Thread Prashant R
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

[xml] heap neutrality while outputting c14n

2008-12-10 Thread Prashant R
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

[xml] xml output streaming and c14n

2008-11-20 Thread Prashant R
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 -

[xml] DOM vs xmlReader

2008-11-05 Thread Prashant R
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

[xml] API to get # of child Nodes

2008-10-29 Thread Prashant R
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/

[xml] configure and LIBXML_UNICODE_ENABLED

2008-10-23 Thread Prashant R
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

[xml] iconv linker errors

2008-10-23 Thread Prashant R
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)

[xml] truncated bytes in xml

2008-10-16 Thread Prashant R
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 ; .. ... .. ..

[xml] xmlwriter - include xml declaration ?xml version=1.0? in output

2008-10-09 Thread Prashant R
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 ,

[xml] adding attributes to nodeset

2008-10-06 Thread Prashant R
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

[xml] concept of current node in xpath

2008-10-02 Thread Prashant R
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 ?

[xml] make install file copy error

2008-10-01 Thread Prashant R
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

Re: [xml] libxml2-2.7.1 compiling error under Solaris/GCC

2008-09-29 Thread Prashant R
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

[xml] option to not build test exe's

2008-09-29 Thread Prashant R
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/

[xml] libxml - source file list for cross compilation

2008-09-26 Thread Prashant R
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 (

[xml] cross compile

2008-09-25 Thread Prashant R
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

[xml] C14n for subelements

2008-09-22 Thread Prashant R
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