Xml write with c/c++



Hi Experts,

i want to write a xml document using c/c++ programetically.
 i tried with EXPAT  and EXCERS-C but there is no API or sample to write the XML Documents.

is there any way to write the XML Documents using c/c++.

any sample or the APIs are greate help for me.

any help is the greate appriciation.

thanks in advance.


regards
karunakar reddy.g
karunakarrreddyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

choo_chuCommented:
Hi,

I'm not sure which platform you are writing for.  I've only used XML from c++ in a Windows environment.  In that case I used the MSXML parser.  It is very well documented on the MSDN Library.

Here is a link to the DOM reference: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/14e70ac1-b724-498e-b6e1-7e3e1ae7bb6e.asp

Regards,
choo_chu
0
karunakarrreddyAuthor Commented:
i am using the windows platform. But  your link uses the DOM and Com Objects.
 but i want pure c++ with xml documents.
0
liviutudorCommented:
you will need the xslt library from apache (XALAN) which has binding for writing XML files via Transformer, Result and Source interfaces.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
basavaraj_knCommented:
Hi

IBM Xerces-C++ is very good if you want valid XML DOM documents, follow the below links, have pashens you will find complext examples once if u download its source code and documentation, i did used it around 2 yrs back hence right away i cannot give you written examples but my bet is on it.

http://xml.apache.org/xerces-c/


Cheers
~BAS
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.