Click to See Complete Forum and Search --> : How to read and write XML file with a lot of data?


limingkun
July 1st, 2002, 03:28 PM
Hi, I need to read and write a XML file with the following format:

<DataXML>
<Value ElemNum=¡±n1¡±>
x1 x2 x3 ¡*. xn1
</Value>

<Value ElemNum = ¡°n2¡±>
y1 y2 y3 ¡* yn2
</Value>
</DataXML>

xi and yi are float number, n1 and n2 are very large, can be more than 10000. Can any xml parser do it and how to do it?

Thanks.

dkar
July 2nd, 2002, 05:13 AM
Hi

xml is just a text. so that values can have any length

mao_03
July 2nd, 2002, 06:03 AM
Hi,

The XML DOM parser does it, but as dkar posted it returns only BSTR strings. You'll have to parse that string to separate your values.

The member function would be either get_attributeValue or get_NodeValue or get_nodeName...

check MSDN on MSXML4 for those!