|
-
July 17th, 2002, 09:16 AM
#1
using DOM in C++
how can I convert a CString or char[] with the following message "<Server>name_of_server<Server>"
to a DOM_Document .(I have to parse the info to know which server is talking to my program ).I was trying to use xerces c++ parser which uses DOM_Document. Anyone out there with suggestions??
Thanks
-
July 17th, 2002, 09:52 AM
#2
-
July 18th, 2002, 03:24 AM
#3
I have used xerces from java, but I think the principle is the same.
You should find DocumentBuilderFactory
abstract sample:
from javax.xml.parsers import DocumentBuilderFactory
dFactory = DocumentBuilderFactory.newInstance()
dFactory.setNamespaceAware(1)
dBuilder = dFactory.newDocumentBuilder()
stream = ByteArrayInputStream( YOUR_STRING )
xmlDOM = dBuilder.parse(stream)
I do not know the details of C++ realization, but the key object is DocumentBuilder
Denis.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|