- To: <xml-dev@l...>
- Subject: Regarding libxml2-2.6.17 xmlWriter API
- From: "Saha Rabindra N" <saha.rn@m...>
- Date: Tue, 3 May 2005 19:56:39 -0400
- Importance: normal
- Priority: normal
- Thread-index: AcVQO78gghoyjie9TKGrkNaMshRLZw==
- Thread-topic: Regarding libxml2-2.6.17 xmlWriter API
Title: Regarding libxml2-2.6.17 xmlWriter API
Hello,
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">
</fei_batch:Batch_Data>
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,
Regards,
Rabindra Nath Saha
The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee.
Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized.
If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.(16b)
|