Differences From Artifact [88d490bdfe]:
- File tests/OFXMLParserTests.m — part of check-in [e7801f415e] at 2010-07-03 17:15:13 on branch trunk — Skip over the prolog in OFXMLParser. Will be parsed someday. (user: js, size: 10013) [annotate] [blame] [check-ins using]
To Artifact [a5fed6b08d]:
- File
tests/OFXMLParserTests.m
— part of check-in
[ed63c0fdc1]
at
2010-07-29 19:32:33
on branch trunk
— Comply with section 6.2 of XML namespaces.
More specifically to this:
"The namespace name for an unprefixed attribute name always has no
value." (user: js, size: 9882) [annotate] [blame] [check-ins using]
︙ | |||
104 105 106 107 108 109 110 | 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | - + - - + - | /* foo:bla attr */ [[[attrs objectAtIndex: 0] name] isEqual: @"bla"] && [[[attrs objectAtIndex: 0] namespace] isEqual: @"urn:objfw:test:foo"] && [[[attrs objectAtIndex: 0] stringValue] isEqual: @"bla"] && /* blafoo attr */ [[[attrs objectAtIndex: 1] name] isEqual: @"blafoo"] && |
︙ | |||
145 146 147 148 149 150 151 | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | - + - | [[[attrs objectAtIndex: 0] name] isEqual: @"bla"] && [[[attrs objectAtIndex: 0] namespace] isEqual: @"http://www.w3.org/2000/xmlns/"] && [[[attrs objectAtIndex: 0] stringValue] isEqual: @"urn:objfw:test:bla"] && /* qux attr */ [[[attrs objectAtIndex: 1] name] isEqual: @"qux"] && |
︙ | |||
173 174 175 176 177 178 179 | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + - | /* xmlns attr */ [[[attrs objectAtIndex: 0] name] isEqual: @"xmlns"] && [[attrs objectAtIndex: 0] namespace] == nil && [[[attrs objectAtIndex: 0] stringValue] isEqual: @"urn:objfw:test:abc"] && /* abc attr */ [[[attrs objectAtIndex: 1] name] isEqual: @"abc"] && |
︙ |