CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Posts
    2

    Angry How to read and write XML file with a lot of data?

    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.

  2. #2
    Join Date
    Aug 2001
    Location
    Russia, Moscow
    Posts
    26
    Hi

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

  3. #3
    Join Date
    Apr 2002
    Location
    Germany
    Posts
    224
    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!
    CU

    Ingo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured