MiniXML « xml « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » xml » MiniXML 

1. MiniXML: parsing xml in C    stackoverflow.com

I am parsing an xml file in C using Minixml. I want to get the values "check-time", "check-key" etc from this small eg. file:

<?xml version="1.0"?>
<!--Test-->
<myfile> 
    <command type="start"> ...

2. xml parsing with MiniXML fails    stackoverflow.com

I'm using the MiniXML library to parse a XML file like

<?xml version="1.0" encoding="UTF-8"?>
<ooo_sheet>
<a1>Yes</a1> 
<b1>1110</b1>
<c1>0008D1022162</c1>
<d1>Yes</d1>
<e1>No</e1>
<f1>Yes</f1>
<g1>Yes</g1>

<a1>Yes</a1>
<b1>1111</b1>
<c1>0008D1022164</c1>
<d1>Y1</d1>
<e1>Yes</e1>
<f1>No</f1>
<g1>No</g1>

<a1>Yes</a1>
<b1>1112</b1>
<c1>0008D1022164</c1>
<d1>Y1</d1>
<e1>Yes</e1>
<f1>No</f1>
<g1>No</g1>

</ooo_sheet>
It founds the first and third a1 but can not find second a1. Here is my code. Can ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.