Dear Sir,
Now I have an interface, something like: DispatchCommand(in XMLfile,out XMLfile), to dispatch command from client to server and return the result. The client would construct our system's command as XML file, and send to server, and then server would parse the XML file,and execute corresponding modules, finally, the result would also be packed into XML file.
I review part of IceXML source code. It uses Expat to implement the key part: parse() function; however, it provides many interfaces, such as getParent(), getChild(), and wrappe into C++ class(IceXML). And my questions are:
1: Does IceXML provide any interfaces to construct XML file rather than manually operate std::string? Interface like:
CreateDocument(), InsertElement(), InsertAttribute(), etc...
2: Does it support Chinese encoding,such as gb2312?
3: The interfaces inside of IceXML is for internal use,such as IceStorm, or open for developer?
4: Does IceXML fully wrappe all the interface inside of Expat or partially? If it fully wrapped, then we can only use IceXML instead of C-style of Expat function.
5: Last, What's the limit for std::string? I mean the size limitation. I would save XML file into std::string or sequence<byte>. Which one would be better?
Good luck!
JaneShang

Reply With Quote
. You would define interfaces with operations for each of your commands for example.