Manish Yadav wrote:
Can You explain me the proper process how to use xsd ? How to do this in
Xerces c++ coz i need it in c++?
Please look for this information in the CodeSynthesis XSD documentation.
Or use support mailing lists as described on the CodeSynthesis XSD web
page.
i wrote a c++ code. when i run it on out put it shows paramater changed
but when i saw the file on my disk there is no change .
so will you see the code and tell me what i'm doing wrong?
You should write some additional code that serializes the DOM tree
to a file. You can use the DOMLSSerializer class for this as
demonstrated in the Xerces-C++ samples.
one more question most of the people say You cant change the xml file
through c++ program or dom parser.Most of them say you have traverse the
whole file and write back it to a new file reach the node where you need
the change and write it to a new file. delete the old file and rename
the new file .
Is it true? if its true Then will you explain me how to do this ? why
cant we change a xml file without writing to a new file ?Is there any
way possible so that we can make changes in xml file without writing it
to a new file ? if there is a way will you explain me how to do this ?
You can write a new XML document to an old file, but you'll get a
corrupted source file if something going wrong while writing.
Good luck!
Vitaly