I just have one quick question. I am using libxml2-2.6.17 on HP-UX B.11.00 to read one text file and create one xml file out of it. I am using xmlWriter API for that. Upto this its fine. Now I need to add so many attributes one more line in that new XML file as follows :
<?xml version="1.0" encoding="ISO-8859-1"?>
<fei_batch:Batch_Data xmlns:fei_batch="urn:feibatchdata.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:feibatchdata.xsd feibatchdata.xsd">
This is to specify the xml namespace, xsi, schemaLocation etc. But I can't find any API in libxml2-xmlWriter's API for the same.
Can you please suggest some work around or some API for this ?
Probably treating them as attributes would be wrong. Otherwise can I use xmlTextWriterWriteAttribute method ? Will it work fot this case ?
Thanks in advance,
Rabindra Nath Saha